aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2017-11-12 16:55:31 +0100
committerAnders Broman <a.broman58@gmail.com>2017-11-12 17:46:37 +0000
commitd283939303f9ebad95ccd845930417f18851c6b9 (patch)
tree25a9cd6e4eccebfa13c4e98c07bf9f210ef27e6e
parent3d77e1bbcdbc5064fc8b2c971a4cbfc4cd5e2f72 (diff)
Fix "might be clobbered by 'longjmp' or 'vfork' warning
Change-Id: I51ec17b5eabe7b0f9fc68f4cf599ca55b8e4631d Reviewed-on: https://code.wireshark.org/review/24385 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-ieee802154.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee802154.c b/epan/dissectors/packet-ieee802154.c
index 6f896b1..908c0ab 100644
--- a/epan/dissectors/packet-ieee802154.c
+++ b/epan/dissectors/packet-ieee802154.c
@@ -2845,12 +2845,12 @@ static int
dissect_pie_mlme(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ies_tree, void *data)
{
proto_tree *tree = ieee802154_create_pie_tree(tvb, ies_tree, hf_ieee802154_mlme, ett_ieee802154_mlme);
- guint offset = 2;
+ volatile guint offset = 2;
while (tvb_reported_length_remaining(tvb, offset) > 1) {
guint16 psie_ie = tvb_get_letohs(tvb, offset);
volatile guint16 psie_id;
- tvbuff_t * psie_tvb;
+ tvbuff_t *volatile psie_tvb;
if (psie_ie & IEEE802154_PSIE_TYPE_MASK) {
/* long format: Table 7-17-Sub-ID allocation for long format */