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 2008] New: Improvement for "choice with length==0"

Date: Thu, 22 Nov 2007 15:01:48 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2008

           Summary: Improvement for "choice with length==0"
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: florent.drouin@xxxxxxxxxx


Build Information:
/wireshark_TRUNK23543$ ./wireshark -v
wireshark 0.99.8 (and wireshark 0.99.7pre1)

Copyright 1998-2007 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.6.4, with GLib 2.6.4, with libpcap 0.9-PRE-CVS, with libz
1.2.2, with libpcre 4.5, without SMI, with ADNS, without Lua, with GnuTLS
1.0.16, with Gcrypt 1.2.0, with Heimdal Kerberos, without PortAudio, without
AirPcap.

Running on Linux 2.6.15.7, with libpcap version 0.9-PRE-CVS.

Built using gcc 3.3.5 (Debian 1:3.3.5-13).

--
The processing of ASN1 Choice with length==0 generate warnings since SVN23497.
In GSMMAP and CAMEL (BER ASN1 generated) dissectors, this was not the case
previously, whereas, CHOICE with empty field where already used, and correctly
processed.
That's why I propose to add an option in the BER decoder, to display these
warnings (and expert infos) only if requested. 

Additionaly, I did add a similar patch for sequence with null length. The
sequence is fully decoded (with or without warning, according to the option).


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