提交 cceb0c5b 编写于 作者: A antirez

Fix integer overflow in zunionInterGenericCommand().

This fixes issue #761.
上级 65606b3b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册