https://github.com/python/cpython/commit/a929e80b9e5aa5aa23bd3fb3397dfc0ac605c067
commit: a929e80b9e5aa5aa23bd3fb3397dfc0ac605c067
branch: main
author: Stan Ulbrych <[email protected]>
committer: encukou <[email protected]>
date: 2026-03-03T13:10:34+01:00
summary:
Add `PyExc_OverflowError` to the list of possible exceptions in
`fuzz_ast_literal_eval` fuzzer (GH-145429)
files:
M Modules/_xxtestfuzz/fuzzer.c
diff --git a/Modules/_xxtestfuzz/fuzzer.c b/Modules/_xxtestfuzz/fuzzer.c
index 0cbe10c79ab4a6..14da472c1bb110 100644
--- a/Modules/_xxtestfuzz/fuzzer.c
+++ b/Modules/_xxtestfuzz/fuzzer.c
@@ -428,6 +428,7 @@ static int fuzz_ast_literal_eval(const char* data, size_t
size) {
PyErr_ExceptionMatches(PyExc_TypeError) ||
PyErr_ExceptionMatches(PyExc_SyntaxError) ||
PyErr_ExceptionMatches(PyExc_MemoryError) ||
+ PyErr_ExceptionMatches(PyExc_OverflowError) ||
PyErr_ExceptionMatches(PyExc_RecursionError))
) {
PyErr_Clear();
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]