Skip to content

Commit

Permalink
fuzzers/load: clear old temp files if they exist
Browse files Browse the repository at this point in the history
They were previously left over, and now that it looks like runners are
stuck, the big question is: is /tmp persistent?

This commit will be reverted after the next rebuild.
  • Loading branch information
kasper93 committed May 22, 2024
1 parent 0dd6321 commit 06ec031
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fuzzers/fuzzer_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@

#include "common.h"

int LLVMFuzzerInitialize(int *argc, char ***argv)
{
// Is /tmp really persistent?
system("rm -f /tmp/libfuzzer.*");
return 0;
}

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
// fmemopen doesn't have associated file descriptor, so we do copy.
Expand Down

0 comments on commit 06ec031

Please sign in to comment.