[libxml2] Reduce some fuzzer timeouts



commit 8446d4593e06f38572d86f159182c7a59880bad1
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon Mar 1 20:56:40 2021 +0100

    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.

 fuzz/Makefile.am  | 4 ++--
 fuzz/html.options | 2 +-
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]