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

 
 

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

Submitted by:  None
Submitted on:  Mon 06 Jun 2005 05:32:14 AM UTC  
 
Severity: 5 - MajorItem Group: Software
Status: FixedPrivacy: Public
Assigned to: Per Cederberg <cederberg>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 12 Jan 2006 12:07:55 AM UTCcederbergOpen/ClosedOpen=>Closed
Mon 06 Jun 2005 10:21:55 AM UTCcederbergCarbon-Copy-=>Added -unavailable-
Mon 06 Jun 2005 10:21:54 AM UTCcederbergStatusNone=>Fixed
  Assigned toNone=>cederberg
Mon 06 Jun 2005 05:32:14 AM UTCNoneAttached File-=>Added mibs.zip, #2577

Back to the top


Powered by Savane 3.1-cleanup1