Wireshark-bugs: [Wireshark-bugs] [Bug 2351] New: SNMP MIB parse error

Date: Wed, 12 Mar 2008 13:55:31 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2351

           Summary: SNMP MIB parse error
           Product: Wireshark
           Version: 0.99.8
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: leon728@xxxxxxxxx


Build Information:
Version 0.99.6a (SVN Rev 22276)

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.10.12, with GLib 2.12.12, with WinPcap (version unknown),
with libz 1.2.3, with libpcre 6.4, with Net-SNMP 5.4, with ADNS, with Lua 5.1,
with GnuTLS 1.6.1, with Gcrypt 1.2.3, with MIT Kerberos, with PortAudio
PortAudio V19-devel, with AirPcap.

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

Built using Microsoft Visual C++ 6.0 build 8804

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

Check the man page and http://www.wireshark.org for more information.
--
In the MIB file, comments begin with a # (pound sign) or - - (two dashes) and
continue to the end of the line.

I put my MIB file into [Wireshark]\snmp\mibs
Restart Wireshark and let him rebuild [Wireshark]\snmp\mibs\.index
But one of my MIB file are not included in the index file.

I try to remove some lines of that file, trial and error, finally I found the
problem. The following line cause this bug:
-- my comment --- 123

I do more test:
dash count   : 0 1 2 3 4 5 6 7 8 9
parse result : o o x x o o x x o o

dash count:
  how many dashes inside a comment line, ex:
  2 means: -- abcxyz -- aaaaaa
  5 means: -- abcxyz ----- aaaaaa

parse result:
  'o' means parse successfully
  'x' means parse failed


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