Skip to content

[3.13] gh-153603: Fix out-of-bounds read in the ISO-2022 decoder for an unknown charset (GH-153604) - #155961

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-f40043e-3.13
Aug 17, 2026
Merged

[3.13] gh-153603: Fix out-of-bounds read in the ISO-2022 decoder for an unknown charset (GH-153604)#155961
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-f40043e-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The designation-table scan compiled its terminator only under Py_DEBUG, so a
release build walked off the table for an unknown charset set via setstate().
Make the terminator unconditional and report the byte as undecodable.
(cherry picked from commit f40043e)

Co-authored-by: tonghuaroot (童话) tonghuaroot@gmail.com

…n unknown charset (pythonGH-153604)

The designation-table scan compiled its terminator only under Py_DEBUG, so a
release build walked off the table for an unknown charset set via setstate().
Make the terminator unconditional and report the byte as undecodable.
(cherry picked from commit f40043e)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 17, 2026 13:04
@serhiy-storchaka
serhiy-storchaka merged commit f0e236e into python:3.13 Aug 17, 2026
44 of 47 checks passed
@miss-islington
miss-islington deleted the backport-f40043e-3.13 branch August 17, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants