Skip to content

Commit af0ba0b

Browse files
committed
Reduce input size limit in execute fuzzer
We only have 4 Zend test cases > 8k. Large inputs tend to just make things slower.
1 parent 4a2ae84 commit af0ba0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sapi/fuzzer/fuzzer-execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "fuzzer-sapi.h"
2121

2222
#define MAX_STEPS 1000
23-
#define MAX_SIZE (16 * 1024)
23+
#define MAX_SIZE (8 * 1024)
2424
static uint32_t steps_left;
2525

2626
/* Because the fuzzer is always compiled with clang,

sapi/fuzzer/generate_execute_corpus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
if ($argc >= 4) {
1414
$maxLen = (int) $argv[3];
1515
} else {
16-
$maxLen = 16 * 1024;
16+
$maxLen = 8 * 1024;
1717
}
1818

1919
$it = new RecursiveIteratorIterator(

0 commit comments

Comments
 (0)