Merging upstream version 0.9.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
02aa1afa91
commit
88c15894f0
15 changed files with 230 additions and 159 deletions
2
lzlib.cc
2
lzlib.cc
|
@ -391,7 +391,7 @@ int LZ_decompress_read( struct LZ_Decoder * const decoder,
|
|||
}
|
||||
if( !d.lz_decoder )
|
||||
{
|
||||
if( d.ibuf->used_bytes() < 5 + (int)sizeof( File_header ) )
|
||||
if( d.ibuf->used_bytes() < 5 + (int)sizeof (File_header) )
|
||||
{
|
||||
if( !d.ibuf->at_stream_end() || d.ibuf->finished() ) return 0;
|
||||
d.ibuf->purge(); // remove trailing garbage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue