Skip to content
Snippets Groups Projects
Unverified Commit 206f416b authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

bpo-36819: Fix crashes in built-in encoders with weird error handlers (GH-28593)



If the error handler returns position less or equal than the starting
position of non-encodable characters, most of built-in encoders didn't
properly re-size the output buffer. This led to out-of-bounds writes,
and segfaults.
(cherry picked from commit 18b07d77)

Co-authored-by: default avatarSerhiy Storchaka <storchaka@gmail.com>
parent d05ee916
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment