aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ua3g.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-03-05 21:59:52 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-03-05 21:59:52 +0000
commit45c4657d9774067139cca569ceeb940b394428d8 (patch)
tree1b3c5adde377e618981be3b0dfbad300dfa79bca /epan/dissectors/packet-ua3g.c
parent69ef1478d48ca0a661ef8e772a0257febd56bc3c (diff)
Fix the infinite-loop fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6907 :
Don't try to display tone entries if there are none (but there is length for them). Could/should be an expert_info. svn path=/trunk/; revision=41359
Diffstat (limited to 'epan/dissectors/packet-ua3g.c')
-rw-r--r--epan/dissectors/packet-ua3g.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ua3g.c b/epan/dissectors/packet-ua3g.c
index 3cb39ad20e..edbbe0e534 100644
--- a/epan/dissectors/packet-ua3g.c
+++ b/epan/dissectors/packet-ua3g.c
@@ -1445,7 +1445,7 @@ decode_ip_device_routing(proto_tree *tree _U_,
offset++;
length--;
- while(length > 0)
+ while(length > 0 && tone_nb_entries)
{
for(i = 1; i <= tone_nb_entries; i++)
{