aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bthci_cmd.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2012-12-03 14:44:12 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2012-12-03 14:44:12 +0000
commitd2c32e27ed96470be8ef7558113f707dc73e9adf (patch)
tree5818f53f712eaec8f97e2f6ef9fdd80f9c05feaf /epan/dissectors/packet-bthci_cmd.c
parenta07cfc3b5025b44a86e53aceffc04ae80f34b80e (diff)
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8038 :
Prevent a counter overflow in while loops svn path=/trunk/; revision=46345
Diffstat (limited to 'epan/dissectors/packet-bthci_cmd.c')
-rw-r--r--epan/dissectors/packet-bthci_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bthci_cmd.c b/epan/dissectors/packet-bthci_cmd.c
index 1862f2d66b..c51d4e2a5d 100644
--- a/epan/dissectors/packet-bthci_cmd.c
+++ b/epan/dissectors/packet-bthci_cmd.c
@@ -1176,7 +1176,8 @@ dissect_bthci_cmd_cod(int type, tvbuff_t *tvb, int offset, packet_info *pinfo _U
static int
dissect_bthci_eir_ad_data(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, guint8 size)
{
- guint8 i, j, length, type, data_size = size;
+ guint8 length, type, data_size = size;
+ guint16 i, j;
proto_item *item, *ti_data = NULL;
proto_tree *ti_data_subtree = NULL;