|
Message-ID: <20131005020118.GO20515@brightrain.aerifal.cx> Date: Fri, 4 Oct 2013 22:01:18 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: Static analyzers results on musl On Sat, Oct 05, 2013 at 01:39:46AM +0400, Alexander Monakov wrote: > On Fri, 4 Oct 2013, Rich Felker wrote: > > But there's no reason to expect that it could return NULL unless this > > is documented as a possibility. Does the tool you're using assume that > > any function which returns a pointer might return NULL? > > In src/locale/langinfo.c, __nl_langinfo_l _explicitely_ returns NULL in 5 > distinct locations, as of this time. Am I misunderstanding something? Indeed, I hadn't read the code lately. But those are all places where the behavior is undefined due to invalid input. They should probably be removed. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.