mirror of https://github.com/valkey-io/valkey
Fix HLL corruption bug
This commit is contained in:
parent
18572a921a
commit
dce11e658c
|
|
@ -698,6 +698,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
|
|||
first += span;
|
||||
}
|
||||
if (span == 0) return -1; /* Invalid format. */
|
||||
if (span >= end) return -1; /* Invalid format. */
|
||||
|
||||
next = HLL_SPARSE_IS_XZERO(p) ? p+2 : p+1;
|
||||
if (next >= end) next = NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue