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 Item Group:  Software
Status:  Fixed Privacy:  Public
Assigned to:  cederberg Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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.fi/~jkorpela/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

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 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.13-02a9.
Corresponding source code