Skip to content

Commit a929e80

Browse files
Add PyExc_OverflowError to the list of possible exceptions in fuzz_ast_literal_eval fuzzer (GH-145429)
1 parent c9d1234 commit a929e80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_xxtestfuzz/fuzzer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ static int fuzz_ast_literal_eval(const char* data, size_t size) {
428428
PyErr_ExceptionMatches(PyExc_TypeError) ||
429429
PyErr_ExceptionMatches(PyExc_SyntaxError) ||
430430
PyErr_ExceptionMatches(PyExc_MemoryError) ||
431+
PyErr_ExceptionMatches(PyExc_OverflowError) ||
431432
PyErr_ExceptionMatches(PyExc_RecursionError))
432433
) {
433434
PyErr_Clear();

0 commit comments

Comments
 (0)