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: Bruno Haible
Subject: Re: [PATCH] progname: don't segfault when argv is NULL
Date: Wed, 9 Dec 2009 17:49:30 +0100
User-agent: KMail/1.9.9

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?

Bruno




reply via email to

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