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
This commit is contained in:
yann.collet.73@gmail.com 2013-08-07 17:14:03 +00:00
parent 13e966d968
commit dd06f54386
2 changed files with 5 additions and 1 deletions

View File

@ -256,3 +256,7 @@ _last_literals:
#ifdef USE_HEAPMEMORY
#undef USE_HEAPMEMORY
#endif
#ifdef COMPRESS_64K
#undef COMPRESS_64K
#endif

View File

@ -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;