bugMibble MIB Parser - Bugs: bug #15027, Hexadecimal_String in enum

 
 

bug #15027: Hexadecimal_String in enum

Submitter:  None
Submitted:  Mon 21 Nov 2005 09:14:29 AM UTC
   
 
Severity:  5 - Major Priority:  5 - Normal
Item Group:  Software Status:  Fixed
Privacy:  Public Assigned to:  cederberg
Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 12 Jan 2006 12:09:04 AM UTC, comment #2: 

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

Per Cederberg <cederberg>
Group administrator
Sun 27 Nov 2005 11:19:47 AM UTC, comment #1: 

Indeed. This is a bug in the grammar that is resolved by redefining the Number production. The fix actually simplified the code too.

This fix will be released in version 2.6.beta3 and later.

Per Cederberg <cederberg>
Group administrator
Mon 21 Nov 2005 09:14:29 AM UTC, original submission:  

(Sorry, this is another try to send this bug, hope it help)

I have a mib with enums in Hexadecimal_String.

When I load this MIB in the MIB-Browser, an error occurs:

unexpected token "'1'H" <HEXADECIMAL_STRING>, expected one of "-",
    <NUMBER_STRING>, or <IDENTIFIER_STRING>

    SYNTAX    INTEGER {xxxV1('1'H),

In book "Understanding SNMP MIB's" D.Perkins
Page 40, 2.7.2 Enumerated Integer Construct I find:
 <enumVal>= binStr | hexStr | [-] number


In asn1.grammar I find:
EnumeratedType = "ENUMERATED" NamedNumberList ;
NamedNumberList = "{" NamedNumber ("," NamedNumber)* "}" ;
NamedNumber = IDENTIFIER_STRING "(" Number ")" ;
Number = ["-"] NUMBER_STRING | DefinedValue ;


Is here the entry missing "| HEXADECIMAL_STRING"?



Anonymous

 

Attached Files

Attached Files
file #2644:  Enum-Test.mib added by None (927B - text/plain - Test MIB with enum in Hexadecimal)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-12 cederberg Open/ClosedOpen Closed
2005-11-27 cederberg StatusNone Fixed
    Assigned toNone cederberg
2005-11-21 None Attached File- Added Enum-Test.mib, #3121

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code