kc3-lang/libxml2/fuzz/fuzz.h

Branch :


Log

Author Commit Date CI Message
b3492259 2025-03-14 00:01:11 include: Change some return types from int to enum This also affects some new functions from 2.13.
fd1b9391 2025-03-13 23:20:16 include: Convert some macros to enums
c6c6d8af 2024-12-11 16:24:23 fuzz: Mutate fuzz data chunks separately Implement a custom mutator that takes a list of fixed-size chunks which are mutated with a given probability. This makes sure that values like parser options or failure position are mutated regularly even as the fuzz data grows large. Values can also be adjusted temporarily to make the fuzzer focus on failure injection, for example. Thanks to David Kilzer for the idea.
fd359a7e 2024-12-10 15:54:12 fuzz: Start to fuzz XML Schema validator
72f84dd7 2024-12-17 18:26:24 fuzz: Inject IO failures into serialization code
9f652e57 2024-11-25 19:41:33 fuzz: Inject IO failures We use the same counter for injecting malloc and IO failures. This mostly renames several functions and variables.
754843ab 2024-11-26 02:22:35 fuzz: Remove xmlFuzzEntityLoader Unused after commit de0c7791.
5d542fef 2024-06-16 20:02:45 libxml: define ATTRIBUTE_UNUSED for clang Silences warnings under Clang on Windows. Signed-off-by: Rosen Penev <rosenp@gmail.com>
208f27f9 2024-06-15 19:13:08 include: Don't define ATTRIBUTE_UNUSED in public header Stop polluting namespace with unprefixed names.
52384043 2024-06-11 19:10:41 parser: Pass resource type to resource loader
780e432a 2024-06-11 16:58:09 fuzz: Move to per-context error handler
116d8c01 2024-06-11 15:48:32 fuzz: Move to per-context resource loader
caa8bb38 2024-05-19 19:31:54 fuzz: Move back to xmlSetExternalEntityLoader xmlParserInputBufferCreateFilenameDefault can't report malloc failures.
b3cb41be 2024-05-13 12:18:08 fuzz: Add xmllint fuzzer
b62ccf7f 2024-04-16 13:24:12 fuzz: Add fuzzer for XML reader API
ee0c1f87 2024-02-29 14:51:49 fuzz: New tree API fuzzer
da996c8d 2023-12-10 14:46:59 uri: Report malloc failures Fix many places where malloc failures weren't reported, for example after calling xmlStrdup. Introduce new public API functions that return a separate error code if a memory allocation fails: - xmlParseURISafe - xmlBuildURISafe - xmlBuildRelativeURISafe Update the fuzzer to check whether malloc failures are reported.
b7d56ef7 2023-09-22 17:03:56 malloc-fail: Report malloc failure in xmlRegEpxFromParse Also check whether malloc failures are reported when fuzzing.
f9d717af 2023-09-21 13:05:49 fuzz: Allow to fuzz without push, reader or output modules
da274bfa 2023-09-21 01:29:40 build: Fix build when certain modules are disabled
4eba9f9c 2023-03-12 16:15:54 fuzz: Separate fuzzer for DTD validation
42322eba 2023-03-08 13:59:03 fuzz: Inject random malloc failures Fixes #344.
541b1e28 2023-03-08 13:59:00 fuzz: Support variable integer sizes in fuzz data Also switch to big-endian.
09dac45a 2022-12-26 17:49:27 fuzz: Add separate XInclude fuzzer XIncludes involve XPath processing which can still lead to timeouts when fuzzing. This will probably take a while to fix. The rest of the XML parsing code should hopefully run without timeouts now. OSS-Fuzz only shows a single timeout test case, so separate the XInclude from the core XML fuzzer.
f9ccb3b8 2021-02-22 21:26:13 Check for feature flags in fuzzer tests
0d5f3710 2020-08-24 16:28:54 Consolidate seed corpus generation Implement file handling in C to speed up corpus generation.
0d9da029 2020-08-24 03:16:25 Test fuzz targets with dummy driver Run fuzz targets with files in seed corpus during test.
ad26a60f 2020-08-06 13:20:01 Add XPath and XPointer fuzzer
eac1c7e2 2020-06-21 14:42:00 Fuzz target for XML Schemas This only tests the schema parser for now.
ffd31dbe 2020-06-21 12:14:19 Move entity recorder to fuzz.c
536f421d 2020-06-15 12:20:54 Fuzz target for HTML parser
00ed736e 2020-06-05 12:49:25 Add a couple of libFuzzer targets - XML fuzzer Currently tests the pull parser, push parser and reader, as well as serialization. Supports splitting fuzz data into multiple documents for things like external DTDs or entities. The seed corpus is built from parts of the test suite. - Regexp fuzzer Seed corpus was statically generated from test suite. - URI fuzzer Tests parsing and most other functions from uri.c.