Task #109627 - added.err
back to task #109627download
Error: GCC_ANALYZER_WARNING (CWE-476):
crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:399:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '*ptr.intarrays + i * 8'
crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: scope_hint: In function 'free_basic_test_double_array'
crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: scope_hint: In function 'free_basic_test_double_array'
crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: scope_hint: In function 'free_basic_test_double_array'
crun-HEAD/libocispec/src/ocispec/json_common.h:41:7: note: in definition of macro 'define_cleaner_function'
crun-HEAD/libocispec/src/ocispec/json_common.h:41:7: note: in definition of macro 'define_cleaner_function'
crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: scope_hint: In function 'free_basic_test_double_array'
# 397| for (i = 0; i < ptr->intarrays_len; i++)
# 398| {
# 399|-> free (ptr->intarrays[i]);
# 400| ptr->intarrays[i] = NULL;
# 401| }
Error: CPPCHECK_WARNING (CWE-401):
crun-HEAD/libocispec/src/ocispec/basic_test_map_string_string_array.c:185: error[memleak]: Memory leak: ret
# 183| ret->maps = calloc (src->maps_len + 1, sizeof (*ret->maps));
# 184| if (ret->maps == NULL)
# 185|-> return NULL;
# 186| for (size_t i = 0; i < src->maps_len; i++)
# 187| {
Error: CPPCHECK_WARNING (CWE-401):
crun-HEAD/libocispec/src/ocispec/image_spec_schema_defs.c:181: error[memleak]: Memory leak: ret
# 179| ret->keys = calloc (src->len + 1, sizeof (*ret->keys));
# 180| if (ret->keys == NULL)
# 181|-> return NULL;
# 182| for (i = 0; i < src->len; i++)
# 183| {
Error: GCC_ANALYZER_WARNING (CWE-457):
crun-HEAD/src/libcrun/error.c: scope_hint: In function 'make_json_error'
crun-HEAD/src/libcrun/error.c:413:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'level'
# 411|
# 412| json_gen_string (gen, "level", strlen ("level"));
# 413|-> json_gen_string (gen, level, strlen (level));
# 414|
# 415| json_gen_string (gen, "time", strlen ("time"));