Permalink
Browse files

Fix integer overflow in zunionInterGenericCommand().

This fixes issue #761.
  • Loading branch information...
1 parent 2b45ef0 commit de00a5a0929da097ecd46612e83b482698419f08 @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 de00a5a

Please sign in to comment.