Wireshark-bugs: [Wireshark-bugs] [Bug 2277] New: Null pointer in packet-snmp.c

Date: Mon, 18 Feb 2008 20:59:08 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2277

           Summary: Null pointer in packet-snmp.c
           Product: Wireshark
           Version: 0.99.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: packetsteve@xxxxxxxxxxx


Build Information:
Build on solaris.
--


        } else {
                repr  = ep_strdup_printf("%s", oid_string); /*Line 893*/
        }

In packet-snmp.c (derived from template), its possible to get to the above
statement with oid_string being NULL.   The subsequent deferencing of NULL
crashes wireshark/tshark.


No bug fix suggested.  Checking for null oid_string is simple, but what should
repr contain?


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