Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6a3c4ac5
Unverified
Commit
6a3c4ac5
authored
Dec 09, 2020
by
Oran Agra
Committed by
GitHub
Dec 09, 2020
Browse files
zset full dump sanitization bug (dup score instead of field) (#8167)
parent
48efc25f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
6a3c4ac5
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment