bugMibble MIB Parser - Bugs: bug #26082, Input file streams are not closed...


bug #26082: Input file streams are not closed on parse exceptions

Submitter:  Per Cederberg <cederberg>
Submitted:  Sat 04 Apr 2009 09:13:23 AM 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

Sat 04 Apr 2009 09:40:45 AM UTC, comment #1: 

Fixed and released in version 2.9.1. Commercial customers also have access to version 2.8.1 containing the same fix.

Per Cederberg <cederberg>
Group administrator
Sat 04 Apr 2009 09:13:23 AM UTC, original submission:  

When parsing MIB files, the input file streams are not closed properly when a parse exception is encountered.

It is trivial to fix by adding a finally clause to the MibLoader though.

In MibLoader.MibSource.parseMib:

            } finally {
                try {
                } catch (Throwable ignore) {
                    // Errors on close are ignored

Per Cederberg <cederberg>
Group administrator


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cederberg (Submitted the item)

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-04 cederberg StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code