mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
41b7cd3729
commit
7700eb86e7
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue