Update exif.cpp
authorguoxuedong <guoxdme@gmail.com>
Thu, 24 Nov 2016 03:08:11 +0000 (11:08 +0800)
committerGitHub <noreply@github.com>
Thu, 24 Nov 2016 03:08:11 +0000 (11:08 +0800)
commite69253a4fb613ddbc5797c9f4828cd9200f64777
treea09c93726cc13f4d563949ed9ca973dd9e79d37b
parent4fd00c1ae1968115670d631121363f7dbaa71922
Update exif.cpp

 ExifReader::getExif may enter infinite loop with jpeg image which have no EOI.
For example, bytesToSkip may be set to 0 and fseek seems like fseek(f, -2 , SEEK_CUR) for image that end with RST7(FF D7) instead of EOI.
modules/imgcodecs/src/exif.cpp