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.
This commit is contained in:
Tobias Brunner
2026-02-06 08:12:52 +01:00
parent 7973080969
commit 2ed929d9f6
+2
View File
@@ -14,6 +14,7 @@
* for more details. * for more details.
*/ */
#include <daemon.h>
#include <library.h> #include <library.h>
#include <encoding/message.h> #include <encoding/message.h>
@@ -21,6 +22,7 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
{ {
dbg_default_set_level(-1); dbg_default_set_level(-1);
library_init(NULL, "fuzz_ike"); library_init(NULL, "fuzz_ike");
libcharon_init();
return 0; return 0;
} }