https://github.com/python/cpython/commit/6ff52cd6fd5da75b46eff13e330d4c0ddbd0179c
commit: 6ff52cd6fd5da75b46eff13e330d4c0ddbd0179c
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-24T16:57:15+03:00
summary:

[3.13] Add `PyExc_OverflowError` to the list of possible exceptions in 
`fuzz_ast_literal_eval` fuzzer (GH-145429) (#158083)

Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Modules/_xxtestfuzz/fuzzer.c

diff --git a/Modules/_xxtestfuzz/fuzzer.c b/Modules/_xxtestfuzz/fuzzer.c
index 6ea9f64d628530..4340d7e301405a 100644
--- a/Modules/_xxtestfuzz/fuzzer.c
+++ b/Modules/_xxtestfuzz/fuzzer.c
@@ -429,6 +429,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]

Reply via email to