From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Tue, 3 Mar 2026 12:10:34 +0000 (+0000) Subject: Add `PyExc_OverflowError` to the list of possible exceptions in `fuzz_ast_literal_eva... X-Git-Tag: v3.15.0a7~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a929e80b9e5aa5aa23bd3fb3397dfc0ac605c067;p=thirdparty%2FPython%2Fcpython.git Add `PyExc_OverflowError` to the list of possible exceptions in `fuzz_ast_literal_eval` fuzzer (GH-145429) --- diff --git a/Modules/_xxtestfuzz/fuzzer.c b/Modules/_xxtestfuzz/fuzzer.c index 0cbe10c79ab4..14da472c1bb1 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();