Task #314 - added.err
back to task #314download
Error: GCC_ANALYZER_WARNING (CWE-476): cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c: scope_hint: In function ‘cJSON_add_array_should_add_array’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c:397:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity_internals.h:656:133: note: in definition of macro ‘UNITY_TEST_ASSERT_EQUAL_INT’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c:397:5: note: in expansion of macro ‘TEST_ASSERT_EQUAL_INT’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity_internals.h:652:102: note: in definition of macro ‘UNITY_TEST_ASSERT’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity.h:125:100: note: in expansion of macro ‘UNITY_TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c:396:5: note: in expansion of macro ‘TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/cJSON.c: scope_hint: In function ‘cJSON_add_array_should_add_array’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity_internals.h:652:102: note: in definition of macro ‘UNITY_TEST_ASSERT’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity.h:125:100: note: in expansion of macro ‘UNITY_TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c:396:5: note: in expansion of macro ‘TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c: scope_hint: In function ‘cJSON_add_array_should_add_array’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity_internals.h:654:98: note: in expansion of macro ‘UNITY_TEST_ASSERT’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity.h:125:100: note: in expansion of macro ‘UNITY_TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c:396:5: note: in expansion of macro ‘TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity_internals.h:652:122: note: in expansion of macro ‘UNITY_TEST_FAIL’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity_internals.h:654:98: note: in expansion of macro ‘UNITY_TEST_ASSERT’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity.h:125:100: note: in expansion of macro ‘UNITY_TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c:396:5: note: in expansion of macro ‘TEST_ASSERT_NOT_NULL’ cjson-1.7.17-build/cJSON-1.7.17/tests/unity/src/unity_internals.h:656:133: note: in definition of macro ‘UNITY_TEST_ASSERT_EQUAL_INT’ cjson-1.7.17-build/cJSON-1.7.17/tests/cjson_add.c:397:5: note: in expansion of macro ‘TEST_ASSERT_EQUAL_INT’ # 395| cJSON_AddArrayToObject(root, "array"); # 396| TEST_ASSERT_NOT_NULL(array = cJSON_GetObjectItemCaseSensitive(root, "array")); # 397|-> TEST_ASSERT_EQUAL_INT(array->type, cJSON_Array); # 398| # 399| cJSON_Delete(root);