summaryrefslogtreecommitdiffstats
path: root/xxhash.c
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2013-08-07 17:14:03 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2013-08-07 17:14:03 (GMT)
commitdd06f543868771c0524783e06273edc0da3539ff (patch)
tree8657d73a717261121322f8a1e30b710f8c2a53b3 /xxhash.c
parent13e966d9686de41c428e4e83e87e9255016cd9a6 (diff)
downloadlz4-dd06f543868771c0524783e06273edc0da3539ff.zip
lz4-dd06f543868771c0524783e06273edc0da3539ff.tar.gz
lz4-dd06f543868771c0524783e06273edc0da3539ff.tar.bz2
Bugfix release
Corrected a bug into the compact XXH32() function, which affects Block Checksum results. Update is recommended if you use Block Checksum with lz4c. (Note : block checksum is disabled by default). Thanks Adrien Grand for detailed bug tracking and fixing. Corrected a bug affected Heapmode version of LZ4_compress() (Note : heapmode is disabled by default) git-svn-id: https://lz4.googlecode.com/svn/trunk@100 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'xxhash.c')
-rw-r--r--xxhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xxhash.c b/xxhash.c
index 914421f..bb5c87d 100644
--- a/xxhash.c
+++ b/xxhash.c
@@ -215,7 +215,7 @@ forceinline U32 XXH32_endian_align(const void* input, int len, U32 seed, XXH_end
if (len>=16)
{
- const BYTE* const limit = bEnd - 32;
+ const BYTE* const limit = bEnd - 16;
U32 v1 = seed + PRIME32_1 + PRIME32_2;
U32 v2 = seed + PRIME32_2;
U32 v3 = seed + 0;