[libxml2] Another attempt at improving fuzzer stability
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Another attempt at improving fuzzer stability
- Date: Mon, 22 Feb 2021 17:34:46 +0000 (UTC)
commit 7a90bdfae62732b1fc4ff28d874cb1c51d299c0a
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Mon Feb 22 17:58:06 2021 +0100
Another attempt at improving fuzzer stability
xmlInitializeCatalog is not called from xmlInitParser.
fuzz/html.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/fuzz/html.c b/fuzz/html.c
index 449a9d49..b53c4025 100644
--- a/fuzz/html.c
+++ b/fuzz/html.c
@@ -6,12 +6,14 @@
#include <libxml/HTMLparser.h>
#include <libxml/HTMLtree.h>
+#include <libxml/catalog.h>
#include "fuzz.h"
int
LLVMFuzzerInitialize(int *argc ATTRIBUTE_UNUSED,
char ***argv ATTRIBUTE_UNUSED) {
xmlInitParser();
+ xmlInitializeCatalog();
xmlSetGenericErrorFunc(NULL, xmlFuzzErrorFunc);
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]