mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
fuzz: Fix IO error check in reader fuzzer
This commit is contained in:
parent
7a9728c177
commit
8139ad2f77
@ -539,7 +539,7 @@ LLVMFuzzerTestOneInput(const char *data, size_t size) {
|
||||
error = xmlTextReaderGetLastError(reader);
|
||||
if (error->code == XML_ERR_NO_MEMORY)
|
||||
oomReport = 1;
|
||||
xmlFuzzCheckFailureReport("reader", oomReport, 0);
|
||||
xmlFuzzCheckFailureReport("reader", oomReport, error->code == XML_IO_EIO);
|
||||
|
||||
xmlFreeTextReader(reader);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user