aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h223.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-01-24 10:28:56 -0800
committerGerald Combs <gerald@wireshark.org>2015-01-24 19:14:38 +0000
commitcf142c6b6771d7c83e736464850f4be9a843b020 (patch)
tree9dc2c4a2319da9b4373078a2f2baa1297a7c711a /epan/dissectors/packet-h223.c
parent7ed097c06abfb5534d65c19f2abe4f41cb059a0b (diff)
Get Wireshark to compile with afl-gcc.
Fix errors found by American Fuzzy Lop's afl-gcc (http://lcamtuf.coredump.cx/afl/): peektagged.c: error: 'fileVersion' may be used uninitialized in this function packet-h223.c: error: variable 'circuit_id' might be clobbered by 'longjmp' or 'vfork' wslua_proto.c: error: variable 'd' might be clobbered by 'longjmp' or 'vfork' wslua_proto.c: error: variable 'dt' might be clobbered by 'longjmp' or 'vfork' Change-Id: Idd74a3ad7b236d3a8756c1e7e917b1c74143f381 Reviewed-on: https://code.wireshark.org/review/6767 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-h223.c')
-rw-r--r--epan/dissectors/packet-h223.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-h223.c b/epan/dissectors/packet-h223.c
index c2fdee29d7..4e5f3927ae 100644
--- a/epan/dissectors/packet-h223.c
+++ b/epan/dissectors/packet-h223.c
@@ -744,12 +744,12 @@ dissect_mux_sdu_fragment(tvbuff_t *volatile next_tvb, packet_info *pinfo,
{
/* update the circuit details before passing to a subdissector */
circuit_type ctype = CT_H223;
- guint32 circuit_id = circuit_chain_lookup(call_info, vc);
/* XXX - Not sure if these need to be saved */
- pinfo->circuit_id = circuit_id;
+ pinfo->circuit_id = circuit_chain_lookup(call_info, vc);
pinfo->ctype = ctype;
TRY {
+ guint32 circuit_id = pinfo->circuit_id;
circuit_t *subcircuit=find_circuit(ctype,circuit_id,pinfo->fd->num);
proto_tree *vc_tree = NULL;
proto_item *vc_item;