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:
@@ -32,7 +32,7 @@ LLVMFuzzerTestOneInput(const char *data, size_t size) {
|
||||
int opts;
|
||||
|
||||
xmlFuzzDataInit(data, size);
|
||||
opts = xmlFuzzReadInt();
|
||||
opts = (int) xmlFuzzReadInt(4);
|
||||
|
||||
docBuffer = xmlFuzzReadRemaining(&docSize);
|
||||
if (docBuffer == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user