forked from osmocom/wireshark
Break out of another infinite loop. Found during fuzz testing.
svn path=/trunk/; revision=14250
This commit is contained in:
parent
a46d7d2d59
commit
9f61403c0b
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue