From 2ed929d9f69998bf5fc52f58d0752eeafa2d2c18 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 6 Feb 2026 08:12:52 +0100 Subject: [PATCH] fuzz-ike: Initialize libcharon as logging will cause crashes otherwise The bus.h header file redirects DBG* macros to the bus but that won't be available unless libcharon is initialized. --- fuzz/fuzz_ike.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fuzz/fuzz_ike.c b/fuzz/fuzz_ike.c index 77010c1dd..deb607497 100644 --- a/fuzz/fuzz_ike.c +++ b/fuzz/fuzz_ike.c @@ -14,6 +14,7 @@ * for more details. */ +#include #include #include @@ -21,6 +22,7 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) { dbg_default_set_level(-1); library_init(NULL, "fuzz_ike"); + libcharon_init(); return 0; }