mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 09:41:21 +00:00
Fix integer overflow in zunionInterGenericCommand().
This fixes issue #761.
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user