summaryrefslogtreecommitdiff
path: root/sapi/fuzzer
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-09-07 22:57:09 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-09-07 22:58:34 +0200
commitaf0ba0b2d3641d3372aebbe471c4b194dc3f3440 (patch)
tree06455b246561a144aad5280ada90ee4fa0295fbb /sapi/fuzzer
parent4a2ae84188b904d24c7c26bf2696507c2feb6947 (diff)
downloadphp-git-af0ba0b2d3641d3372aebbe471c4b194dc3f3440.tar.gz
Reduce input size limit in execute fuzzer
We only have 4 Zend test cases > 8k. Large inputs tend to just make things slower.
Diffstat (limited to 'sapi/fuzzer')
-rw-r--r--sapi/fuzzer/fuzzer-execute.c2
-rw-r--r--sapi/fuzzer/generate_execute_corpus.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/sapi/fuzzer/fuzzer-execute.c b/sapi/fuzzer/fuzzer-execute.c
index 95afab1a3e..1259acb31e 100644
--- a/sapi/fuzzer/fuzzer-execute.c
+++ b/sapi/fuzzer/fuzzer-execute.c
@@ -20,7 +20,7 @@
#include "fuzzer-sapi.h"
#define MAX_STEPS 1000
-#define MAX_SIZE (16 * 1024)
+#define MAX_SIZE (8 * 1024)
static uint32_t steps_left;
/* Because the fuzzer is always compiled with clang,
diff --git a/sapi/fuzzer/generate_execute_corpus.php b/sapi/fuzzer/generate_execute_corpus.php
index c1d8d05cb2..dd6424127a 100644
--- a/sapi/fuzzer/generate_execute_corpus.php
+++ b/sapi/fuzzer/generate_execute_corpus.php
@@ -13,7 +13,7 @@ if ($argc >= 3) {
if ($argc >= 4) {
$maxLen = (int) $argv[3];
} else {
- $maxLen = 16 * 1024;
+ $maxLen = 8 * 1024;
}
$it = new RecursiveIteratorIterator(