Make sure to read the entire entry contents

Even if decompressor ends early.  Maybe this should be an error?
This commit is contained in:
Dylan Simon 2017-05-09 23:24:51 -04:00
parent e006ecd336
commit c4d405c086

View File

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