Pass mode to open() in exif fuzzer

Funny how despite all those sanitizers running, nothing ever
caught this...
This commit is contained in:
Nikita Popov 2019-09-30 18:19:56 +02:00
parent e49593a7c3
commit 15761ef359

View File

@ -41,7 +41,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
/* put the data in a file */
filename = tmpnam(NULL);
filedes = open(filename, O_CREAT|O_RDWR);
filedes = open(filename, O_CREAT|O_RDWR, 0644);
write(filedes, Data, Size);
close(filedes);