mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Limit input size in exif fuzzer
Probably still too much...
This commit is contained in:
parent
7d90f4864d
commit
872a759f88
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|||
char *filename;
|
||||
int filedes;
|
||||
|
||||
if (Size > 256 * 1024) {
|
||||
/* Large inputs have a large impact on fuzzer performance,
|
||||
* but are unlikely to be necessary to reach new codepaths. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (fuzzer_request_startup() == FAILURE) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue