https://github.com/python/cpython/commit/455c55484a8f63bd14d14fd3ea0d953a2ffa5b4b
commit: 455c55484a8f63bd14d14fd3ea0d953a2ffa5b4b
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-24T13:59:49Z
summary:

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

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 a04f1412eefda1..f00f8b3be9d107 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]

Reply via email to