* loosened check that caused problems if zip had a few bytes appended.

git-svn-id: trunk@43086 -
This commit is contained in:
marco 2019-09-28 21:16:20 +00:00
parent ed7ea98eb4
commit 0a379def88

View File

@ -2312,7 +2312,7 @@ var
AEndHdr := SwapECD(AEndHdr);
{$ENDIF}
if (AEndHdr.Signature = END_OF_CENTRAL_DIR_SIGNATURE) and
(I + SizeOf(AEndHdr) + AEndHdr.ZipFile_Comment_Length = BufSize) then
(I + SizeOf(AEndHdr) + AEndHdr.ZipFile_Comment_Length <= BufSize) then
begin
AEndHdrPos := FZipStream.Size - BufSize + I;
FZipStream.Seek(AEndHdrPos + SizeOf(AEndHdr), soBeginning);