mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix integer overflow in zunionInterGenericCommand().
This fixes issue #761.
This commit is contained in:
parent
65606b3bc6
commit
cceb0c5b4a
@ -1497,7 +1497,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
|
||||
}
|
||||
|
||||
/* test if the expected number of keys would overflow */
|
||||
if (3+setnum > c->argc) {
|
||||
if (setnum > c->argc-3) {
|
||||
addReply(c,shared.syntaxerr);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user