opnsense-src/lib/libc/tests
Ed Maste 4fbd6e0e3c libc: fix access mode tests in fmemopen(3)
Previously a stream opened as read-only could be written to.  Add a test
case for the fix.

Also correct another incorrect access mode check that worked by
accident, and improve the tests for that.

PR:		281953
Reported by:	Erkki Moorits, fuz
Reviewed by:	fuz, khng (earlier)
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47265

(cherry picked from commit 0953460ce149e6f384aafbcb1e6213dfbf8f6a16)
(cherry picked from commit 6b9f7133aba44189d9625c352bc2c2a59baf18ef)
2024-10-29 15:11:38 -04:00
..
c063 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
db Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
gen libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
hash Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
iconv libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
inet Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
locale libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
net Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nss libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
regex regex: mixed sets are misidentified as singletons 2024-09-25 15:42:25 -05:00
resolv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rpc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
setjmp Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ssp libc/tests: Further refine the condition for installing h_raw 2024-07-14 12:16:32 -04:00
stdio libc: fix access mode tests in fmemopen(3) 2024-10-29 15:11:38 -04:00
stdlib pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
string lib/libc/tests/string: add memrchr unit tests 2024-01-24 20:39:30 +01:00
sys libc/sys: add errno test 2024-03-02 07:05:05 +02:00
termios Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
time Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tls pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
tls_dso pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
ttyio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.netbsd-tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00