Skip to content

Commit 455c554

Browse files
[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 <89152624+StanFromIreland@users.noreply.github.com>
1 parent 1b42680 commit 455c554

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎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)