From 145d654803ffcfb4ccbf28b692465194fb538dda Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Wed, 20 Sep 2023 16:59:52 +0530 Subject: [PATCH] [oss-fuzz] Issue 62435 Signed-off-by: Arjun Singh --- src/log.c | 2 +- tests/fuzz_edp.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 0f3835e8..f6f8e383 100644 --- a/src/log.c +++ b/src/log.c @@ -190,7 +190,7 @@ vlog(int pri, const char *token, const char *fmt, va_list ap) void log_warn(const char *token, const char *emsg, ...) { - char *nfmt; + char *nfmt = NULL; va_list ap; /* best effort to even work in out of memory situations */ diff --git a/tests/fuzz_edp.c b/tests/fuzz_edp.c index e82e5331..c670c5cf 100644 --- a/tests/fuzz_edp.c +++ b/tests/fuzz_edp.c @@ -37,6 +37,7 @@ LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) struct lldpd_chassis *nchassis = NULL; struct lldpd_port *nport = NULL; struct lldpd_hardware hardware; + TAILQ_INIT(&hardware.h_rports); log_register(donothing); edp_decode(&cfg, (char *)Data, Size, &hardware, &nchassis, &nport); -- 2.39.5