Thread CoAP: fix 2 potential infinite loops

Bug: 13693
Change-Id: Ie47ca69a9941dbc273bb8f18e300773092a2fc96
Reviewed-on: https://code.wireshark.org/review/21620
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Pascal Quantin 2017-05-12 21:07:24 +02:00 committed by Anders Broman
parent b6c2592ffa
commit 008e6eff4e
1 changed files with 2 additions and 2 deletions

View File

@ -898,7 +898,7 @@ get_chancount(tvbuff_t *tvb)
{
int i, j;
guint8 entries = 0;
guint16 check_len = tlv_len;
gint32 check_len = tlv_len;
guint8 check_offset = offset + 1; /* Channel page first */
guint8 masklen;
@ -1742,7 +1742,7 @@ dissect_thread_mc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
proto_tree *cm_tree;
int i;
guint8 entries = 0;
guint16 check_len = tlv_len;
gint32 check_len = tlv_len;
guint8 check_offset = offset + 1; /* Channel page first */
guint8 masklen;