Fix HLL corruption

Former-commit-id: 47ef9e5cbd11dad107a68a94dfb51d192e86c84e
This commit is contained in:
John Sully 2019-07-29 18:08:45 -04:00
parent 2181eca5de
commit 0df22ef9f6

View File

@ -710,6 +710,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
first += span;
}
if (span == 0) return -1; /* Invalid format. */
if (p >= end) return -1; /* Invalid format. */
next = HLL_SPARSE_IS_XZERO(p) ? p+2 : p+1;
if (next >= end) next = NULL;