]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add `PyExc_OverflowError` to the list of possible exceptions in `fuzz_ast_literal_eva...
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Tue, 3 Mar 2026 12:10:34 +0000 (12:10 +0000)
committerGitHub <noreply@github.com>
Tue, 3 Mar 2026 12:10:34 +0000 (13:10 +0100)
Modules/_xxtestfuzz/fuzzer.c

index 0cbe10c79ab4a6c840f051924104f56b4c4096be..14da472c1bb11074a1150cdab4f8eded727d0c1d 100644 (file)
@@ -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();