summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-02 09:59:40 (GMT)
committerGitHub <noreply@github.com>2022-05-02 09:59:40 (GMT)
commit206f416bd07ca3bc9c8bafd124c943d4d0293039 (patch)
treee852c5a1189cc4b9ec21e263d9b4ca87a4447d7f /Python/errors.c
parentd05ee916c142d9c9172cc20292285d02d4aaef3c (diff)
downloadcpython-206f416bd07ca3bc9c8bafd124c943d4d0293039.zip
cpython-206f416bd07ca3bc9c8bafd124c943d4d0293039.tar.gz
cpython-206f416bd07ca3bc9c8bafd124c943d4d0293039.tar.bz2
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 18b07d773e09a2719e69aeaa925d5abb7ba0c068) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions