Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0027410Community[OCCT] OCCT:Data Exchangepublic2016-04-21 14:252016-06-15 15:47
Assigned Toika 
PlatformWindowsOSVC++ 2015OS Version32 bit
Product Version[OCCT] 6.9.0 
Target VersionFixed in Version 
Summary0027410: Possible resource leak when parsing an invalid IGES file
DescriptionIf 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 ReproduceAttempt 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.
TagsNo tags attached.
Test case number
Attached Filesdiff file icon occ-iges-file-leak-patch.diff (742 bytes) 2016-04-21 14:25

- Relationships

-  Notes
Timo (developer)
2016-04-22 13:58

I also observed this behaviour in 6.9.0.

- Issue History
Date Modified Username Field Change
2016-04-21 14:25 FredK New Issue
2016-04-21 14:25 FredK Assigned To => gka
2016-04-21 14:25 FredK File Added: occ-iges-file-leak-patch.diff
2016-04-22 13:58 Timo Note Added: 0053501
2016-06-15 15:47 abv Assigned To gka => ika
2016-06-15 15:47 abv Status new => assigned

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker