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:
1 parent
0dd6321c51
commit
06ec0319db
1 file changed
+7
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user