1From 48c13bd5203b325deb670d5b69015e9adc40990f Mon Sep 17 00:00:00 2001 2From: Nick Wellnhofer <wellnhofer@aevum.de> 3Date: Sat, 29 Oct 2022 15:38:16 +0200 4Subject: [PATCH 01/28] xinclude: Fix memory leak when fuzzing 5 6This only affects the fuzzing build mode. 7 8Reference: https://github.com/GNOME/libxml2/commit/075cee9e9f1bedb6b2ca87e73a952fb2e92da3c1 9Conflict: xinclude.c:<xmlXIncludeDoProcess> 10--- 11 xinclude.c | 2 +- 12 1 file changed, 1 insertion(+), 1 deletion(-) 13 14diff --git a/xinclude.c b/xinclude.c 15index 8c14a68..6ee58cb 100644 16--- a/xinclude.c 17+++ b/xinclude.c 18@@ -2424,7 +2424,7 @@ xmlXIncludeDoProcess(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr tree, 19 * of replacements. 20 */ 21 if (ctxt->incTotal >= 20) 22- return(-1); 23+ break; 24 #endif 25 ctxt->incTotal++; 26 xmlXIncludePreProcessNode(ctxt, cur); 27-- 282.27.0 29 30