|
|
Reporter | FredK | Assigned To | | |
---|
Priority | normal | Severity | minor | |
---|
Status | assigned | Resolution | open | |
---|
Platform | Windows | OS | VC++ 2015 | |
---|
Product Version | 6.9.0 | |
---|
|
|
Summary | 0027410: Possible resource leak when parsing an invalid IGES file |
---|
Description | If an invalid (i.e. non-IGIS) file is being processed by igesread(), it may not close the input FILE* (lefic). This occurs when the initial call to igres_lire() returns -1; in this case, i0 remains 0 and 'if (i0 == 0) return -1;' will be executed without ever closing lefic. |
---|
Steps To Reproduce | Attempt to load a non-IGES file (for example, some .cpp file) - it will correctly be rejected but the file will remain opened for the duration of the application. |
---|
Additional information and documentation updates | Patch attached to fix the problem. |
---|
Tags | No tags attached. |
---|
|
|
Test case number | |
---|
|
|