bugMibble MIB Parser - Bugs: bug #16681, ASCII control characters are not...

 
 

bug #16681: ASCII control characters are not ignored

Submitter:  Per Cederberg <cederberg>
Submitted:  Sun 28 May 2006 02:11:43 PM UTC
   
 
Severity:  2 - Normal 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

Sun 28 May 2006 09:07:25 PM UTC, comment #2: 

Version 2.7 has now been released. Closing this bug.

Per Cederberg <cederberg>
Group administrator
Sun 28 May 2006 02:36:15 PM UTC, comment #1: 

This has now been fixed in the ASN.1 grammar. The parser will now ignore the following additional ASCII control characters (treating them as whitespace):

0x0b
0x0c
0x17
0x18
0x19
0x1a

See http://www.cs.tut ... ela/chars/c0.html for more information.

This fix will be released in version 2.7.

Per Cederberg <cederberg>
Group administrator
Sun 28 May 2006 02:11:43 PM UTC, original submission:  

The Mibble MIB parser ignores spaces, tabs and newline characters. But various other ASCII control characters cause parsing (rather tokenizing) errors. These are not so frequently occurring inside MIB files, but could on the other hand easily be ignored by the parser (adding them to the generic whitespace token).

This issue was reported by Gary Pientka:



I am loading a couple MIB files that happen to have a stray character after 'END'. This stray character (ASCII 26) causes the MIB not to load. Obviously the easiest solution is to remove this character from the files. Other SNMP APIs and MIB browser we use around here do not have any issue with this stray character. Is there an easy fix or workaround for this besides editing the MIB file?

Per Cederberg <cederberg>
Group administrator

 

Attached Files

This item currently has no attached files.

(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 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-05-28 cederberg Open/ClosedOpen Closed
2006-05-28 cederberg StatusNone Fixed
2006-05-28 cederberg Carbon-Copy- Added -email is unavailable-

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code