summaryrefslogtreecommitdiff
path: root/Doc/includes/sqlite3/blob.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2022-04-14 11:26:25 -0700
committerGitHub <noreply@github.com>2022-04-14 11:26:25 -0700
commit861974b514bc15ca1a3021f32a2d381c22f1a971 (patch)
treed7096c495dad3ff1768fbaf20aeea33d821025a8 /Doc/includes/sqlite3/blob.py
parent7acedd71dec4e60400c865911e8961dbb49d5597 (diff)
downloadcpython-git-861974b514bc15ca1a3021f32a2d381c22f1a971.tar.gz
gh-89455: Fix an uninitialized bool in exception print context. (#91466)
Fix an uninitialized bool in exception print context. `struct exception_print_context.need_close` was uninitialized. Found by oss-fuzz in a test case running under the undefined behavior sanitizer. https://oss-fuzz.com/testcase-detail/6217746058182656 ``` Python/pythonrun.c:1241:28: runtime error: load of value 253, which is not a valid value for type 'bool' #0 0xbf2203 in print_chained cpython3/Python/pythonrun.c:1241:28 #1 0xbea4bb in print_exception_cause_and_context cpython3/Python/pythonrun.c:1320:19 #2 0xbea4bb in print_exception_recursive cpython3/Python/pythonrun.c:1470:13 #3 0xbe9e39 in _PyErr_Display cpython3/Python/pythonrun.c:1517:9 ``` Pretty obvious what the ommission was upon code inspection.
Diffstat (limited to 'Doc/includes/sqlite3/blob.py')
0 files changed, 0 insertions, 0 deletions