mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
silence glib log output during fuzzing on oss-fuzz
This commit is contained in:
parent
96562e460b
commit
9ff224d05d
12 changed files with 48 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ LDADD = \
|
|||
$(FUZZER_LIBS)
|
||||
|
||||
event_get_params_fuzz_SOURCES = \
|
||||
../../null-logger.c \
|
||||
event-get-params.c \
|
||||
$(top_srcdir)/src/fe-text/module-formats.c
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
#include <irssi/src/core/args.h>
|
||||
#include <irssi/src/fe-common/core/printtext.h>
|
||||
#include <irssi/src/irc/core/irc.h>
|
||||
#include <irssi/src/fe-fuzz/null-logger.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
|
@ -35,6 +36,9 @@
|
|||
#include <string.h>
|
||||
|
||||
int LLVMFuzzerInitialize(int *argc, char ***argv) {
|
||||
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
||||
g_log_set_null_logger();
|
||||
#endif
|
||||
core_register_options();
|
||||
fe_common_core_register_options();
|
||||
/* no args */
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
executable('event-get-params-fuzz',
|
||||
files(
|
||||
'../../null-logger.c',
|
||||
'event-get-params.c',
|
||||
'../../../fe-text/module-formats.c',
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue