mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
better
This commit is contained in:
parent
750e35a454
commit
d25d12d7d4
@ -439,11 +439,14 @@ bool NO_INLINE decompressImpl(
|
||||
{
|
||||
s = *ip++;
|
||||
length += s;
|
||||
} while (unlikely(s == 255));
|
||||
} while (ip < input_end && unlikely(s == 255));
|
||||
};
|
||||
|
||||
/// Get literal length.
|
||||
|
||||
if (unlikely(ip >= input_end))
|
||||
return false;
|
||||
|
||||
const unsigned token = *ip++;
|
||||
length = token >> 4;
|
||||
if (length == 0x0F)
|
||||
@ -475,7 +478,7 @@ bool NO_INLINE decompressImpl(
|
||||
ip += length;
|
||||
op = copy_end;
|
||||
|
||||
if (unlikely(ip > input_end))
|
||||
if (unlikely(ip + 1 >= input_end))
|
||||
return false;
|
||||
|
||||
/// Get match offset.
|
||||
|
Loading…
Reference in New Issue
Block a user