diff options
-rw-r--r-- | epan/dissectors/packet-dcerpc-afs4int.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dcerpc-afs4int.c b/epan/dissectors/packet-dcerpc-afs4int.c index a17f19e6d7..26cf408bb5 100644 --- a/epan/dissectors/packet-dcerpc-afs4int.c +++ b/epan/dissectors/packet-dcerpc-afs4int.c @@ -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; } |