Skip to content

Commit b45e7a6

Browse files
committed
Wrap cleanup function call with zend_try.
Fizes oss-fuzz #65911
1 parent 8d4e177 commit b45e7a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sapi/fuzzer/fuzzer-sapi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ int fuzzer_do_request_from_buffer(
280280

281281
CG(compiled_filename) = NULL; /* ??? */
282282
if (before_shutdown) {
283-
before_shutdown();
283+
zend_try {
284+
before_shutdown();
285+
} zend_end_try();
284286
}
285287
fuzzer_request_shutdown();
286288

0 commit comments

Comments
 (0)