mirror of
https://github.com/fluencelabs/redis
synced 2025-06-18 11:41:20 +00:00
Check if stroll return value was clamped
This commit is contained in:
@ -375,6 +375,7 @@ int getLongLongFromObject(robj *o, long long *target) {
|
||||
redisAssert(o->type == REDIS_STRING);
|
||||
if (o->encoding == REDIS_ENCODING_RAW) {
|
||||
value = strtoll(o->ptr, &eptr, 10);
|
||||
if (errno == ERANGE) return REDIS_ERR;
|
||||
if (eptr[0] != '\0') return REDIS_ERR;
|
||||
} else if (o->encoding == REDIS_ENCODING_INT) {
|
||||
value = (long)o->ptr;
|
||||
|
Reference in New Issue
Block a user