Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix integer overflow in zunionInterGenericCommand().

This fixes issue #761.
  • Loading branch information...
commit cceb0c5b4a24d9027abfc47924d5f93af87034b4 1 parent 65606b3
@antirez authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.