aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-23 04:06:45 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-23 04:06:45 +0000
commit028075b67366ea7edc7b1a8a681030efaabab55e (patch)
tree64e94d06125ca63d7510ecaea347d18e5e1b90b9 /epan
parent082651c83efa53b9766460538603f101c643568e (diff)
Add a couple of tvb_ensure_bytes_exist() calls to avoid dissector bug
exceptions. svn path=/trunk/; revision=14170
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-dcerpc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c
index 24002c397f..8cc8705d81 100644
--- a/epan/dissectors/packet-dcerpc.c
+++ b/epan/dissectors/packet-dcerpc.c
@@ -1424,6 +1424,7 @@ dissect_ndr_cvstring(tvbuff_t *tvb, int offset, packet_info *pinfo,
* but that's another matter; in any case, that would happen only
* if we had an immensely large tvbuff....)
*/
+ tvb_ensure_bytes_exist(tvb, offset, buffer_len);
s = tvb_get_string(tvb, offset, buffer_len);
if (tree && buffer_len)
proto_tree_add_item(string_tree, hfindex, tvb, offset,
@@ -1558,6 +1559,7 @@ dissect_ndr_vstring(tvbuff_t *tvb, int offset, packet_info *pinfo,
* but that's another matter; in any case, that would happen only
* if we had an immensely large tvbuff....)
*/
+ tvb_ensure_bytes_exist(tvb, offset, buffer_len);
s = tvb_get_string(tvb, offset, buffer_len);
if (tree && buffer_len)
proto_tree_add_item(string_tree, hfindex, tvb, offset,