liblzma: Don't create an empty Block in lzma_stream_buffer_encode().
commit2ee4edeffc8d9734bf68230df31b20ac6a94c9b5
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 11 Apr 2011 10:59:50 +0000 (11 13:59 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 11 Apr 2011 11:00:55 +0000 (11 14:00 +0300)
tree2fb3e3954c65ada06a6809fcf31e36eaf1ecb1e5
parent73f56fb87d54091d0c4fd22d70e6f042902e3b63
liblzma: Don't create an empty Block in lzma_stream_buffer_encode().

Empty Block was created if the input buffer was empty.
Empty Block wastes a few bytes of space, but more importantly
it triggers a bug in XZ Utils 5.0.1 and older when trying
to decompress such a file. 5.0.1 and older consider such
files to be corrupt. I thought that no encoder creates empty
Blocks when releasing 5.0.2 but I was wrong.
src/liblzma/common/stream_buffer_encoder.c