bugMibble MIB Parser - Bugs: bug #13309, OIDs with different names causes...

 
 

bug #13309: OIDs with different names causes null pointer exception

Submitter:  None
Submitted:  Mon 06 Jun 2005 05:32:14 AM UTC
   
 
Severity:  5 - Major Item Group:  Software
Status:  Fixed Privacy:  Public
Assigned to:  cederberg Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 Jan 2006 12:07:55 AM UTC, comment #2: 

Mibble 2.6 was release on 2005-12-10 containing this fix.

Per Cederberg <cederberg>
Group administrator
Mon 06 Jun 2005 10:21:54 AM UTC, comment #1: 

This was caused by the ObjectIdentifierValue.initialize() method throwing a validation exception for the 'test1Inc' symbol, thereby leaving the OID value uninitialized. Upon checking the value in other initialize() calls (for subsequent symbols) this lead to a null value being returned and erroneously used.

The fix for this was twofold. First, all the type and value initialization code has been fixed to properly handle null return values from previous initializations (i.e. typically a result of validation errors). Secondly, the ObjectIdentifierValue validation was changed to only report a warning on mismatching component names. Also the error message was improved to report the component name mismatch in a clearer form.

This has been fixed as of version 2.6.alpha3.

Per Cederberg <cederberg>
Group administrator
Mon 06 Jun 2005 05:32:14 AM UTC, original submission:  

In the attached mib files the country field in the mib OID is inadvertantly renamed from gb(826) in test1 to gp(826) in test-inc.
 
Although in most cases Mibble correctly catches this, in this case it throws a Null Pointer Exception (apparently when trying to process the next line ("dcTeMibEntityObjects OBJECT IDENTIFIER ::= { test1 1 } -- tables")





Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #3043:  mibs.zip added by None (2KiB - application/zip - Sample mib files to cause problem)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-12 cederberg Open/ClosedOpen Closed
2005-06-06 cederberg Carbon-Copy- Added -email is unavailable-
2005-06-06 cederberg StatusNone Fixed
    Assigned toNone cederberg
2005-06-06 None Attached File- Added mibs.zip, #2577

Back to the top

Powered by Savane 3.14-f13d.
Corresponding source code