This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12218] getenv(3) handles variable names with equal signs incorrectly


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]