mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 08:49:38 +02:00
* loosened check that caused problems if zip had a few bytes appended.
git-svn-id: trunk@43086 -
This commit is contained in:
parent
ed7ea98eb4
commit
0a379def88
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user