mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 03:46:10 +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);
|
AEndHdr := SwapECD(AEndHdr);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if (AEndHdr.Signature = END_OF_CENTRAL_DIR_SIGNATURE) and
|
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
|
begin
|
||||||
AEndHdrPos := FZipStream.Size - BufSize + I;
|
AEndHdrPos := FZipStream.Size - BufSize + I;
|
||||||
FZipStream.Seek(AEndHdrPos + SizeOf(AEndHdr), soBeginning);
|
FZipStream.Seek(AEndHdrPos + SizeOf(AEndHdr), soBeginning);
|
||||||
|
Loading…
Reference in New Issue
Block a user