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

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 {
                    input.close();
                } catch (Throwable ignore) {
                    // Errors on close are ignored
                }
                analyzer.reset();
            }

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

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

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    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.16-046d.
    Corresponding source code