Wireshark-bugs: [Wireshark-bugs] [Bug 5447] New: Assert when using ASN.1 dissector with loading

Date: Sun, 28 Nov 2010 11:05:27 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5447

           Summary: Assert when using ASN.1 dissector with loading a 'type
                    table'
           Product: Wireshark
           Version: 1.4.2
          Platform: All
        OS/Version: Fedora
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: rwgroenenberg@xxxxxxxxx


Created an attachment (id=5534)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=5534)
Simple Translation Type file that triggers the assert

Build Information:
[wireshark-1.4.2]$ ./wireshark -v
wireshark 1.4.2

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 (64-bit) with GTK+ 2.20.1, with GLib 2.24.1, with libpcap 1.0.0, with
libz 1.2.3, with POSIX capabilities (Linux), without libpcre, without SMI,
without c-ares, without ADNS, without Lua, without Python, with GnuTLS 2.8.6,
with Gcrypt 1.4.5, with MIT Kerberos, without GeoIP, without PortAudio, without
AirPcap.

Running on Linux 2.6.34.7-61.fc13.x86_64, with libpcap version 1.0.0, with libz
1.2.3, GnuTLS 2.8.6, Gcrypt 1.4.5.

Built using gcc 4.4.5 20101112 (Red Hat 4.4.5-2).

--
In the 1.4.x versions of Wireshark some changes have been made in epan/proto.c
wrt the 'display' field. This causes Wireshark to assert when using the ASN.1
dissector with a self-provided 'type table'.

  19:55:36          Err  Field 'asn1.FooMessage' (asn1.FooMessage) is an
FT_NONE but is being displayed as BASE_DEC instead of BASE_NONE

  Aborted (core dumped)

The cause for this assert is that plugins/asn1/packet-asn1.c was not yet
updated to work with the changes in proto.c

Attached is a simple '.tt' file, representing the syntax of dummy.asn1, that
triggers the assert.
To reproduce: under Edit->Preferences->Protocols->ASN1, set dummy.tt as the
'ASN.1 type table' file and 'FooMessage' as 'ASN.1 PDU Name'. Hit 'OK' and the
assert is triggered.

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