From: Arjun Singh Date: Mon, 7 Aug 2023 11:31:45 +0000 (+0530) Subject: [bug] fix 5193822305648640 and 4673544697806848 X-Git-Tag: 1.0.18~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83f0eddcfb7fb1d0a825136e3929f8847cd85a62;p=thirdparty%2Flldpd.git [bug] fix 5193822305648640 and 4673544697806848 Signed-off-by: Arjun Singh --- diff --git a/src/daemon/protocols/lldp.c b/src/daemon/protocols/lldp.c index 4f689a0c..23211f8e 100644 --- a/src/daemon/protocols/lldp.c +++ b/src/daemon/protocols/lldp.c @@ -614,7 +614,7 @@ lldp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardwa #endif struct lldpd_mgmt *mgmt; int af; - u_int8_t addr_str_length, addr_str_buffer[32]; + u_int8_t addr_str_length, addr_str_buffer[32] = { 0 }; u_int8_t addr_family, addr_length, *addr_ptr, iface_subtype; u_int32_t iface_number, iface; int unrecognized; diff --git a/tests/fuzz_edp.c b/tests/fuzz_edp.c index 76d1253a..e82e5331 100644 --- a/tests/fuzz_edp.c +++ b/tests/fuzz_edp.c @@ -32,6 +32,7 @@ LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) struct lldpd cfg; cfg.g_config.c_mgmt_pattern = NULL; + cfg.g_config.c_tx_hold = LLDPD_TX_HOLD; struct lldpd_chassis *nchassis = NULL; struct lldpd_port *nport = NULL;