diff options
author | michael-grunder <michael.grunder@gmail.com> | 2021-10-04 13:35:10 -0700 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2021-10-04 13:35:10 -0700 |
commit | a39824a5dfc844ba04a64bf3c90d9d49f64ae3f7 (patch) | |
tree | 22f9163d161cf9850160058b86ab8fee8c8971a2 /hiredis.c | |
parent | 9eca1f36f4884f5fae8553aef3a0033c13700096 (diff) | |
parent | 8d1bfac4640fe90cd6f800d09b7f53e886569b98 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |