History

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.

Kacper Michajłow committed 2 years ago

Commit 06ec0311 parent 0dd63211 file · +7 −0Browse files

Unified · Split

fuzzers/fuzzer_load.c+7−0
@@ -26,6 +26,13 @@ · 25 unmodified lines
26 26
27#include "common.h"27#include "common.h"
28 28
29int LLVMFuzzerInitialize(int *argc, char ***argv)
30{
31 // Is /tmp really persistent?
32 system("rm -f /tmp/libfuzzer.*");
33 return 0;
34}
35
29int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)36int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
30{37{
31 // fmemopen doesn't have associated file descriptor, so we do copy.38 // fmemopen doesn't have associated file descriptor, so we do copy.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t