Files
freebsd/lib
Konstantin Belousov dec68aeff8 libc/stdlib/getenv.c: always allocate new environment
in particular, if the old environment is NULL.

Among making it less surprising for userspace to observe NULL environ,
the change also prevents NULL deref in __rebuild_environ() when
terminating the empty as NULL environment with the NULL pointer.

Reported by:	 Leo Bicknell <[email protected]>
PR:	298747
Reviewed by:	emaste, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D59996
2026-10-02 22:48:42 +03:00
..
2026-09-22 08:23:32 -07:00
2026-01-13 10:19:04 -05:00
2026-09-01 15:28:28 +00:00
2026-01-06 12:56:50 -05:00
2026-09-13 18:09:38 -07:00
2026-09-01 14:49:24 +02:00
2025-10-03 19:46:55 +02:00
2026-03-15 00:41:29 -03:00
2025-11-24 10:47:10 -05:00
2025-08-08 13:27:26 -05:00
2026-10-01 00:36:04 +03:00
2026-09-16 14:22:09 +00:00
2025-09-30 09:14:05 +01:00
2026-01-06 04:26:53 +00:00
2026-03-13 23:49:53 +00:00
2026-04-08 14:22:45 -07:00
2026-01-15 07:28:28 +01:00
2026-09-15 10:22:38 -04:00