mirror of https://github.com/mpv-player/mpv
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:
parent
0dd6321c51
commit
06ec0319db
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue