Commit dce11e65 authored by John Sully's avatar John Sully Committed by antirez
Browse files

Fix HLL corruption bug

parent 18572a92
...@@ -698,6 +698,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) { ...@@ -698,6 +698,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
first += span; first += span;
} }
if (span == 0) return -1; /* Invalid format. */ if (span == 0) return -1; /* Invalid format. */
if (span >= end) return -1; /* Invalid format. */
next = HLL_SPARSE_IS_XZERO(p) ? p+2 : p+1; next = HLL_SPARSE_IS_XZERO(p) ? p+2 : p+1;
if (next >= end) next = NULL; if (next >= end) next = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment