Because any of the offset checkers in tvbuff.c compare the index
against the reported length and throw a bounds exception if it goes
past it. When the composite tvbuff is created, the reported_length
starts off as 0 and is not updated by tvb_composite_append () or
Here's specifically what I am doing, and some other problems with it
The secondary problem with this is when using the composite buffer in
proto_tree_add_item (). The offset from the first buffer is
highlighted for the _total duration_, even though the composite
covers discontinuous regions. Is there any easy way for a single tree
item to highlight discontinuous regions of the capture data?
Finally, this entire process may be recursively applied in my
project. If I create composite buffers from subsets of composite
buffers, tvb_free_chain () eventually crashes when the root packet
data is free'd by wireshark.