ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 3086] New: Assertion thrown in fvalue_get_uinteger when de

Date: Tue, 25 Nov 2008 17:13:49 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3086

           Summary: Assertion thrown in fvalue_get_uinteger when decoding
                    TIPC
           Product: Wireshark
           Version: 1.0.4
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Major
          Priority: Low
         Component: TShark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: dhelder@xxxxxxxxxxxxxx


Build Information:
TShark 1.0.4

Copyright 1998-2008 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GLib 2.18.2, with libpcap 0.9.8, with libz 1.2.3, without POSIX
capabilities, without libpcre, without SMI, without ADNS, without Lua, without
GnuTLS, with Gcrypt 1.4.1, with MIT Kerberos.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.

Running on Darwin 8.11.1 (MacOS 10.4.11), with libpcap version 0.9.8.

Built using gcc 4.0.1 (Apple Computer, Inc. build 5367).
--
In print.c, line 413, the code calls fvalue_get_uinteger if the bit mask is
non-zero.  But the field is a string so fvalue_get_uinteger fails.  The field
in this case is from TIPC (packet-tipc.c, line 2668).  There are a few other
string fields in TIPC that have bit masks.  A quick grep didn't turn up any
others.


(gdb) p *fi->hfinfo
$8 = {
  name = 0x492c8c0 "Previous Node", 
  abbrev = 0x492c8d0 "tipcv2.prev_node", 
  type = FT_STRING, 
  display = 0, 
  strings = 0x0, 
  bitmask = 4294967295, 
  blurb = 0x492c8e4 "TIPC Previous Node", 
  id = 59769, 
  parent = 59697, 
  ref_count = 0, 
  bitshift = 0, 
  same_name_next = 0x0, 
  same_name_prev = 0x0
}

(gdb) bt
#0  0x9003d66c in kill ()
#1  0x9010e8cf in raise ()
#2  0x9010d422 in abort ()
#3  0x0035be12 in g_assertion_message ()
#4  0x0035c354 in g_assertion_message_expr ()
#5  0x03e523d2 in fvalue_get_uinteger (fv=0x802659c) at ftypes.c:459
#6  0x00004551 in proto_tree_write_node_pdml (node=0x8025218, data=0xbffff270)
at print.c:413
#7  0x03e18456 in proto_tree_children_foreach (tree=0x8025338, func=0x42c8
<proto_tree_write_node_pdml>, data=0xbffff270) at proto.c:522
#8  0x00004600 in proto_tree_write_node_pdml (node=0x8025338, data=0xbffff270)
at print.c:437
#9  0x03e18456 in proto_tree_children_foreach (tree=0x8025548, func=0x42c8
<proto_tree_write_node_pdml>, data=0xbffff270) at proto.c:522
#10 0x000038b0 in proto_tree_write_pdml (edt=0x7cf42f0, fh=0xa0001c38) at
print.c:247
#11 0x000186e8 in process_packet (cf=0x24c20, offset=-4611705480803002772,
whdr=0x7cf1d98, pseudo_header=0x7cf1dac, pd=0x8023200 "") at tshark.c:2872
#12 0x0001b470 in main (argc=3, argv=0xbffff5b8) at tshark.c:2248


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.