Browse files

Fix integer overflow in zunionInterGenericCommand().

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

Please sign in to comment.