Add tolerance for seeking EOF marker between read data buffers

This commit is contained in:
Adrian-George Bostan 2020-01-22 20:56:03 +02:00
parent 843a48ed7b
commit d521de9643

View File

@ -1162,7 +1162,7 @@ func (parser *PdfParser) seekToEOFMarker(fSize int64) error {
}
common.Log.Debug("Warning: EOF marker not found! - continue seeking")
offset += buflen
offset += buflen - 4
}
common.Log.Debug("Error: EOF marker was not found.")