diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2021-03-01 20:56:40 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2021-03-01 20:56:40 +0100 |
commit | 8446d4593e06f38572d86f159182c7a59880bad1 (patch) | |
tree | 1aed7ef65e0aa47fe4eaa41e7b79adeedb102da1 | |
parent | 688b41a0fb06cf1ab5173308f6a8db5089ba6e14 (diff) | |
download | libxml2-8446d4593e06f38572d86f159182c7a59880bad1.tar.gz |
Reduce some fuzzer timeouts
OSS-Fuzz has been fuzzing the HTML parser with inputs up to 1 MB for
several hundred hours without hitting the 20s timeout. It seems that
most timeouts resulting from accidentally quadratic behavior in the
HTML parser have been fixed. Start to gradually reduce the timeout to
find new performance issues.
-rw-r--r-- | fuzz/Makefile.am | 4 | ||||
-rw-r--r-- | fuzz/html.options | 2 | ||||
-rw-r--r-- | fuzz/uri.options | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am index 2bbdbb1f..7d383470 100644 --- a/fuzz/Makefile.am +++ b/fuzz/Makefile.am @@ -74,7 +74,7 @@ fuzz-html: html$(EXEEXT) seed/html.stamp ./html$(EXEEXT) \ -dict=html.dict \ -max_len=1000000 \ - -timeout=20 \ + -timeout=10 \ corpus/html seed/html # Regexp fuzzer @@ -99,7 +99,7 @@ fuzz-uri: uri$(EXEEXT) @mkdir -p corpus/uri ./uri$(EXEEXT) \ -max_len=10000 \ - -timeout=5 \ + -timeout=2 \ corpus/uri $(srcdir)/seed/uri # XML Schema fuzzer diff --git a/fuzz/html.options b/fuzz/html.options index e5d3bbee..1c63f53d 100644 --- a/fuzz/html.options +++ b/fuzz/html.options @@ -1,2 +1,2 @@ [libfuzzer] -timeout = 20 +timeout = 10 diff --git a/fuzz/uri.options b/fuzz/uri.options index ea2a7a23..0676c659 100644 --- a/fuzz/uri.options +++ b/fuzz/uri.options @@ -1,2 +1,2 @@ [libfuzzer] -timeout = 5 +timeout = 2 |