aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/_testcppext.cpp
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-05-02 12:37:48 +0300
committerGitHub <noreply@github.com>2022-05-02 12:37:48 +0300
commit18b07d773e09a2719e69aeaa925d5abb7ba0c068 (patch)
tree24e00867bcd614057ca886b2e977153d6168fa59 /Lib/test/_testcppext.cpp
parent614420df9796c8a4f01e24052fc0128b4c20c5bf (diff)
downloadcpython-18b07d773e09a2719e69aeaa925d5abb7ba0c068.tar.gz
cpython-18b07d773e09a2719e69aeaa925d5abb7ba0c068.zip
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.
Diffstat (limited to 'Lib/test/_testcppext.cpp')
0 files changed, 0 insertions, 0 deletions