Wireshark-bugs: [Wireshark-bugs] [Bug 5334] New: proto.c:1130: failed assertion "DISSECTOR_ASSER
Date: Sat, 23 Oct 2010 08:38:23 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5334

           Summary: proto.c:1130: failed assertion
                    "DISSECTOR_ASSERT_NOT_REACHED"
           Product: Wireshark
           Version: 1.5.x (Experimental)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: cridlig@xxxxxxxxx


Build Information:
Version 1.2.11

Copyright 1998-2010 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 GTK+ 2.22.0, (32-bit) with GLib 2.26.0, with libpcap 1.1.1, with
libz 1.2.3.4, with POSIX capabilities (Linux), with libpcre 8.2, with SMI
0.4.8,
with c-ares 1.7.3, with Lua 5.1, with GnuTLS 2.8.6, with Gcrypt 1.4.5, with MIT
Kerberos, with GeoIP, with PortAudio V19-devel (built Aug  3 2010 05:16:18),
without AirPcap.

Running on Linux 2.6.35-22-generic, with libpcap version 1.1.1, GnuTLS 2.8.6,
Gcrypt 1.4.5.

Built using gcc 4.4.5.

Wireshark is Open Source Software released under the GNU General Public
License.

Check the man page and http://www.wireshark.org for more information.
--
The failed assertion "DISSECTOR_ASSERT_NOT_REACHED" in proto.c line 1130 is
reached in function get_uint_value() when a Lua dissector adds a field of type
ubytes with length > 4 by using the Lua API function treeitem:add_le()

This is caused by function proto_tree_new_item() calling get_uint_value(tvb,
start, length, encoding) with length>4 on line 1261 in proto.c

Note that function proto_tree_new_item() also calls get_uint_value(tvb, start,
length, encoding) without checking the length parameter on line 1450 in proto.c

This bug was first noticed on 1.5.x (experimental), but affects other versions
of Wireshark.

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