NetBSD-Bugs archive

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

Re: kern/56673: don't allow execve with NULL argv



The following reply was made to PR kern/56673; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/56673: don't allow execve with NULL argv
Date: Wed, 26 Jan 2022 17:08:53 +0100

 On Wed, Jan 26, 2022 at 03:55:01PM +0000, jschauma%netmeister.org@localhost wrote:
 > I'd suggest to fail if the argv is NULL.
 
 I'm ambivalent here. Posix does allow it and the behaviour is well defined
 (if I didn't miss something).
 
 And setuid programs with stupid casts to unsigned (probably just added
 there to silence the compiler warning) are dangerous - and this is not
 a kernel issue.
 
 On the other hand there is probably no reasonable code out there that would
 use this, so rejecting it might be ok.
 
 Martin
 


Home | Main Index | Thread Index | Old Index