Unverified Commit 77e4f09e authored by Michael Grunder's avatar Michael Grunder Committed by GitHub
Browse files

Merge pull request #964 from afcidk/fix-createDoubleObject

Fix potential fault at createDoubleObject
parents 9219f7e7 50cdcab4
......@@ -221,6 +221,9 @@ static void *createIntegerObject(const redisReadTask *task, long long value) {
static void *createDoubleObject(const redisReadTask *task, double value, char *str, size_t len) {
redisReply *r, *parent;
if (len == SIZE_MAX) // Prevents hi_malloc(0) if len equals to SIZE_MAX
return NULL;
r = createReplyObject(REDIS_REPLY_DOUBLE);
if (r == NULL)
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment