summaryrefslogtreecommitdiff
path: root/Lib/sqlite3/test/hooks.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-02 02:58:41 -0700
committerGitHub <noreply@github.com>2022-05-02 02:58:41 -0700
commitd985c8e2e0d38e6905cc27124008eb926254247b (patch)
tree5b96dfd0b5bf83eb5550d9d693b2ab8b6135d85a /Lib/sqlite3/test/hooks.py
parenta7d3de7fe650d393d63039cb0ed7c1320d050345 (diff)
downloadcpython-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