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.
Unified · Split
| @@ -26,6 +26,13 @@ · 25 unmodified lines | |||
| 26 | 26 | ||
| 27 | #include "common.h" | 27 | #include "common.h" |
| 28 | 28 | ||
| 29 | int LLVMFuzzerInitialize(int *argc, char ***argv) | ||
| 30 | { | ||
| 31 | // Is /tmp really persistent? | ||
| 32 | system("rm -f /tmp/libfuzzer.*"); | ||
| 33 | return 0; | ||
| 34 | } | ||
| 35 | |||
| 29 | int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) | 36 | int 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. |