[Bug 298747] clearenv() segfaults when the environment is already empty
Date: Fri, 25 Sep 2026 19:03:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298747 --- Comment #3 from Konstantin Belousov <kib@FreeBSD.org> --- (In reply to Leo Bicknell from comment #2) I do not quite understand what the cited sequence of words saying. If the environment was NULL, it is left as NULL regardless of the patch, but patch makes it not faulting sometimes. Do you mean to say that if envVarsTotal == 0 and intEnviron happen to be NULL, we still ought to allocate zero-sized environment? -- You are receiving this mail because: You are the assignee for the bug.