[Top][All Lists]
[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.
- Re: [PATCH] progname: don't segfault when argv is NULL, (continued)
- Re: [PATCH] progname: don't segfault when argv is NULL, Jim Meyering, 2009/12/06
- __nonnull__ declarations, Bruno Haible, 2009/12/06
- Re: __nonnull__ declarations, Jim Meyering, 2009/12/07
- Re: __nonnull__ declarations, Bruno Haible, 2009/12/10
- Re: [PATCH] progname: don't segfault when argv is NULL, Bruno Haible, 2009/12/06
- Re: [PATCH] progname: don't segfault when argv is NULL, Jim Meyering, 2009/12/09
- Re: [PATCH] progname: don't segfault when argv is NULL, Bruno Haible, 2009/12/09
- Re: [PATCH] progname: don't segfault when argv is NULL, Bruno Haible, 2009/12/09
- Re: [PATCH] progname: don't segfault when argv is NULL,
Jim Meyering <=