aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-osi-options.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-25 16:23:00 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-25 16:23:00 +0000
commitc993ffc6dce6d99994252e7f353f8ed6d12aed8c (patch)
tree8b2c13e5b5b612d7a06958c92fb8ca0f9c2e79e0 /epan/dissectors/packet-osi-options.c
parent78a09d190b2875aba634b7100172bd226368f38c (diff)
Add a tvb_ensure_bytes_exist(). Fixes a bug found during fuzz testing.
svn path=/trunk/; revision=14185
Diffstat (limited to 'epan/dissectors/packet-osi-options.c')
-rw-r--r--epan/dissectors/packet-osi-options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-osi-options.c b/epan/dissectors/packet-osi-options.c
index f49cffed75..b7f2530398 100644
--- a/epan/dissectors/packet-osi-options.c
+++ b/epan/dissectors/packet-osi-options.c
@@ -287,6 +287,7 @@ dissect_option_rfd( const guchar error, const guchar field, int offset,
};
error_class = error & OSI_OPT_RFD_MASK;
+ tvb_ensure_bytes_exist(tvb, offset + field, 1);
if ( OSI_OPT_RFD_GENERAL == error_class ) {
proto_tree_add_text( tree, tvb, offset + field, 1, format_string[0],