aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-09-22 21:09:02 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-09-22 21:09:02 +0000
commit6f98654a6a7e2ec52d7a33c8ca322a30d5bcc8f4 (patch)
tree0408272b042f3889576acc8a3e72db0366ccb3ce /epan/dissectors
parent9d1af7d6fb7e529dbc0c2a8be8cf4aed8e6272a1 (diff)
bugfix: don't simply use length field value from packet data, ensure the bytes really exist
svn path=/trunk/; revision=15963
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-dcerpc-lsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dcerpc-lsa.c b/epan/dissectors/packet-dcerpc-lsa.c
index 6c5b710fb2..9332ba47c5 100644
--- a/epan/dissectors/packet-dcerpc-lsa.c
+++ b/epan/dissectors/packet-dcerpc-lsa.c
@@ -385,6 +385,7 @@ lsa_dissect_sec_desc_buf_data(tvbuff_t *tvb, int offset,
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
hf_lsa_sd_size, &len);
+ tvb_ensure_bytes_exist(tvb, offset, len);
dissect_nt_sec_desc(
tvb, offset, pinfo, tree, drep, len, &lsa_access_mask_info);