summaryrefslogtreecommitdiff
path: root/sapi/fuzzer/fuzzer-parser.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-11-07 20:47:04 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-11-07 21:20:34 +0100
commit11649a6d779997fac59f487c76dd361cdefe73fb (patch)
tree2e8c9ca6156ec08b42b8b16bd79fc2ebe9556c83 /sapi/fuzzer/fuzzer-parser.c
parentab6b412a0b6f4c6cae5820a50d1d3756ea26cd0c (diff)
downloadphp-git-11649a6d779997fac59f487c76dd361cdefe73fb.tar.gz
Reduce size limit in parser fuzzer
Avoid stack overflows during compilation of deeply nested expressions.
Diffstat (limited to 'sapi/fuzzer/fuzzer-parser.c')
-rw-r--r--sapi/fuzzer/fuzzer-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/fuzzer/fuzzer-parser.c b/sapi/fuzzer/fuzzer-parser.c
index 155bd991cc..19f685f967 100644
--- a/sapi/fuzzer/fuzzer-parser.c
+++ b/sapi/fuzzer/fuzzer-parser.c
@@ -27,7 +27,7 @@
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
char *s;
- if (Size > 64 * 1024) {
+ if (Size > 32 * 1024) {
/* Large inputs have a large impact on fuzzer performance,
* but are unlikely to be necessary to reach new codepaths. */
return 0;