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

pull/5560/merge
Alexander Alekhin 9 years ago
commit 171541777e
  1. 1
      modules/imgcodecs/src/jpeg_exif.cpp

@ -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…
Cancel
Save