forked from osmocom/wireshark
Throw an exception if our ACL length is flat-out wrong.
svn path=/trunk/; revision=15871
This commit is contained in:
parent
a6ff6fb97c
commit
0e802a164b
|
@ -885,7 +885,10 @@ dissect_afsAcl (tvbuff_t * tvb, int offset,
|
|||
|
||||
offset += (acl_len - 38);
|
||||
|
||||
proto_item_set_len(item, offset-old_offset);
|
||||
if (offset <= old_offset)
|
||||
THROW(ReportedBoundsError);
|
||||
|
||||
proto_item_set_len(item, offset-old_offset);
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue