Searched refs:cJSON_ReplaceItemViaPointer (Results 1 – 5 of 5) sorted by relevance
/third_party/cJSON/tests/ |
D | misc_tests.c | 308 TEST_ASSERT_TRUE(cJSON_ReplaceItemViaPointer(array, beginning, &(replacements[0]))); in cjson_replace_item_via_pointer_should_replace_items() 315 TEST_ASSERT_TRUE(cJSON_ReplaceItemViaPointer(array, middle, &(replacements[1]))); in cjson_replace_item_via_pointer_should_replace_items() 321 TEST_ASSERT_TRUE(cJSON_ReplaceItemViaPointer(array, end, &(replacements[2]))); in cjson_replace_item_via_pointer_should_replace_items() 431 TEST_ASSERT_FALSE(cJSON_ReplaceItemViaPointer(NULL, item, item)); in cjson_functions_should_not_crash_with_null_pointers() 432 TEST_ASSERT_FALSE(cJSON_ReplaceItemViaPointer(item, NULL, item)); in cjson_functions_should_not_crash_with_null_pointers() 433 TEST_ASSERT_FALSE(cJSON_ReplaceItemViaPointer(item, item, NULL)); in cjson_functions_should_not_crash_with_null_pointers()
|
/third_party/cJSON/ |
D | cJSON.h | 243 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSO…
|
D | README.md | 255 …nArray` using an index or with `cJSON_ReplaceItemViaPointer` given a pointer to an element. `cJSON… 272 …Sensitive` using a key or with `cJSON_ReplaceItemViaPointer` given a pointer to an element. `cJSON…
|
D | cJSON.c | 2302 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSO… in cJSON_ReplaceItemViaPointer() function 2358 return cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem); in cJSON_ReplaceItemInArray() 2381 …return cJSON_ReplaceItemViaPointer(object, get_object_item(object, string, case_sensitive), replac… in replace_item_in_object()
|
D | CHANGELOG.md | 18 * Fix a null pointer crash in cJSON_ReplaceItemViaPointer, see #726 248 * Added `cJSON_ReplaceItemViaPointer` and `cJSON_DetachItemViaPointer`
|