Make sure to read the entire entry contents
Even if decompressor ends early. Maybe this should be an error?
This commit is contained in:
parent
e006ecd336
commit
c4d405c086
@ -53,7 +53,7 @@ unZip = next where
|
||||
FileHeader{..} -> do
|
||||
C.yield $ Left fileEntry
|
||||
C.mapOutput Right $ pass (fromIntegral fileCSize)
|
||||
C..| fileDecompress
|
||||
C..| (fileDecompress >> CL.sinkNull)
|
||||
C..| checkCRC fileCRC
|
||||
next
|
||||
EndOfCentralDirectory{..} -> do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user