fuzzers/load: clear old temp files if they exist

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.
This commit is contained in:
Kacper Michajłow 2024-05-21 16:26:20 +02:00
parent 0dd6321c51
commit 06ec0319db
1 changed files with 7 additions and 0 deletions

View File

@ -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.