Date: Tue, 19 Sep 2000 20:05:38 -0700 (PDT) From: Brian Somers <brian@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib malloc.c setenv.c Message-ID: <200009200305.UAA32271@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2000/09/19 20:05:38 PDT
Modified files:
lib/libc/stdlib malloc.c setenv.c
Log:
Only realloc() environ if we're sure that we know where it came from.
The recent problems with sshd were due to sshd reassigning
`environ' when setenv() thinks it owns it. setenv() subsequently
realloc()s the new version of environ and *boom*
Revision Changes Path
1.52 +2 -1 src/lib/libc/stdlib/malloc.c
1.6 +5 -6 src/lib/libc/stdlib/setenv.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009200305.UAA32271>
