We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1630345 commit 81fc135Copy full SHA for 81fc135
Modules/_xxtestfuzz/fuzzer.c
@@ -526,13 +526,20 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
526
#if !defined(_Py_FUZZ_ONE) || defined(_Py_FUZZ_fuzz_sre_compile)
527
static int SRE_COMPILE_INITIALIZED = 0;
528
if (!SRE_COMPILE_INITIALIZED && !init_sre_compile()) {
529
- PyErr_Print();
530
- abort();
+ if (!PyErr_ExceptionMatches(PyExc_DeprecationWarning)) {
+ PyErr_Print();
531
+ abort();
532
+ }
533
+ else {
534
+ PyErr_Clear();
535
536
} else {
537
SRE_COMPILE_INITIALIZED = 1;
538
}
539
- rv |= _run_fuzz(data, size, fuzz_sre_compile);
540
+ if (SRE_COMPILE_INITIALIZED) {
541
+ rv |= _run_fuzz(data, size, fuzz_sre_compile);
542
543
#endif
544
#if !defined(_Py_FUZZ_ONE) || defined(_Py_FUZZ_fuzz_sre_match)
545
static int SRE_MATCH_INITIALIZED = 0;
0 commit comments