cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit f09bdef15ee6f3dc8bcdb3d16eb02b43a9cf813e
parent 7119a16b5fded352bbed99d5b8829dbc830d475a
Author: Max Bruckner <max@maxbruckner.de>
Date:   Tue,  7 Feb 2017 21:22:40 +0100

Revert "test.c: Fix buffer overrun found by coverity"

This reverts commit c866abd84259acacf79524921a0ca6634fd71ddd.

The length of this buffer was intentional. This looks like a false
positive.

Diffstat:
Mtest.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test.c b/test.c @@ -114,7 +114,7 @@ static int print_preallocated(cJSON *root) } /* create buffer to fail */ - len_fail = strlen(out) + sizeof('\0'); + len_fail = strlen(out); buf_fail = (char*)malloc(len_fail); if (buf_fail == NULL) {