Skip to content

Commit

Permalink
[bug] fix 5193822305648640 and 4673544697806848
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
  • Loading branch information
0x34d authored and vincentbernat committed Sep 15, 2023
1 parent 5cf30be commit 83f0edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/protocols/lldp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions tests/fuzz_edp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83f0edd

Please sign in to comment.