aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-q931.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-02-20 16:02:54 +0100
committerPeter Wu <peter@lekensteyn.nl>2016-02-20 15:18:08 +0000
commit3b644a75c9530b8fc60e2fa964dfb2ae327e240d (patch)
tree4f4894c15139619ae2fdfc51de31bd660ec37f69 /epan/dissectors/packet-q931.c
parent55b5b7caf3ec4856838b0416d5a91d3a3ff67ec8 (diff)
Fix various off-by-one in buffer sizes
Some only allow buffer overruns (read), others also buffer overflows (write). Found by looking for '\[ *N *\]' where N is 255, 0xff, 15 and 0xf (case insensitive). Change-Id: I250687e2fdeb8fbd5eaf0bbb8251c3dab9640760 Reviewed-on: https://code.wireshark.org/review/14034 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-q931.c')
-rw-r--r--epan/dissectors/packet-q931.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c
index b4a02ae21b..654f03c004 100644
--- a/epan/dissectors/packet-q931.c
+++ b/epan/dissectors/packet-q931.c
@@ -2483,7 +2483,7 @@ dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_item *ti;
guint8 prot_discr;
guint8 call_ref_len;
- guint8 call_ref[15];
+ guint8 call_ref[16];
guint32 call_ref_val;
guint8 message_type, segmented_message_type;
guint8 info_element;