marcel
566238caa7
Fix an inappropriate free of a non-dynamic value. While here, make the
...
code more naive and robust:
1. When setting ev_value, also always set ev_flags appropriately
2. Always check ev_value and ev_flags before calling free.
Both the value and the EV_DYNAMIC property can come directly from the
consumers of the environment functionality, so it's good to be careful.
And since this code is typically not looked at for long periods of
time, it's good to have it be a little "dumb-looking".
Trigger case for the bug:
env_setenv("foo", 0, "1", NULL, NULL);
env_setenv("foo", 0, "2", NULL, NULL);
Obtained from: Juniper Networks, Inc.
2013-12-18 17:03:43 +00:00
..
2013-11-17 23:51:19 +00:00
2013-12-16 18:45:21 +00:00
2013-10-27 23:48:59 +00:00
2013-09-26 17:55:36 +00:00
2013-01-01 18:29:25 +00:00
2013-12-18 12:18:17 +00:00
2013-11-25 20:17:55 +00:00
2013-09-04 15:02:14 +00:00
2013-12-15 15:51:05 +00:00
2013-12-02 17:07:22 +00:00
2013-12-03 13:26:37 +00:00
2013-08-31 08:50:45 +00:00
2013-10-25 05:25:19 +00:00
2013-02-03 20:40:41 +00:00
2012-12-15 18:19:48 +00:00
2013-06-30 21:06:47 +00:00
2013-09-26 17:54:58 +00:00
2013-08-31 18:13:20 +00:00
2013-09-03 13:31:43 +00:00
2013-02-26 00:58:44 +00:00
2013-11-19 16:11:03 +00:00
2013-07-19 06:42:15 +00:00
2012-06-02 08:47:26 +00:00
2012-06-08 12:09:00 +00:00
2013-11-25 01:26:06 +00:00
2013-05-03 23:51:32 +00:00
2012-10-04 19:07:05 +00:00
2013-08-13 07:15:01 +00:00
2013-11-21 22:31:18 +00:00
2013-10-15 13:53:35 +00:00
2013-09-08 19:39:18 +00:00
2012-09-11 22:38:33 +00:00
2012-10-19 22:21:01 +00:00
2013-06-18 04:50:20 +00:00
2012-05-17 10:11:18 +00:00
2012-12-21 20:37:38 +00:00
2013-11-28 06:45:30 +00:00
2013-12-15 22:58:09 +00:00
2013-11-21 20:43:43 +00:00
2013-05-30 08:02:00 +00:00
2013-12-01 09:41:06 +00:00
2013-11-25 18:31:13 +00:00
2013-11-11 16:57:57 +00:00
2013-10-09 20:58:50 +00:00
2013-05-12 22:22:12 +00:00
2012-10-19 05:43:38 +00:00
2013-06-30 08:59:33 +00:00
2013-04-11 19:50:10 +00:00
2013-02-16 20:17:31 +00:00
2013-11-12 15:09:28 +00:00
2013-12-18 17:03:43 +00:00
2012-10-18 15:39:29 +00:00
2013-05-12 22:22:12 +00:00
2013-11-23 15:48:17 +00:00
2013-08-17 14:42:40 +00:00
2013-09-15 14:51:23 +00:00
2013-09-05 12:21:11 +00:00
2012-09-20 18:56:27 +00:00
2013-11-12 00:56:22 +00:00
2013-12-18 03:58:51 +00:00
2013-10-14 18:31:15 +00:00
2013-10-31 18:44:40 +00:00
2013-11-07 22:46:13 +00:00
2013-06-02 11:44:23 +00:00
2013-11-08 14:29:06 +00:00
2013-12-02 08:21:28 +00:00