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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user