[Bug 298747] clearenv() segfaults when the environment is already empty

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Oct 2026 00:27:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298747

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=a6d8b449d9a3d0d2b9c8e96a225c02c486799476

commit a6d8b449d9a3d0d2b9c8e96a225c02c486799476
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-09-24 18:30:57 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-10-09 00:25:34 +0000

    libc/stdlib/getenv.c:  always allocate new environment

    PR:     298747

    (cherry picked from commit dec68aeff8ce0ce154e93325a74bba6af71c87af)

 lib/libc/stdlib/getenv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.