bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] progname: don't segfault when argv is NULL


From: Jim Meyering
Subject: Re: [PATCH] progname: don't segfault when argv is NULL
Date: Wed, 09 Dec 2009 18:22:24 +0100

Bruno Haible wrote:
> About the exec* functions:
>> Ad 1):
>> > I suggest you declare those functions with the "nonnull" attribute.
>>
>> Good idea. I reported this to glibc:
>>   <http://sourceware.org/bugzilla/show_bug.cgi?id=11056>
>
> It has been committed: gcc+glibc will now warn if a user uses a NULL
> argv array in an execv* call or a NULL argv[0] in an execl* call.
>
> But the gcc warnings can cover only 7 out of 11 cases. Therefore the kernel
> behaviour is more important. Is there anyone who could help out and test the
> proposed Linux kernel patch?

I'd volunteer, but have too much on my plate for the next few days.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]