Merge pull request #6282 from JohnSully/hll_corruption

Fix HLL corruption bug
This commit is contained in:
Salvatore Sanfilippo 2019-07-30 10:24:28 +02:00 committed by GitHub
commit cc8125a779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -701,6 +701,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;