mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
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…
Reference in New Issue
Block a user