mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Pass mode to open() in exif fuzzer
Funny how despite all those sanitizers running, nothing ever caught this...
This commit is contained in:
parent
e49593a7c3
commit
15761ef359
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user