RT hangs or crashes after trying to open a corrupted file, Issue 2467

This commit is contained in:
Ingo
2014-09-10 14:30:39 +02:00
parent 7f09a19446
commit 7d16d8e422
3 changed files with 6 additions and 6 deletions

View File

@@ -350,14 +350,14 @@ int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistene
meta_data = (char *) (image + height*width);
if(!image)
return 200;
/* Issue 2467
if (setjmp (failure)) {
if (image) { free (image); image=NULL; }
if (raw_image) { free(raw_image); raw_image=NULL; }
fclose(ifp); ifp=NULL;
return 100;
}
*/
// Load raw pixels data
fseek (ifp, data_offset, SEEK_SET);
(this->*load_raw)();