fix eof error

pull/67/head
vinhphuctadang 2021-11-14 07:32:50 +07:00
parent 2ed40b60c9
commit 57164b7229
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
vendor

View File

@ -117,10 +117,9 @@ func GetAllExifData(imageData []byte, so *ScanOptions, maxBlock int) (exifTags [
// help find next EXIF without searching from start
imageData = exifData[ExifSignatureLength:]
entries, _, err := GetFlatExifData(exifData, so)
entries, _, err := GetFlatExifDataUniversalSearch(exifData, so, true)
if err != nil {
fmt.Println("ERROR:", err, errors.Is(err, io.EOF))
if err == io.EOF || err == io.ErrUnexpectedEOF {
if log.Is(err, io.EOF) || log.Is(err, io.ErrUnexpectedEOF) {
continue
}
log.PanicIf(err)