aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/megaco
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-05-01 13:36:00 +0000
committerGerald Combs <gerald@wireshark.org>2005-05-01 13:36:00 +0000
commit9f61403c0b9885796c144748dd6623eb78ba46e2 (patch)
tree027522522b23bbb3dac1ce1e75f1b4066300d4b5 /plugins/megaco
parenta46d7d2d59834940f2204954252d54489fa6315f (diff)
Break out of another infinite loop. Found during fuzz testing.
svn path=/trunk/; revision=14250
Diffstat (limited to 'plugins/megaco')
-rw-r--r--plugins/megaco/packet-megaco.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/megaco/packet-megaco.c b/plugins/megaco/packet-megaco.c
index 1a48c1e12e..388939732b 100644
--- a/plugins/megaco/packet-megaco.c
+++ b/plugins/megaco/packet-megaco.c
@@ -1006,6 +1006,10 @@ dissect_megaco_descriptors(tvbuff_t *tvb, proto_tree *megaco_tree_command_line,
tvb_current_offset = tvb_descriptors_end_offset;
}
+ if (tvb_current_offset <= tvb_previous_offset) {
+ proto_tree_add_text(megaco_tree_command_line, tvb, 0, 0, "[ Parse error: Invalid offset ]");
+ return;
+ }