azyx3 / lz4

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

Invalid checksum with different MIMMATCH value #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In lz4 v117, edit lz4.c, change MINMATCH to other value, i.e., 6
2. Re-compile and run ./lz4 -b xxx
3. error: !!! WARNING !!! ../../lz4-r117/programs/ERR005143.sam.32M : Invalid 
Checksum : 2ec15be4 != e4733c08

What is the expected output? What do you see instead?
Should not have error checksum

What version of the product are you using? On what operating system?
lz4 v117

Please provide any additional information below.
N.A.

Original issue reported on code.google.com by Haixiang...@gmail.com on 12 Jun 2014 at 7:18

GoogleCodeExporter commented 9 years ago
The way MINMATCH works today does not allow to change it without affecting 
compatibility. 
It is very likely that the decompressed version was corrupted, and consequently 
triggered a checksum error, which is therefore a valid error message.

You can check this hypothesis by compressing / decompressing a file, and 
comparing the result with original.

Original comment by yann.col...@gmail.com on 12 Jun 2014 at 7:39

GoogleCodeExporter commented 9 years ago
Thanks. I was using in memory benchmark -b command. That error shows me failed 
in the in memory benchmark. I tried MINMATCH with value 4 which works perfect, 
but not for other values.

Original comment by Haixiang...@gmail.com on 12 Jun 2014 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by yann.col...@gmail.com on 12 Jun 2014 at 8:56