ieee80211: initialize local buffers.

Fix valgrind errors for jumps on non-initialized memory.

Fix: #17894.
This commit is contained in:
Dario Lombardo 2022-01-19 16:22:01 +01:00 committed by A Wireshark GitLab Utility
parent 5c5c109ec0
commit ac164db3ac
1 changed files with 3 additions and 0 deletions

View File

@ -23780,6 +23780,9 @@ dissect_ista_availability_window(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tr
int avail_bits_offset;
gint8 bits;
memset(avail_string, 0x0, sizeof(avail_string));
memset(pad_string, 0x0, sizeof(pad_string));
/* These are at the same level as the avail bits */
proto_tree_add_item(tree, hf_ieee80211_ftm_ista_availability_count,
tvb, offset, 2, ENC_LITTLE_ENDIAN);