Wireshark-dev: [Wireshark-dev] tvbuff problem
From: Paul Forgey <[email protected]>
Date: Tue, 19 Dec 2006 00:23:29 -0800
I have a tvbuff that is a composite made from a single subset. If I try to add a tree item pointing to a non-0 offset into this buffer, I get an exception. I can see the following behavior in the debugger. Why is this happening? How should I dissect fields within this buffer if I can't do it with a simple offset/length?
(gdb) print tvb_length (data)
$16 = 11
(gdb) print tvb_length_remaining(data,0)
$17 = 11
(gdb) print tvb_length_remaining(data,1)
$18 = -1
(gdb) print tvb_get_ptr(data,0,11)
$19 = (const guint8 *) 0x508411f "\001\003\006\017pqNO_ü!9\002\005Ü=\a \001"
(gdb) call tvb_get_ptr(option->data,1,10)
(throws exception)

This is wireshark 0.99.4 on MacOS 10.4.8.

Attachment: smime.p7s
Description: S/MIME cryptographic signature