From 6f98654a6a7e2ec52d7a33c8ca322a30d5bcc8f4 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Thu, 22 Sep 2005 21:09:02 +0000 Subject: bugfix: don't simply use length field value from packet data, ensure the bytes really exist svn path=/trunk/; revision=15963 --- epan/dissectors/packet-dcerpc-lsa.c | 1 + 1 file changed, 1 insertion(+) (limited to 'epan/dissectors') 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); -- cgit v1.2.3