Ensure ieee802154_packet struct is initialized.

A malformed capture could cause the zbee-nwk-gp and 6lowpan heuristics to be
called with an incompletely-initialized structure, leading to valgrind errors.

Change-Id: Iaea6daecdca6856466b58071f095930e68c6e159
Closes-Bug: #9735
Reviewed-on: https://code.wireshark.org/review/418
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2014-02-26 19:11:12 -05:00
parent 9733917e28
commit 1828c34519
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ dissect_ieee802154_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, g
const char *saved_proto;
ws_decrypt_status status;
ieee802154_packet *packet = wmem_new(wmem_packet_scope(), ieee802154_packet);
ieee802154_packet *packet = wmem_new0(wmem_packet_scope(), ieee802154_packet);
ieee802154_short_addr addr16;
ieee802154_hints_t *ieee_hints;