opnsense-src/lib/libc/tests
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
..
c063 Provide O_SEARCH 2020-02-02 16:34:57 +00:00
db DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
gen execve: disallow argc == 0 2022-02-10 14:21:59 -06:00
hash DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
iconv lib/libc/tests/iconv: raise WARNS to 6 2020-09-24 21:42:44 +00:00
inet DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
locale DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
net Fix filename to avoid skipping lib/libc/net/servent test. 2019-07-15 23:41:00 +00:00
nss libc/nss tests: Add regression tests for commit 55444c823e1f 2021-01-21 14:30:19 -05:00
regex build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
resolv resolv_test: Fix racy exit check, remove mutexes, and reduce output 2021-04-10 14:01:05 +01:00
rpc DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
setjmp DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ssp Allow using sanitizers for ssp tests with out-of-tree compiler 2021-04-10 14:01:04 +01:00
stdio stdio: add test for 86a16ada1e: fflush() handling of errors 2022-02-01 05:29:16 +02:00
stdlib libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used 2021-12-06 02:23:45 +02:00
string Avoid copying too much from the input string. 2019-07-19 23:58:30 +00:00
sys jail: allow root to implicitly widen its cpuset to attach 2021-03-03 20:04:10 -06:00
termios DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
time DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tls DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tls_dso Update Makefile.depend files 2019-12-11 17:37:53 +00:00
ttyio DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Makefile Connect libc/tests/time to the build, adding test cases for strptime() 2018-10-30 02:37:23 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.netbsd-tests Change WARNS to 2 across the board with all the libc testcases 2015-11-15 05:21:58 +00:00