Wireshark-bugs: [Wireshark-bugs] [Bug 2502] New: Wireshark crashing when trying to decode SBC_RE
Date: Thu, 24 Apr 2008 14:25:17 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2502

           Summary: Wireshark crashing when trying to decode SBC_REQ and
                    SBC_RSP messages
           Product: Wireshark
           Version: 1.0.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: mohanbabu.kandra@xxxxxxxxx


Build Information:
Help-> about wireshark
Version 1.0.0

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 GTK+ 2.12.8, with GLib 2.14.6, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.5,
with ADNS, with Lua 5.1, with GnuTLS 1.6.1, with Gcrypt 1.2.3, with MIT
Kerberos, with PortAudio V19-devel, with AirPcap.

Running on Windows XP Service Pack 2, build 2600, with WinPcap version 4.0.2
(packet.dll version 4.0.0.1040), based on libpcap version 0.9.5, without
AirPcap.

Built using Microsoft Visual C++ 8.0 build 50727

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

Check the man page and http://www.wireshark.org for more information.


Wireshark –v
wireshark 1.0.0

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 GTK+ 2.12.8, with GLib 2.14.6, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.5,
with ADNS, with Lua 5.1, with GnuTLS 1.6.1, with Gcrypt 1.2.3, with MIT
Kerberos, with PortAudio V19-devel, with AirPcap.

Running on Windows XP Service Pack 2, build 2600, with WinPcap version 4.0.2
(packet.dll version 4.0.0.1040), based on libpcap version 0.9.5, without
AirPcap.

Built using Microsoft Visual C++ 8.0 build 50727


tshark.exe -v
TShark 1.0.0

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.14.6, with WinPcap (version unknown), with libz 1.2.3,
without POSIX capabilities, with libpcre 7.0, with SMI 0.4.5, with ADNS, with
Lua 5.1, with GnuTLS 1.6.1, with Gcrypt 1.2.3, with MIT Kerberos.

Running on Windows XP Service Pack 2, build 2600, with WinPcap version 4.0.2
(packet.dll version 4.0.0.1040), based on libpcap version 0.9.5.

Built using Microsoft Visual C++ 8.0 build 50727


--
Hi,

When I try to decode the SBC_REQ and SBC_RSP messages on wireshark GUI, its
getting crashed. From my debugging, it is pointing to epan/proto.c:

static void
  fill_label_boolean(field_info *fi, gchar *label_str)
  {
   ..
   ..
-> value ? tfstring->true_string : tfstring->false_string);
   ..
   ..
  }

and I found that it is trying to derefernce a NULL pointer, i.e., value is 1
but tfstring->true_string is NULL.

The SBC_REQ message (including the MAC header) is
0040420002c51a02022832030400aeae009301609601189901079a0100a00153a1010fa3025456ab0102ad0106af014119030201221b01011c0103cc012100000000

The SBC_RSP message is
00404c0002e91b0202322819130101020201000301000402ffff05010006010c1b01011c01039601189901079a0100a00153a1010fa3025456ab0102ad0106af0141cc01212c010000000000

Thanks,
Mohan


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