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++;
|
s = *ip++;
|
||||||
length += s;
|
length += s;
|
||||||
} while (unlikely(s == 255));
|
} while (ip < input_end && unlikely(s == 255));
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Get literal length.
|
/// Get literal length.
|
||||||
|
|
||||||
|
if (unlikely(ip >= input_end))
|
||||||
|
return false;
|
||||||
|
|
||||||
const unsigned token = *ip++;
|
const unsigned token = *ip++;
|
||||||
length = token >> 4;
|
length = token >> 4;
|
||||||
if (length == 0x0F)
|
if (length == 0x0F)
|
||||||
@ -475,7 +478,7 @@ bool NO_INLINE decompressImpl(
|
|||||||
ip += length;
|
ip += length;
|
||||||
op = copy_end;
|
op = copy_end;
|
||||||
|
|
||||||
if (unlikely(ip > input_end))
|
if (unlikely(ip + 1 >= input_end))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/// Get match offset.
|
/// Get match offset.
|
||||||
|
Loading…
Reference in New Issue
Block a user