File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -624,8 +624,9 @@ decompressStream format (DecompressParams bits initChunkSize mdict) =
624
624
else do fillBuffers defaultDecompressBufferSize
625
625
626
626
Stream. StreamEnd -> do
627
- -- The decompressor tells us we're done, but that doesn't mean we have
628
- -- consumed all the input, so we return any trailing data.
627
+ -- The decompressor tells us we're done.
628
+ -- Note that there may be input bytes still available if the stream is
629
+ -- embeded in some other data stream, so we return any trailing data.
629
630
inputBufferEmpty <- Stream. inputBufferEmpty
630
631
if inputBufferEmpty
631
632
then do finish (DecompressStreamEnd S. empty)
@@ -646,9 +647,6 @@ decompressStream format (DecompressParams bits initChunkSize mdict) =
646
647
-- Note even if we end with an error we still try to flush the last chunk if
647
648
-- there is one. The user just has to decide what they want to trust.
648
649
finish end = do
649
- -- Note that there may be input bytes still available if the stream
650
- -- is embeded in some other data stream. Here we just silently discard
651
- -- any trailing data.
652
650
outputBufferBytesAvailable <- Stream. outputBufferBytesAvailable
653
651
if outputBufferBytesAvailable > 0
654
652
then do (outFPtr, offset, length ) <- Stream. popOutputBuffer
You can’t perform that action at this time.
0 commit comments