Files
Mark Johnston 32f296b695 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 02:32:02 +00:00
..
2023-08-16 11:55:03 -06:00
2024-04-16 13:54:20 -06:00
2024-05-09 14:24:06 -06:00
2023-08-18 19:33:58 -07:00
2025-04-25 22:24:13 -05:00
2024-06-28 12:17:52 +02:00
2025-01-10 20:48:22 -06:00
2024-08-01 11:11:45 -04:00
2025-05-08 09:24:51 -07:00
2024-10-07 14:27:04 -03:00
2024-11-04 11:56:24 -04:00
2024-10-24 20:28:45 -07:00
2025-01-07 10:02:57 +01:00
2024-10-21 11:00:49 +08:00
2023-10-24 11:22:23 -07:00
2025-01-10 20:48:22 -06:00