diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-09-19 17:50:38 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-09-19 17:50:38 +0000 |
commit | 0e802a164b569e819b11032d134daca75a30cc92 (patch) | |
tree | c26f4f6698ec9acf26e25419f61390d6f4b36cb2 /epan | |
parent | a6ff6fb97cf1bced68902616cc702ac172537e83 (diff) |
Throw an exception if our ACL length is flat-out wrong.
svn path=/trunk/; revision=15871
Diffstat (limited to 'epan')
-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; } |