Skip to content

Commit

Permalink
Add zend_first_try
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Apr 21, 2020
1 parent f0f8612 commit 60f9e27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sapi/fuzzer/fuzzer-phar.c
Expand Up @@ -53,7 +53,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
write(tmpfd, Data, Size);
close(tmpfd);

phar_create_or_parse_filename(tmp_filename, strlen(tmp_filename), NULL, 0, 1, REPORT_ERRORS, &phar_data, NULL);
zend_first_try {
phar_create_or_parse_filename(tmp_filename, strlen(tmp_filename), NULL, 0, 1, REPORT_ERRORS, &phar_data, NULL);
} zend_end_try();

/* cleanup */
unlink(tmp_filename);
Expand Down

0 comments on commit 60f9e27

Please sign in to comment.