Permalink
Browse files

Fix integer overflow in zunionInterGenericCommand().

This fixes issue #761.
  • Loading branch information...
1 parent c08c700 commit b9d750ec0102b027422158e470f73fa370f2fd83 @antirez committed Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/t_zset.c
View
@@ -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;
}

0 comments on commit b9d750e

Please sign in to comment.