mirror of
https://github.com/facebook/zstd.git
synced 2025-12-01 23:57:51 +03:00
fixed asan warning
This commit is contained in:
@@ -1034,6 +1034,7 @@ static U32 ZSTD_insertBt1(ZSTD_CCtx* zc, const BYTE* const ip, const U32 mls, co
|
|||||||
const U32 windowLow = zc->lowLimit;
|
const U32 windowLow = zc->lowLimit;
|
||||||
|
|
||||||
if ( (current-matchIndex == 1) /* RLE */
|
if ( (current-matchIndex == 1) /* RLE */
|
||||||
|
&& (matchIndex > windowLow)
|
||||||
&& (MEM_read64(match) == MEM_read64(ip)) )
|
&& (MEM_read64(match) == MEM_read64(ip)) )
|
||||||
{
|
{
|
||||||
size_t rleLength = ZSTD_count(ip+8, match+8, iend) + 8;
|
size_t rleLength = ZSTD_count(ip+8, match+8, iend) + 8;
|
||||||
|
|||||||
Reference in New Issue
Block a user