Przeglądaj źródła

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

git-svn-id: trunk@43086 -
marco 6 lat temu
rodzic
commit
0a379def88
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/paszlib/src/zipper.pp

+ 1 - 1
packages/paszlib/src/zipper.pp

@@ -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);