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

 
 

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

Submitted by:  Per Cederberg <cederberg>
Submitted on:  Sat 04 Apr 2009 09:13:23 AM UTC  
 
Severity:  2 - Normal 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.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

(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

 

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

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