Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Properly check if we reached the end of the xml file
Baptiste Daroussin committed 6 years ago
commit 3c419cddb1c244e447e9de9c4c75db51691fc530
parent 2055e69
1 file changed +4 -1
modified libpkg/pkg_audit.c
@@ -618,7 +618,10 @@ pkg_audit_parse_vulnxml(struct pkg_audit *audit)
		}
	}

-
	ret = EPKG_OK;
+
	if (yxml_eof(&x) == YXML_OK)
+
		ret = EPKG_OK;
+
	else
+
		pkg_emit_error("Invalid end of XML");
out:
	utstring_free(ud.content);