1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

fuzz: Support variable integer sizes in fuzz data

Also switch to big-endian.
This commit is contained in:
Nick Wellnhofer
2023-03-08 13:59:00 +01:00
parent 3f69fc805c
commit 541b1e2850
6 changed files with 46 additions and 17 deletions

View File

@@ -36,7 +36,7 @@ LLVMFuzzerTestOneInput(const char *data, size_t size) {
int opts, outSize;
xmlFuzzDataInit(data, size);
opts = xmlFuzzReadInt();
opts = (int) xmlFuzzReadInt(4);
opts &= ~XML_PARSE_XINCLUDE;
xmlFuzzReadEntities();