Break out of another infinite loop. Found during fuzz testing.

svn path=/trunk/; revision=14250
This commit is contained in:
Gerald Combs 2005-05-01 13:36:00 +00:00
parent a46d7d2d59
commit 9f61403c0b
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}