opnsense-src/lib/libc/tests/gen
Kyle Evans 7393eedb03 execve: disallow argc == 0
The manpage has contained the following verbiage on the matter for just
under 31 years:

"At least one argument must be present in the array"

Previous to this version, it had been prefaced with the weakening phrase
"By convention."

Carry through and document it the rest of the way.  Allowing argc == 0
has been a source of security issues in the past, and it's hard to
imagine a valid use-case for allowing it.  Toss back EINVAL if we ended
up not copying in any args for *execve().

The manpage change can be considered "Obtained from: OpenBSD"

(cherry picked from commit 773fa8cd13)
(cherry picked from commit c9afc7680f)
2022-02-10 14:21:59 -06:00
..
execve DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
posix_spawn Avoid using non-portable dd status=none flag 2020-06-05 08:46:50 +00:00
arc4random_test.c Fix some TAP -> ATF conversion errors 2015-11-09 06:16:38 +00:00
dir2_test.c Include a mode when creating files with openat(). 2019-07-18 21:37:50 +00:00
dlopen_empty_test.c This seems like a very trivial bug that should have been squashed a long 2016-01-30 04:16:05 +00:00
fmtcheck_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00
fmtmsg_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00
fnmatch_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00
fnmatch_testcases.h fnmatch(3): Update testcase for r322368. 2017-08-10 17:03:46 +00:00
fpclassify2_test.c Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase and 2014-11-16 20:29:57 +00:00
ftw_test.c Fix -Wunused warnings 2015-11-15 05:02:41 +00:00
getentropy_test.c getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
getmntinfo_test.c Revert r351416 to let lib.libc.gen.getmntinfo_test.getmntinfo_test get more test 2020-07-13 18:19:02 +00:00
glob2_test.c libc glob: Avoid pathological exponential behavior 2017-05-03 15:55:29 +00:00
makecontext_test.c Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
Makefile libc: tests: hook CPUSET(9) test up to the build 2020-12-31 12:26:01 -06:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
popen_test.c Fix -Wunused warnings 2015-11-15 05:02:41 +00:00
posix_spawn_test.c execve: disallow argc == 0 2022-02-10 14:21:59 -06:00
realpath2_test.c Add tests for some cases in r318298. 2017-05-18 13:49:53 +00:00
sigsetops_test.c Add sigsetop extensions commonly found in musl libc and glibc 2019-12-12 01:41:55 +00:00
spawnp_enoexec.sh Add missing shell script from r361995 2020-06-10 03:04:36 +00:00
test-fnmatch.c Add missing licensing boilerplate to test-fnmatch.c 2015-11-10 11:28:02 +00:00
wordexp_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00