Date: Fri, 4 Oct 2013 17:32:12 -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:10:24AM +0400, Alexander Monakov wrote: > [apologies if you receive this email twice] > > On Fri, 4 Oct 2013, Rich Felker wrote: > > > There are a few warnings that return value of .*nl_langinfo.* is not checked > > > for NULL before use; presumably that is by design. > > > > nl_langinfo is not permitted to return NULL, so this warning makes no > > sense. > > I meant when internal functions like __nl_langinfo_l are called -- this one > can return NULL. Sorry for causing confusion with ".*". 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? 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.