Files
freebsd/lib
Mark Johnston 6b2dad9fe8 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-29 19:16:41 +00:00
..
2024-10-14 10:26:17 -07:00
2024-10-14 10:26:17 -07:00
2025-01-01 15:11:06 -06:00
2026-01-12 17:18:22 +00:00
2024-10-14 10:26:17 -07:00
2026-01-12 14:09:14 -05:00
2026-03-31 19:13:55 -07:00
2024-10-14 10:26:17 -07:00
2025-12-12 11:32:37 +01:00
2026-04-06 16:41:40 -03:00
2025-08-08 13:27:26 -05:00
2024-10-08 16:13:39 -03:00
2025-07-17 16:36:17 -07:00
2024-10-14 10:26:17 -07:00
2024-11-12 12:11:51 -05:00
2026-05-28 15:15:27 -07:00
2025-10-01 11:35:57 +01:00
2026-03-26 23:22:02 -07:00
2026-05-07 10:24:49 -07:00
2026-02-19 09:54:31 +01:00
2026-02-27 12:04:39 +00:00