ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] H.225 problem, and running under gdb

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 19 Jun 2004 03:21:17 -0700
On Fri, Jun 18, 2004 at 04:59:39PM +0100, Martin Mathieson wrote:
> #5  0x4017ff0e in get_uint_value (tvb=0x83eadd4, offset=109, length=0,
> little_endian=0) at proto.c:580
> #6  0x40180231 in proto_tree_add_item (tree=0x83ea8b0, hfindex=5645,
> tvb=0x83eadd4, start=109, length=0,
>     little_endian=0) at proto.c:700
> #7  0x4047df17 in dissect_per_sequence_of (tvb=0x83eadd4, offset=872,
> pinfo=0x83ea2f0,
>     parent_tree=0x83ea8b0, hf_index=5645, ett_index=-1,
>     func=0x403621d4 <dissect_h225_authenticationCapability_item>) at
> ../packet-per.c:239
> #8  0x40362266 in dissect_h225_authenticationCapability (tvb=0x83eadd4,
> offset=872, pinfo=0x83ea2f0,
>     tree=0x83ea8b0) at ../packet-h225.c:3032
> #9  0x404807eb in dissect_per_sequence (tvb=0x83eadd4, offset=872,
> pinfo=0x83ea2f0, parent_tree=0x83ea8c8,
>     hf_index=5483, ett_index=2645, sequence=0x40916760) at
> ../packet-per.c:1279
> #10 0x40367da2 in dissect_h225_GatekeeperRequest (tvb=0x83eadd4, offset=6,
> pinfo=0x83ea2f0, tree=0x83ea8c8)
>     at ../packet-h225.c:6014

"proto_tree_add_item()" is passed the length of the item to add; if it's
an FT_UINT_BYTES, FT_BOOLEAN, FT_UINT{8,16,24,32,64}, or
FT_INT{8,16,24,32,64}, that length *cannot* be zero, as there has to be
at least one byte of numerical value - but the value being passed to
"dissect_per_sequence_of()" is "hf_h225_authenticationCapability", which
is an FT_UINT32.