Merge pull request #6166 from mshabunin:fix-exif-fds-leak
This commit is contained in:
commit
171541777e
@ -170,6 +170,7 @@ std::map<int, ExifEntry_t > ExifReader::getExif()
|
||||
case APP1: //actual Exif Marker
|
||||
exifSize = getFieldSize(f);
|
||||
if (exifSize <= offsetToTiffHeader) {
|
||||
fclose(f);
|
||||
throw ExifParsingError();
|
||||
}
|
||||
m_data.resize( exifSize - offsetToTiffHeader );
|
||||
|
Loading…
x
Reference in New Issue
Block a user