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


bug #15027: Hexadecimal_String in enum

Submitted by:  None
Submitted on:  Mon 21 Nov 2005 09:14:29 AM UTC  
Severity:  5 - Major Item Group:  Software
Status:  Fixed Privacy:  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:09:04 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.
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>
Project AdministratorIn charge of this item.
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 "-",

    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"?



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

Attach Files:

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


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 add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




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.5