Add a tvb_ensure_bytes_exist().
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 28 Mar 2005 22:35:35 +0000 (22:35 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 28 Mar 2005 22:35:35 +0000 (22:35 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13963 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-mip6.c

index 607cb49e2d0662cd6cec2afdf52005f0b3c81885..779c2cc987f3400ff5f93b53a7fcd5ad06f18cd8 100644 (file)
@@ -537,6 +537,7 @@ dissect_mip6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             return;
         }
         len -= (offset - start_offset);
+        tvb_ensure_bytes_exist(tvb, offset, len);
         dissect_mip6_options(tvb, mip6_tree, offset, len, pinfo);
     }
 }