Merge pull request #6166 from mshabunin:fix-exif-fds-leak

This commit is contained in:
Alexander Alekhin 2016-02-25 11:11:28 +00:00
commit 171541777e

View File

@ -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 );