This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12218] getenv(3) handles variable names with equal signs incorrectly
- From: "tron at NetBSD dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 16 Nov 2010 08:58:04 +0000
- Subject: [Bug libc/12218] getenv(3) handles variable names with equal signs incorrectly
- Auto-submitted: auto-generated
- References: <bug-12218-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12218
--- Comment #2 from Matthias Scheler <tron at NetBSD dot org> 2010-11-16 08:57:54 UTC ---
Argument validation is always a good thing.
And you can avoid the performance hit by looking for the equal sign while you
determine the length of the supplied name.
--
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.