Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-f40043e-3.15
Open

[3.15] gh-153603: Fix out-of-bounds read in the ISO-2022 decoder for an unknown charset (GH-153604)#155959
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-f40043e-3.15

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants