xiaoyin0208 / lz4

Automatically exported from code.google.com/p/lz4
0 stars 0 forks source link

uncompress_unknownOutputSize fails to uncompress long random streams compressed with compressHC #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am doing some tests with lz4 trunk and I am having trouble with 
uncompress_unknownOutputSize and compressHC. More specifically, I am testing it 
on random char streams (same likelyhood for every char in the [0, 256[ range), 
then compress with compressHC and uncompress_unknownOutputSize always returns 
an uncompressed size of 4096 when the size of the original stream size is ~4200 
or more.

On the other hand, it works perfectly fine:
 - when the original size of the stream is < 4000,
 - when I decompress with uncompress, whatever the original stream size is,
 - with a non-random stream, whatever the original stream size is.

Original issue reported on code.google.com by jpou...@gmail.com on 18 Jul 2012 at 4:28

GoogleCodeExporter commented 8 years ago
Oh sorry, I was too quick to report the issue, the problem is in my code. 
Please excuse me for the inconvenience.

Original comment by jpou...@gmail.com on 18 Jul 2012 at 5:08

GoogleCodeExporter commented 8 years ago
no pb, you're welcomed ;)

Original comment by yann.col...@gmail.com on 18 Jul 2012 at 6:29