fuzz: Fix IO error check in reader fuzzer

This commit is contained in:
Nick Wellnhofer 2024-12-12 19:19:47 +01:00
parent 7a9728c177
commit 8139ad2f77

View File

@ -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);