Unverified Commit 6a3c4ac5 authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

zset full dump sanitization bug (dup score instead of field) (#8167)

parent 48efc25f
...@@ -1612,7 +1612,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) { ...@@ -1612,7 +1612,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) {
} *data = userdata; } *data = userdata;
/* Even records are field names, add to dict and check that's not a dup */ /* Even records are field names, add to dict and check that's not a dup */
if (((data->count) & 1) == 1) { if (((data->count) & 1) == 0) {
unsigned char *str; unsigned char *str;
unsigned int slen; unsigned int slen;
long long vll; long long vll;
......
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