lz4-java icon indicating copy to clipboard operation
lz4-java copied to clipboard

Fix the implementation of StreamingXXHash32.asChecksum()

Open trazfr opened this issue 4 years ago • 0 comments
trafficstars

In the Checksum view, we only keep the last 28 bits of the hash instead of the 32 bits of the full hash.

The result is that the 4 first bits are always set to 0 in LZ4Block*Stream. This PR:

  • fixes the Checksum view in StreamingXXHash32
  • keeps the current behaviour in LZ4Block*Stream to avoid breaking existing data built with this library

trazfr avatar Aug 25 '21 18:08 trazfr