mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-27 14:14:07 +08:00
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.
This commit is contained in:
parent
7119a16b5f
commit
f09bdef15e
2
test.c
2
test.c
@ -114,7 +114,7 @@ static int print_preallocated(cJSON *root)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* create buffer to fail */
|
/* create buffer to fail */
|
||||||
len_fail = strlen(out) + sizeof('\0');
|
len_fail = strlen(out);
|
||||||
buf_fail = (char*)malloc(len_fail);
|
buf_fail = (char*)malloc(len_fail);
|
||||||
if (buf_fail == NULL)
|
if (buf_fail == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user