Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
de00a5a0
Commit
de00a5a0
authored
Nov 22, 2012
by
antirez
Browse files
Fix integer overflow in zunionInterGenericCommand().
This fixes issue #761.
parent
2b45ef02
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
de00a5a0
...
@@ -1497,7 +1497,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
...
@@ -1497,7 +1497,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
}
}
/* test if the expected number of keys would overflow */
/* test if the expected number of keys would overflow */
if
(
3
+
setnum
>
c
->
argc
)
{
if
(
setnum
>
c
->
argc
-
3
)
{
addReply
(
c
,
shared
.
syntaxerr
);
addReply
(
c
,
shared
.
syntaxerr
);
return
;
return
;
}
}
...
...
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