opnsense-src/contrib/netbsd-tests
Mark Johnston e78927d11c iconv: Fix a stack buffer overflow in _ISO2022_sputwchar()
In the ISO2022-CN encoding, characters may require at least seven bytes,
and MB_LEN_MAX==6 is insufficient.  From code inspection,
_ISO2022_sputwchar() can emit 10 bytes in the worst case, so use that to
size buffers.

Add a regression test.

Approved by:	so
Security:	FreeBSD-SA-26:49.iconv
Security:	CVE-2026-58082
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D57950
2026-06-30 23:17:01 +02:00
..
bin
crypto
dev
fs tmpfs tests: Remove an xfail annotation 2024-05-08 09:06:16 -04:00
games
include
ipf
kernel sysv test: properly wait for children 2022-05-13 11:38:26 -05:00
lib iconv: Fix a stack buffer overflow in _ISO2022_sputwchar() 2026-06-30 23:17:01 +02:00
libexec/ld.elf_so
modules
net
rump
sbin newfs_msdos: connect the ATF test from NetBSD 2022-02-16 09:56:16 -06:00
share
sys
usr.bin netbsd-tests: Update a test case to chase grep symlink handling changes 2025-03-31 14:27:25 -07:00
usr.sbin
FREEBSD-upgrade Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 , 2014-10-02 23:26:49 +00:00
h_macros.h Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00