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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user