diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-02-20 16:02:54 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-02-20 15:18:08 +0000 |
commit | 3b644a75c9530b8fc60e2fa964dfb2ae327e240d (patch) | |
tree | 4f4894c15139619ae2fdfc51de31bd660ec37f69 /epan/dissectors | |
parent | 55b5b7caf3ec4856838b0416d5a91d3a3ff67ec8 (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')
-rw-r--r-- | epan/dissectors/packet-q2931.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-q931.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-q933.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-q2931.c b/epan/dissectors/packet-q2931.c index d8f5812363..c5b5bfb1a1 100644 --- a/epan/dissectors/packet-q2931.c +++ b/epan/dissectors/packet-q2931.c @@ -1873,7 +1873,7 @@ dissect_q2931(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U proto_tree *q2931_tree = NULL; proto_item *ti; guint8 call_ref_len; - guint8 call_ref[15]; + guint8 call_ref[16]; guint8 message_type; guint8 message_type_ext; guint16 message_len; 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; diff --git a/epan/dissectors/packet-q933.c b/epan/dissectors/packet-q933.c index c734c90fe8..aae33a7ff4 100644 --- a/epan/dissectors/packet-q933.c +++ b/epan/dissectors/packet-q933.c @@ -1795,7 +1795,7 @@ dissect_q933(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ proto_item *ti; proto_tree *ie_tree = NULL; guint8 call_ref_len; - guint8 call_ref[15]; + guint8 call_ref[16]; guint8 message_type; guint8 info_element; guint16 info_element_len; |