View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0027410 | Community | [OCCT] OCCT:Data Exchange | public | 2016-04-21 14:25 | 2016-06-15 15:47 |
|
Reporter | FredK | |
Assigned To | ika | |
Priority | normal | Severity | minor | |
Status | assigned | Resolution | open | |
Platform | Windows | OS | VC++ 2015 | OS Version | 32 bit |
Product Version | [OCCT] 6.9.0 | |
Target Version | | Fixed in Version | | |
|
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 | |
|
Attached Files | occ-iges-file-leak-patch.diff (742 bytes) 2016-04-21 14:25 |
|