summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2021-10-04 13:35:10 -0700
committermichael-grunder <michael.grunder@gmail.com>2021-10-04 13:35:10 -0700
commita39824a5dfc844ba04a64bf3c90d9d49f64ae3f7 (patch)
tree22f9163d161cf9850160058b86ab8fee8c8971a2 /hiredis.c
parent9eca1f36f4884f5fae8553aef3a0033c13700096 (diff)
parent8d1bfac4640fe90cd6f800d09b7f53e886569b98 (diff)
Merge branch 'release/v1.0.1'
Merge the v1.0.1 release branch and bump the dev version to 1.0.2-dev
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hiredis.c b/hiredis.c
index 7e7af82..15de4ad 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -178,6 +178,7 @@ static void *createArrayObject(const redisReadTask *task, size_t elements) {
return NULL;
if (elements > 0) {
+ if (SIZE_MAX / sizeof(redisReply*) < elements) return NULL; /* Don't overflow */
r->element = hi_calloc(elements,sizeof(redisReply*));
if (r->element == NULL) {
freeReplyObject(r);