mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Plugs a potential underflow
This commit is contained in:
parent
acb3b55280
commit
edeaf85cab
@ -1921,6 +1921,7 @@ void xpendingCommand(client *c) {
|
|||||||
if (c->argc >= 6) {
|
if (c->argc >= 6) {
|
||||||
if (getLongLongFromObjectOrReply(c,c->argv[5],&count,NULL) == C_ERR)
|
if (getLongLongFromObjectOrReply(c,c->argv[5],&count,NULL) == C_ERR)
|
||||||
return;
|
return;
|
||||||
|
if (count < 0) count = 0;
|
||||||
if (streamParseIDOrReply(c,c->argv[3],&startid,0) == C_ERR)
|
if (streamParseIDOrReply(c,c->argv[3],&startid,0) == C_ERR)
|
||||||
return;
|
return;
|
||||||
if (streamParseIDOrReply(c,c->argv[4],&endid,UINT64_MAX) == C_ERR)
|
if (streamParseIDOrReply(c,c->argv[4],&endid,UINT64_MAX) == C_ERR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user