Do what the execve(2) manpage says and enforce what a Strictly
Conforming POSIX application should do by disallowing the argv argument to be NULL. PR: kern/33738 Submitted by: Marc Olzheim, Serge van den Boom OK'ed by: nectar
This commit is contained in:
parent
7e688e2cec
commit
50a11e8dfd
@ -944,7 +944,8 @@ exec_extract_strings(imgp)
|
||||
imgp->argc++;
|
||||
} while ((argp = (caddr_t)(intptr_t)fuword(argv++)));
|
||||
}
|
||||
}
|
||||
} else
|
||||
return (EFAULT);
|
||||
|
||||
imgp->endargs = imgp->stringp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user