Skip to content

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

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

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

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 a59c5bb into python:3.14 Aug 17, 2026
51 of 54 checks passed
@miss-islington
miss-islington deleted the backport-f40043e-3.14 branch August 17, 2026 13:28
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