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:
ru 2004-03-12 21:06:20 +00:00
parent 7e688e2cec
commit 50a11e8dfd

View File

@ -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;