Wireshark-bugs: [Wireshark-bugs] [Bug 2790] New: Wireshark receives SIGSEGV if no capture interf

Date: Sat, 9 Aug 2008 13:37:53 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2790

           Summary: Wireshark receives SIGSEGV if no capture interface is
                    selected
           Product: Wireshark
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: avn@xxxxxxxxxxxxxxx



Alexey Neyman <avn@xxxxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #2145|                            |review_for_checkin?
               Flag|                            |


Created an attachment (id=2145)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=2145)
Suggested fix

Build Information:
wireshark 1.0.99 (SVN Rev 25973)

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.9, with GLib 2.16.4, with libpcap 0.9.8, with libz
1.2.3.3, without POSIX capabilities, without libpcre, without SMI, without
c-ares, without ADNS, without Lua, without GnuTLS, without Gcrypt, without
Kerberos, without PortAudio, without AirPcap.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.

Running on Linux 2.6.24-19-generic, with libpcap version 0.9.8.

Built using gcc 4.2.3 (Ubuntu 4.2.3-2ubuntu7).

--
Open the capture options dialog, then click "Start" button without selecting
any interface. Wireshark segfaults while dereferencing NULL pointer in
get_if_name() called from capture_start_cb().

Attached patch fixes it.


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