This is the mail archive of the libc-alpha@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]

Re: [patch] Error on setenv(..., NULL, ...)


On Wed, Mar 11, 2015 at 04:38:09PM +0000, Szabolcs Nagy wrote:
> no, this just says that NULL argument is undefined behaviour
> 
> this is not a bug in glibc and i don't think any change should be made

Fair enough, but if we ever decide to protect ourselves against such
bad access, I'd be in favour of something more conservative like
returning a blank string than returning an error.

Siddhesh

Attachment: pgpMEAXrwAFcr.pgp
Description: PGP signature


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