diff options
Diffstat (limited to 'epan/dissectors/packet-dcerpc.c')
-rw-r--r-- | epan/dissectors/packet-dcerpc.c | 2 |
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, |