diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-04-25 16:23:00 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-04-25 16:23:00 +0000 |
commit | 0a2411894856b734f4b6067cb84898b367ede873 (patch) | |
tree | 8b2c13e5b5b612d7a06958c92fb8ca0f9c2e79e0 /epan/dissectors/packet-osi-options.c | |
parent | 5ad620533dad2cd21b088f6043a0e34f9a31c03c (diff) |
Add a tvb_ensure_bytes_exist(). Fixes a bug found during fuzz testing.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14185 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-osi-options.c')
-rw-r--r-- | epan/dissectors/packet-osi-options.c | 1 |
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], |