Nick Wellnhofer
46d0b29eb5
fuzz: Avoid accessing internal struct members
...
Switch to xmlNewIOInputStream.
2024-06-14 17:05:21 +02:00
Nick Wellnhofer
fddd582717
fuzz: Operation limit for stylesheet parser
...
This helps mainly with exponential expansion via xsl:includes or
xsl:imports.
2024-03-18 13:20:18 +01:00
Nick Wellnhofer
f86c64b6d5
fuzz: Fix xmlFuzzEntityLoader after recent libxml2 changes
2023-08-14 14:43:43 +02:00
Nick Wellnhofer
93407f6d32
fuzz: Improve fuzzers
...
- Fuzz with multiple inputs.
- Generate XSLT seed corpus from tests.
- Inject malloc failures.
Fixes #84 .
2023-03-09 19:05:53 +01:00
Nick Wellnhofer
22f12ce58e
Stop calling deprecated libxml2 init functions
2022-03-18 15:38:40 +01:00
Nick Wellnhofer
77c26bad04
Don't set maxDepth in XPath contexts
...
The maximum recursion depth is hardcoded in libxml2 now.
2020-08-26 00:34:38 +02:00
Nick Wellnhofer
9ae2f94df1
Stop using maxParserDepth XPath limit
...
This will be removed again from libxml2.
2020-08-17 03:42:11 +02:00
Nick Wellnhofer
db4b4e56f0
Also search parent dir for source XML when fuzzing
...
This should solve problems when fuzzing a shared library build where
binaries are placed in .libs.
2020-01-10 12:56:13 +01:00
Nick Wellnhofer
4fcf6f564c
Improve handling of invalid UTF-8 in format-number
...
Output prefixes and suffixes codepoint by codepoint instead of byte by
byte, like they were parsed before. Otherwise quote characters found in
continuation bytes of invalid UTF-8 could mess up the character count
which excludes quote characters.
2019-09-15 13:19:55 +02:00
Nick Wellnhofer
845ac6bf82
Improve fuzzers
...
- Add more test cases to XSLT seed corpus.
- Improve some test cases in seed corpus.
- Remove some simple test cases from XSLT corpus.
- Call xmlStopParser in XML error handler.
- Improve dictionaries.
- Remove overlong items from dictionary for AFL.
2019-05-20 13:08:54 +02:00
Nick Wellnhofer
311da8c886
Reorganize fuzzing code
...
- Move core fuzzing code into a single file fuzz.c
- Add tests for fuzz targets
- Reduce XSLT operation limit
2019-05-08 12:21:50 +02:00