Skip to content

Commit

Permalink
ossfuzz: make sure test zip does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Oct 10, 2023
1 parent 029173d commit 0aa45d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ossfuzz/zip_write_encrypt_aes256_file_fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
int error = 0;
struct zip *archive;

(void)remove(path);
if ((archive = zip_open(path, ZIP_CREATE, &error)) == NULL) {
return -1;
}
Expand Down
1 change: 1 addition & 0 deletions ossfuzz/zip_write_encrypt_pkware_file_fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
int error = 0;
struct zip *archive;

(void)remove(path);
if ((archive = zip_open(path, ZIP_CREATE, &error)) == NULL) {
return -1;
}
Expand Down

0 comments on commit 0aa45d4

Please sign in to comment.