This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13231] setenv ("NAME", NULL) corrupts environment
- From: "drepper.fsp at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 15 Oct 2011 14:16:43 +0000
- Subject: [Bug libc/13231] setenv ("NAME", NULL) corrupts environment
- Auto-submitted: auto-generated
- References: <bug-13231-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13231
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-10-15 14:16:43 UTC ---
The parameter is supposed to be a string pointer. NULL is no string pointer,
neither is in most case -1 etc. There is no way to catch invalid pointers and
any such effort would only hurt correct code. Just fix your code.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.