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
cceb0c5b
Commit
cceb0c5b
authored
Nov 22, 2012
by
antirez
Browse files
Fix integer overflow in zunionInterGenericCommand().
This fixes issue #761.
parent
65606b3b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
cceb0c5b
...
@@ -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