diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-02 02:58:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 02:58:41 -0700 |
commit | d985c8e2e0d38e6905cc27124008eb926254247b (patch) | |
tree | 5b96dfd0b5bf83eb5550d9d693b2ab8b6135d85a /Lib/sqlite3/test/hooks.py | |
parent | a7d3de7fe650d393d63039cb0ed7c1320d050345 (diff) | |
download | cpython-git-d985c8e2e0d38e6905cc27124008eb926254247b.tar.gz |
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 'Lib/sqlite3/test/hooks.py')
0 files changed, 0 insertions, 0 deletions