Error: CPPCHECK_WARNING (CWE-401): [#def1] crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:110: error[memleak]: Memory leak: ret # 108| ret->second = strdup (src->second); # 109| if (ret->second == NULL) # 110|-> return NULL; # 111| } # 112| return move_ptr (ret); Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] 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:379:47: warning[-Wanalyzer-null-dereference]: dereference of NULL '*ptr.strarrays_item_lens + 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' # 377| { # 378| size_t j; # 379|-> for (j = 0; j < ptr->strarrays_item_lens[i]; j++) # 380| { # 381| free (ptr->strarrays[i][j]); Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] 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): [#def4] crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:663: error[memleak]: Memory leak: ret # 661| ret->strarrays = calloc (src->strarrays_len + 1, sizeof (*ret->strarrays)); # 662| if (ret->strarrays == NULL) # 663|-> return NULL; # 664| for (size_t i = 0; i < src->strarrays_len; i++) # 665| { Error: CPPCHECK_WARNING (CWE-401): [#def5] crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:208: error[memleak]: Memory leak: ret # 206| ret->item1 = strdup (src->item1); # 207| if (ret->item1 == NULL) # 208|-> return NULL; # 209| } # 210| ret->item2 = src->item2; Error: CPPCHECK_WARNING (CWE-401): [#def6] 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): [#def7] crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:30: error[memleak]: Memory leak: ptr # 28| ptr->items = calloc (alen + 1, sizeof (*ptr->items)); # 29| if (ptr->items == NULL) # 30|-> return NULL; # 31| ptr->len = alen; # 32| for (i = 0; i < alen; i++) Error: CPPCHECK_WARNING (CWE-401): [#def8] crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:30: error[memleak]: Memory leak: ptr # 28| ptr->items = calloc (alen + 1, sizeof (*ptr->items)); # 29| if (ptr->items == NULL) # 30|-> return NULL; # 31| ptr->len = alen; # 32| for (i = 0; i < alen; i++) Error: CPPCHECK_WARNING (CWE-401): [#def9] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:30: error[memleak]: Memory leak: ptr # 28| ptr->items = calloc (alen + 1, sizeof (*ptr->items)); # 29| if (ptr->items == NULL) # 30|-> return NULL; # 31| ptr->len = alen; # 32| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); Error: CPPCHECK_WARNING (CWE-401): [#def10] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:34: error[memleak]: Memory leak: ptr # 32| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); # 33| if (ptr->subitem_lens == NULL) # 34|-> return NULL; # 35| for (i = 0; i < alen; i++) # 36| { Error: CPPCHECK_WARNING (CWE-401): [#def11] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:145: error[memleak]: Memory leak: ret # 143| ret->third = strdup (src->third); # 144| if (ret->third == NULL) # 145|-> return NULL; # 146| } # 147| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def12] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171: error[memleak]: Memory leak: ptr # 169| ptr->items = calloc (alen + 1, sizeof (*ptr->items)); # 170| if (ptr->items == NULL) # 171|-> return NULL; # 172| ptr->len = alen; # 173| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); Error: CPPCHECK_WARNING (CWE-401): [#def13] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175: error[memleak]: Memory leak: ptr # 173| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); # 174| if (ptr->subitem_lens == NULL) # 175|-> return NULL; # 176| for (i = 0; i < alen; i++) # 177| { Error: CPPCHECK_WARNING (CWE-401): [#def14] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30: error[memleak]: Memory leak: ptr # 28| ptr->items = calloc (alen + 1, sizeof (*ptr->items)); # 29| if (ptr->items == NULL) # 30|-> return NULL; # 31| ptr->len = alen; # 32| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); Error: CPPCHECK_WARNING (CWE-401): [#def15] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34: error[memleak]: Memory leak: ptr # 32| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); # 33| if (ptr->subitem_lens == NULL) # 34|-> return NULL; # 35| for (i = 0; i < alen; i++) # 36| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def16] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:63:38: warning[-Wanalyzer-null-dereference]: dereference of NULL '*ptr.subitem_lens + i * 8' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' 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_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' # 61| { # 62| size_t j; # 63|-> for (j = 0; j < ptr->subitem_lens[i]; j++) # 64| { # 65| free_basic_test_double_array_item (ptr->items[i][j]); Error: GCC_ANALYZER_WARNING (CWE-476): [#def17] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:65:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '*<unknown> + j * 8' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' /usr/include/yyjson.h: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' /usr/include/yyjson.h: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' /usr/include/yyjson.h: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' 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_top_double_array_refobj.c: scope_hint: In function 'free_basic_test_top_double_array_refobj_container.part.0' # 63| for (j = 0; j < ptr->subitem_lens[i]; j++) # 64| { # 65|-> free_basic_test_double_array_item (ptr->items[i][j]); # 66| ptr->items[i][j] = NULL; # 67| } Error: CPPCHECK_WARNING (CWE-401): [#def18] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:30: error[memleak]: Memory leak: ptr # 28| ptr->items = calloc (alen + 1, sizeof (*ptr->items)); # 29| if (ptr->items == NULL) # 30|-> return NULL; # 31| ptr->len = alen; # 32| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); Error: CPPCHECK_WARNING (CWE-401): [#def19] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:34: error[memleak]: Memory leak: ptr # 32| ptr->subitem_lens = calloc ( alen + 1, sizeof (size_t)); # 33| if (ptr->subitem_lens == NULL) # 34|-> return NULL; # 35| for (i = 0; i < alen; i++) # 36| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def20] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:68:38: warning[-Wanalyzer-null-dereference]: dereference of NULL '*ptr.subitem_lens + i * 8' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' 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_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' # 66| { # 67| size_t j; # 68|-> for (j = 0; j < ptr->subitem_lens[i]; j++) # 69| { # 70| free (ptr->items[i][j]); Error: GCC_ANALYZER_WARNING (CWE-476): [#def21] crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:70:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '*<unknown> + j * 8' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' /usr/include/yyjson.h: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' /usr/include/yyjson.h: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' /usr/include/yyjson.h: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' 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_top_double_array_string.c: scope_hint: In function 'free_basic_test_top_double_array_string_container.part.0' # 68| for (j = 0; j < ptr->subitem_lens[i]; j++) # 69| { # 70|-> free (ptr->items[i][j]); # 71| ptr->items[i][j] = NULL; # 72| } Error: CPPCHECK_WARNING (CWE-401): [#def22] crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:250: error[memleak]: Memory leak: ret # 248| ret->config = strdup (src->config); # 249| if (ret->config == NULL) # 250|-> return NULL; # 251| } # 252| if (src->layers) Error: CPPCHECK_WARNING (CWE-401): [#def23] crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:257: error[memleak]: Memory leak: ret # 255| ret->layers = calloc (src->layers_len + 1, sizeof (*ret->layers)); # 256| if (ret->layers == NULL) # 257|-> return NULL; # 258| for (size_t i = 0; i < src->layers_len; i++) # 259| { Error: CPPCHECK_WARNING (CWE-401): [#def24] crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:314: error[memleak]: Memory leak: ptr # 312| ptr->items = calloc (alen + 1, sizeof (*ptr->items)); # 313| if (ptr->items == NULL) # 314|-> return NULL; # 315| ptr->len = alen; # 316| for (i = 0; i < alen; i++) Error: CPPCHECK_WARNING (CWE-401): [#def25] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:477: error[memleak]: Memory leak: ret # 475| ret->user = strdup (src->user); # 476| if (ret->user == NULL) # 477|-> return NULL; # 478| } # 479| if (src->exposed_ports) Error: CPPCHECK_WARNING (CWE-401): [#def26] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:483: error[memleak]: Memory leak: ret # 481| ret->exposed_ports = calloc (1, sizeof (*ret->exposed_ports)); # 482| if (ret->exposed_ports == NULL) # 483|-> return NULL; # 484| ret->exposed_ports->len = src->exposed_ports->len; # 485| ret->exposed_ports->keys = calloc (src->exposed_ports->len + 1, sizeof (char *)); Error: CPPCHECK_WARNING (CWE-401): [#def27] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:487: error[memleak]: Memory leak: ret # 485| ret->exposed_ports->keys = calloc (src->exposed_ports->len + 1, sizeof (char *)); # 486| if (ret->exposed_ports->keys == NULL) # 487|-> return NULL; # 488| ret->exposed_ports->values = calloc (src->exposed_ports->len + 1, sizeof (*ret->exposed_ports->values)); # 489| if (ret->exposed_ports->values == NULL) Error: CPPCHECK_WARNING (CWE-401): [#def28] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:490: error[memleak]: Memory leak: ret # 488| ret->exposed_ports->values = calloc (src->exposed_ports->len + 1, sizeof (*ret->exposed_ports->values)); # 489| if (ret->exposed_ports->values == NULL) # 490|-> return NULL; # 491| for (size_t i = 0; i < ret->exposed_ports->len; i++) # 492| { Error: CPPCHECK_WARNING (CWE-401): [#def29] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:814: error[memleak]: Memory leak: ret # 812| ret->diff_ids = calloc (src->diff_ids_len + 1, sizeof (*ret->diff_ids)); # 813| if (ret->diff_ids == NULL) # 814|-> return NULL; # 815| for (size_t i = 0; i < src->diff_ids_len; i++) # 816| { Error: CPPCHECK_WARNING (CWE-401): [#def30] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1008: error[memleak]: Memory leak: ret # 1006| ret->created = strdup (src->created); # 1007| if (ret->created == NULL) # 1008|-> return NULL; # 1009| } # 1010| if (src->author != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def31] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1014: error[memleak]: Memory leak: ret # 1012| ret->author = strdup (src->author); # 1013| if (ret->author == NULL) # 1014|-> return NULL; # 1015| } # 1016| if (src->created_by != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def32] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1020: error[memleak]: Memory leak: ret # 1018| ret->created_by = strdup (src->created_by); # 1019| if (ret->created_by == NULL) # 1020|-> return NULL; # 1021| } # 1022| if (src->comment != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def33] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1026: error[memleak]: Memory leak: ret # 1024| ret->comment = strdup (src->comment); # 1025| if (ret->comment == NULL) # 1026|-> return NULL; # 1027| } # 1028| ret->empty_layer = src->empty_layer; Error: CPPCHECK_WARNING (CWE-401): [#def34] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1484: error[memleak]: Memory leak: ret # 1482| ret->created = strdup (src->created); # 1483| if (ret->created == NULL) # 1484|-> return NULL; # 1485| } # 1486| if (src->author != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def35] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1490: error[memleak]: Memory leak: ret # 1488| ret->author = strdup (src->author); # 1489| if (ret->author == NULL) # 1490|-> return NULL; # 1491| } # 1492| if (src->architecture != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def36] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1496: error[memleak]: Memory leak: ret # 1494| ret->architecture = strdup (src->architecture); # 1495| if (ret->architecture == NULL) # 1496|-> return NULL; # 1497| } # 1498| if (src->variant != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def37] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1502: error[memleak]: Memory leak: ret # 1500| ret->variant = strdup (src->variant); # 1501| if (ret->variant == NULL) # 1502|-> return NULL; # 1503| } # 1504| if (src->os != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def38] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1508: error[memleak]: Memory leak: ret # 1506| ret->os = strdup (src->os); # 1507| if (ret->os == NULL) # 1508|-> return NULL; # 1509| } # 1510| if (src->os_version != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def39] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1514: error[memleak]: Memory leak: ret # 1512| ret->os_version = strdup (src->os_version); # 1513| if (ret->os_version == NULL) # 1514|-> return NULL; # 1515| } # 1516| if (src->os_features) Error: CPPCHECK_WARNING (CWE-401): [#def40] crun-HEAD/libocispec/src/ocispec/image_spec_schema_config_schema.c:1521: error[memleak]: Memory leak: ret # 1519| ret->os_features = calloc (src->os_features_len + 1, sizeof (*ret->os_features)); # 1520| if (ret->os_features == NULL) # 1521|-> return NULL; # 1522| for (size_t i = 0; i < src->os_features_len; i++) # 1523| { Error: CPPCHECK_WARNING (CWE-401): [#def41] crun-HEAD/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:369: error[memleak]: Memory leak: ret # 367| ret->media_type = strdup (src->media_type); # 368| if (ret->media_type == NULL) # 369|-> return NULL; # 370| } # 371| ret->size = src->size; Error: CPPCHECK_WARNING (CWE-401): [#def42] crun-HEAD/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:377: error[memleak]: Memory leak: ret # 375| ret->digest = strdup (src->digest); # 376| if (ret->digest == NULL) # 377|-> return NULL; # 378| } # 379| if (src->urls) Error: CPPCHECK_WARNING (CWE-401): [#def43] crun-HEAD/libocispec/src/ocispec/image_spec_schema_content_descriptor.c:384: error[memleak]: Memory leak: ret # 382| ret->urls = calloc (src->urls_len + 1, sizeof (*ret->urls)); # 383| if (ret->urls == NULL) # 384|-> return NULL; # 385| for (size_t i = 0; i < src->urls_len; i++) # 386| { Error: CPPCHECK_WARNING (CWE-401): [#def44] crun-HEAD/libocispec/src/ocispec/image_spec_schema_defs.c:87: error[memleak]: Memory leak: ret # 85| ret->keys = calloc (len + 1, sizeof (*ret->keys)); # 86| if (ret->keys == NULL) # 87|-> return NULL; # 88| ret->values = calloc (len + 1, sizeof (*ret->values)); # 89| if (ret->values == NULL) Error: CPPCHECK_WARNING (CWE-401): [#def45] crun-HEAD/libocispec/src/ocispec/image_spec_schema_defs.c:90: error[memleak]: Memory leak: ret # 88| ret->values = calloc (len + 1, sizeof (*ret->values)); # 89| if (ret->values == NULL) # 90|-> return NULL; # 91| for (i = 0; i < len; i++) # 92| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def46] crun-HEAD/libocispec/src/ocispec/image_spec_schema_defs.c: scope_hint: In function 'free_image_spec_schema_defs_map_string_object' crun-HEAD/libocispec/src/ocispec/image_spec_schema_defs.c:127:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' 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/image_spec_schema_defs.c: scope_hint: In function 'free_image_spec_schema_defs_map_string_object' # 125| ptr->values = NULL; # 126| } # 127|-> free (ptr); # 128| } # 129| json_gen_status Error: CPPCHECK_WARNING (CWE-401): [#def47] 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: CPPCHECK_WARNING (CWE-401): [#def48] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:306: error[memleak]: Memory leak: ret # 304| ret->architecture = strdup (src->architecture); # 305| if (ret->architecture == NULL) # 306|-> return NULL; # 307| } # 308| if (src->os != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def49] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:312: error[memleak]: Memory leak: ret # 310| ret->os = strdup (src->os); # 311| if (ret->os == NULL) # 312|-> return NULL; # 313| } # 314| if (src->os_version != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def50] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:318: error[memleak]: Memory leak: ret # 316| ret->os_version = strdup (src->os_version); # 317| if (ret->os_version == NULL) # 318|-> return NULL; # 319| } # 320| if (src->os_features) Error: CPPCHECK_WARNING (CWE-401): [#def51] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:325: error[memleak]: Memory leak: ret # 323| ret->os_features = calloc (src->os_features_len + 1, sizeof (*ret->os_features)); # 324| if (ret->os_features == NULL) # 325|-> return NULL; # 326| for (size_t i = 0; i < src->os_features_len; i++) # 327| { Error: CPPCHECK_WARNING (CWE-401): [#def52] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:601: error[memleak]: Memory leak: ret # 599| ret->media_type = strdup (src->media_type); # 600| if (ret->media_type == NULL) # 601|-> return NULL; # 602| } # 603| ret->size = src->size; Error: CPPCHECK_WARNING (CWE-401): [#def53] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:609: error[memleak]: Memory leak: ret # 607| ret->digest = strdup (src->digest); # 608| if (ret->digest == NULL) # 609|-> return NULL; # 610| } # 611| if (src->urls) Error: CPPCHECK_WARNING (CWE-401): [#def54] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:616: error[memleak]: Memory leak: ret # 614| ret->urls = calloc (src->urls_len + 1, sizeof (*ret->urls)); # 615| if (ret->urls == NULL) # 616|-> return NULL; # 617| for (size_t i = 0; i < src->urls_len; i++) # 618| { Error: CPPCHECK_WARNING (CWE-401): [#def55] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:960: error[memleak]: Memory leak: ret # 958| ret->media_type = strdup (src->media_type); # 959| if (ret->media_type == NULL) # 960|-> return NULL; # 961| } # 962| if (src->artifact_type != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def56] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:966: error[memleak]: Memory leak: ret # 964| ret->artifact_type = strdup (src->artifact_type); # 965| if (ret->artifact_type == NULL) # 966|-> return NULL; # 967| } # 968| if (src->subject) Error: CPPCHECK_WARNING (CWE-401): [#def57] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:972: error[memleak]: Memory leak: ret # 970| ret->subject = clone_image_spec_schema_content_descriptor (src->subject); # 971| if (ret->subject == NULL) # 972|-> return NULL; # 973| } # 974| if (src->manifests) Error: CPPCHECK_WARNING (CWE-401): [#def58] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_index_schema.c:979: error[memleak]: Memory leak: ret # 977| ret->manifests = calloc (src->manifests_len + 1, sizeof (*ret->manifests)); # 978| if (ret->manifests == NULL) # 979|-> return NULL; # 980| for (size_t i = 0; i < src->manifests_len; i++) # 981| { Error: CPPCHECK_WARNING (CWE-401): [#def59] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_layout_schema.c:158: error[memleak]: Memory leak: ret # 156| ret->image_layout_version = strdup (src->image_layout_version); # 157| if (ret->image_layout_version == NULL) # 158|-> return NULL; # 159| } # 160| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def60] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:351: error[memleak]: Memory leak: ret # 349| ret->media_type = strdup (src->media_type); # 350| if (ret->media_type == NULL) # 351|-> return NULL; # 352| } # 353| if (src->artifact_type != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def61] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:357: error[memleak]: Memory leak: ret # 355| ret->artifact_type = strdup (src->artifact_type); # 356| if (ret->artifact_type == NULL) # 357|-> return NULL; # 358| } # 359| if (src->config) Error: CPPCHECK_WARNING (CWE-401): [#def62] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:363: error[memleak]: Memory leak: ret # 361| ret->config = clone_image_spec_schema_content_descriptor (src->config); # 362| if (ret->config == NULL) # 363|-> return NULL; # 364| } # 365| if (src->subject) Error: CPPCHECK_WARNING (CWE-401): [#def63] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:369: error[memleak]: Memory leak: ret # 367| ret->subject = clone_image_spec_schema_content_descriptor (src->subject); # 368| if (ret->subject == NULL) # 369|-> return NULL; # 370| } # 371| if (src->layers) Error: CPPCHECK_WARNING (CWE-401): [#def64] crun-HEAD/libocispec/src/ocispec/image_spec_schema_image_manifest_schema.c:376: error[memleak]: Memory leak: ret # 374| ret->layers = calloc (src->layers_len + 1, sizeof (*ret->layers)); # 375| if (ret->layers == NULL) # 376|-> return NULL; # 377| for (size_t i = 0; i < src->layers_len; i++) # 378| { Error: CPPCHECK_WARNING (CWE-401): [#def65] crun-HEAD/libocispec/src/ocispec/json_common.c:819: error[memleak]: Memory leak: ret # 817| if (ret->keys == NULL) # 818| { # 819|-> return NULL; # 820| } # 821| Error: CPPCHECK_WARNING (CWE-401): [#def66] crun-HEAD/libocispec/src/ocispec/json_common.c:825: error[memleak]: Memory leak: ret # 823| if (ret->values == NULL) # 824| { # 825|-> return NULL; # 826| } # 827| Error: CPPCHECK_WARNING (CWE-401): [#def67] crun-HEAD/libocispec/src/ocispec/json_common.c:900: error[memleak]: Memory leak: keys # 898| if (vals == NULL) # 899| { # 900|-> return -1; # 901| } # 902| Error: CPPCHECK_WARNING (CWE-401): [#def68] crun-HEAD/libocispec/src/ocispec/json_common.c:1004: error[memleak]: Memory leak: ret # 1002| if (ret->keys == NULL) # 1003| { # 1004|-> return NULL; # 1005| } # 1006| ret->values = calloc (len + 1, sizeof (bool)); Error: CPPCHECK_WARNING (CWE-401): [#def69] crun-HEAD/libocispec/src/ocispec/json_common.c:1009: error[memleak]: Memory leak: ret # 1007| if (ret->values == NULL) # 1008| { # 1009|-> return NULL; # 1010| } # 1011| Error: CPPCHECK_WARNING (CWE-401): [#def70] crun-HEAD/libocispec/src/ocispec/json_common.c:1077: error[memleak]: Memory leak: keys # 1075| if (vals == NULL) # 1076| { # 1077|-> return -1; # 1078| } # 1079| Error: CPPCHECK_WARNING (CWE-401): [#def71] crun-HEAD/libocispec/src/ocispec/json_common.c:1185: error[memleak]: Memory leak: ret # 1183| if (ret->keys == NULL) # 1184| { # 1185|-> return NULL; # 1186| } # 1187| Error: CPPCHECK_WARNING (CWE-401): [#def72] crun-HEAD/libocispec/src/ocispec/json_common.c:1191: error[memleak]: Memory leak: ret # 1189| if (ret->values == NULL) # 1190| { # 1191|-> return NULL; # 1192| } # 1193| Error: CPPCHECK_WARNING (CWE-401): [#def73] crun-HEAD/libocispec/src/ocispec/json_common.c:1353: error[memleak]: Memory leak: ret # 1351| { # 1352| *(err) = strdup ("error allocating memory"); # 1353|-> return NULL; # 1354| } # 1355| ret->values = calloc (len + 1, sizeof (int)); Error: CPPCHECK_WARNING (CWE-401): [#def74] crun-HEAD/libocispec/src/ocispec/json_common.c:1359: error[memleak]: Memory leak: ret # 1357| { # 1358| *(err) = strdup ("error allocating memory"); # 1359|-> return NULL; # 1360| } # 1361| Error: CPPCHECK_WARNING (CWE-401): [#def75] crun-HEAD/libocispec/src/ocispec/json_common.c:1662: error[memleak]: Memory leak: ret # 1660| if (ret->keys == NULL) # 1661| { # 1662|-> return NULL; # 1663| } # 1664| Error: CPPCHECK_WARNING (CWE-401): [#def76] crun-HEAD/libocispec/src/ocispec/json_common.c:1668: error[memleak]: Memory leak: ret # 1666| if (ret->values == NULL) # 1667| { # 1668|-> return NULL; # 1669| } # 1670| Error: CPPCHECK_WARNING (CWE-401): [#def77] crun-HEAD/libocispec/src/ocispec/json_common.c:1729: error[memleak]: Memory leak: keys # 1727| if (vals == NULL) # 1728| { # 1729|-> return -1; # 1730| } # 1731| Error: CPPCHECK_WARNING (CWE-401): [#def78] crun-HEAD/libocispec/src/ocispec/json_common.c:1735: error[memleak]: Memory leak: keys # 1733| if (new_value == NULL) # 1734| { # 1735|-> return -1; # 1736| } # 1737| Error: CPPCHECK_WARNING (CWE-401): [#def79] crun-HEAD/libocispec/src/ocispec/json_common.c:1735: error[memleak]: Memory leak: vals # 1733| if (new_value == NULL) # 1734| { # 1735|-> return -1; # 1736| } # 1737| Error: GCC_ANALYZER_WARNING (CWE-476): [#def80] crun-HEAD/libocispec/src/ocispec/json_common.c: scope_hint: In function 'free_json_map_string_string.part.0' crun-HEAD/libocispec/src/ocispec/json_common.c:1800:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '*map.keys + i * 8' crun-HEAD/libocispec/src/ocispec/json_common.c:6: included_from: Included from here. 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.c: scope_hint: In function 'free_json_map_string_string.part.0' # 1798| for (i = 0; i < map->len; i++) # 1799| { # 1800|-> free (map->keys[i]); # 1801| map->keys[i] = NULL; # 1802| free (map->values[i]); Error: GCC_ANALYZER_WARNING (CWE-476): [#def81] crun-HEAD/libocispec/src/ocispec/json_common.c:1802:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '*map.values + i * 8' 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.c: scope_hint: In function 'free_json_map_string_string.part.0' # 1800| free (map->keys[i]); # 1801| map->keys[i] = NULL; # 1802|-> free (map->values[i]); # 1803| map->values[i] = NULL; # 1804| } Error: CPPCHECK_WARNING (CWE-401): [#def82] crun-HEAD/libocispec/src/ocispec/json_common.c:1844: error[memleak]: Memory leak: ret # 1842| { # 1843| *(err) = strdup ("error allocating memory"); # 1844|-> return NULL; # 1845| } # 1846| Error: CPPCHECK_WARNING (CWE-401): [#def83] crun-HEAD/libocispec/src/ocispec/json_common.c:1851: error[memleak]: Memory leak: ret # 1849| { # 1850| *(err) = strdup ("error allocating memory"); # 1851|-> return NULL; # 1852| } # 1853| Error: CPPCHECK_WARNING (CWE-401): [#def84] crun-HEAD/libocispec/src/ocispec/json_common.c:1912: error[memleak]: Memory leak: ret # 1910| ret->keys = calloc (src->len + 1, sizeof (char *)); # 1911| if (ret->keys == NULL) # 1912|-> return NULL; # 1913| # 1914| ret->values = calloc (src->len + 1, sizeof (char *)); Error: CPPCHECK_WARNING (CWE-401): [#def85] crun-HEAD/libocispec/src/ocispec/json_common.c:1916: error[memleak]: Memory leak: ret # 1914| ret->values = calloc (src->len + 1, sizeof (char *)); # 1915| if (ret->values == NULL) # 1916|-> return NULL; # 1917| # 1918| for (i = 0; i < src->len; i++) Error: CPPCHECK_WARNING (CWE-401): [#def86] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_freebsd.c:373: error[memleak]: Memory leak: ret # 371| ret->mount = calloc (src->mount_len + 1, sizeof (*ret->mount)); # 372| if (ret->mount == NULL) # 373|-> return NULL; # 374| for (size_t i = 0; i < src->mount_len; i++) # 375| { Error: CPPCHECK_WARNING (CWE-401): [#def87] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_freebsd.c:992: error[memleak]: Memory leak: ret # 990| ret->parent = strdup (src->parent); # 991| if (ret->parent == NULL) # 992|-> return NULL; # 993| } # 994| if (src->host != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def88] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_freebsd.c:998: error[memleak]: Memory leak: ret # 996| ret->host = strdup (src->host); # 997| if (ret->host == NULL) # 998|-> return NULL; # 999| } # 1000| if (src->ip4 != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def89] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_freebsd.c:1004: error[memleak]: Memory leak: ret # 1002| ret->ip4 = strdup (src->ip4); # 1003| if (ret->ip4 == NULL) # 1004|-> return NULL; # 1005| } # 1006| if (src->ip4addr) Error: CPPCHECK_WARNING (CWE-401): [#def90] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_freebsd.c:1011: error[memleak]: Memory leak: ret # 1009| ret->ip4addr = calloc (src->ip4addr_len + 1, sizeof (*ret->ip4addr)); # 1010| if (ret->ip4addr == NULL) # 1011|-> return NULL; # 1012| for (size_t i = 0; i < src->ip4addr_len; i++) # 1013| { Error: CPPCHECK_WARNING (CWE-401): [#def91] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_freebsd.c:1297: error[memleak]: Memory leak: ret # 1295| ret->devices = calloc (src->devices_len + 1, sizeof (*ret->devices)); # 1296| if (ret->devices == NULL) # 1297|-> return NULL; # 1298| for (size_t i = 0; i < src->devices_len; i++) # 1299| { Error: CPPCHECK_WARNING (CWE-401): [#def92] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:31: error[memleak]: Memory leak: ret # 29| ret->keys = calloc (len + 1, sizeof (*ret->keys)); # 30| if (ret->keys == NULL) # 31|-> return NULL; # 32| ret->values = calloc (len + 1, sizeof (*ret->values)); # 33| if (ret->values == NULL) Error: CPPCHECK_WARNING (CWE-401): [#def93] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:34: error[memleak]: Memory leak: ret # 32| ret->values = calloc (len + 1, sizeof (*ret->values)); # 33| if (ret->values == NULL) # 34|-> return NULL; # 35| for (i = 0; i < len; i++) # 36| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def94] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_net_devices' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:71:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' crun-HEAD/libocispec/src/ocispec/json_common.h:9: included_from: Included from here. crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.h:7: included_from: Included from here. crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:8: included_from: Included from here. crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_net_devices' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_net_devices' /usr/include/alloca.h:24: included_from: Included from here. /usr/include/stdlib.h:728: included_from: Included from here. crun-HEAD/libocispec/src/ocispec/json_common.h:4: included_from: Included from here. crun-HEAD/libocispec/src/ocispec/json_common.h:41:7: note: in definition of macro 'define_cleaner_function' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_net_devices' # 69| ptr->values = NULL; # 70| } # 71|-> free (ptr); # 72| } # 73| json_gen_status Error: CPPCHECK_WARNING (CWE-401): [#def95] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:125: error[memleak]: Memory leak: ret # 123| ret->keys = calloc (src->len + 1, sizeof (*ret->keys)); # 124| if (ret->keys == NULL) # 125|-> return NULL; # 126| for (i = 0; i < src->len; i++) # 127| { Error: CPPCHECK_WARNING (CWE-401): [#def96] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:787: error[memleak]: Memory leak: ret # 785| ret->throttle_read_bps_device = calloc (src->throttle_read_bps_device_len + 1, sizeof (*ret->throttle_read_bps_device)); # 786| if (ret->throttle_read_bps_device == NULL) # 787|-> return NULL; # 788| for (size_t i = 0; i < src->throttle_read_bps_device_len; i++) # 789| { Error: CPPCHECK_WARNING (CWE-401): [#def97] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1257: error[memleak]: Memory leak: ret # 1255| ret->cpus = strdup (src->cpus); # 1256| if (ret->cpus == NULL) # 1257|-> return NULL; # 1258| } # 1259| if (src->mems != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def98] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1263: error[memleak]: Memory leak: ret # 1261| ret->mems = strdup (src->mems); # 1262| if (ret->mems == NULL) # 1263|-> return NULL; # 1264| } # 1265| ret->period = src->period; Error: CPPCHECK_WARNING (CWE-401): [#def99] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:1399: error[memleak]: Memory leak: ret # 1397| ret->page_size = strdup (src->page_size); # 1398| if (ret->page_size == NULL) # 1399|-> return NULL; # 1400| } # 1401| ret->limit = src->limit; Error: CPPCHECK_WARNING (CWE-401): [#def100] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2024: error[memleak]: Memory leak: ret # 2022| ret->priorities = calloc (src->priorities_len + 1, sizeof (*ret->priorities)); # 2023| if (ret->priorities == NULL) # 2024|-> return NULL; # 2025| for (size_t i = 0; i < src->priorities_len; i++) # 2026| { Error: CPPCHECK_WARNING (CWE-401): [#def101] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2057: error[memleak]: Memory leak: ret # 2055| ret->keys = calloc (len + 1, sizeof (*ret->keys)); # 2056| if (ret->keys == NULL) # 2057|-> return NULL; # 2058| ret->values = calloc (len + 1, sizeof (*ret->values)); # 2059| if (ret->values == NULL) Error: CPPCHECK_WARNING (CWE-401): [#def102] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2060: error[memleak]: Memory leak: ret # 2058| ret->values = calloc (len + 1, sizeof (*ret->values)); # 2059| if (ret->values == NULL) # 2060|-> return NULL; # 2061| for (i = 0; i < len; i++) # 2062| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def103] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_resources_rdma' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2097:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_resources_rdma' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_resources_rdma' crun-HEAD/libocispec/src/ocispec/json_common.h:41:7: note: in definition of macro 'define_cleaner_function' crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c: scope_hint: In function 'free_runtime_spec_schema_config_linux_resources_rdma' # 2095| ptr->values = NULL; # 2096| } # 2097|-> free (ptr); # 2098| } # 2099| json_gen_status Error: CPPCHECK_WARNING (CWE-401): [#def104] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2151: error[memleak]: Memory leak: ret # 2149| ret->keys = calloc (src->len + 1, sizeof (*ret->keys)); # 2150| if (ret->keys == NULL) # 2151|-> return NULL; # 2152| for (i = 0; i < src->len; i++) # 2153| { Error: CPPCHECK_WARNING (CWE-401): [#def105] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2542: error[memleak]: Memory leak: ret # 2540| ret->unified = clone_map_string_string (src->unified); # 2541| if (ret->unified == NULL) # 2542|-> return NULL; # 2543| } # 2544| if (src->devices) Error: CPPCHECK_WARNING (CWE-401): [#def106] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:2549: error[memleak]: Memory leak: ret # 2547| ret->devices = calloc (src->devices_len + 1, sizeof (*ret->devices)); # 2548| if (ret->devices == NULL) # 2549|-> return NULL; # 2550| for (size_t i = 0; i < src->devices_len; i++) # 2551| { Error: CPPCHECK_WARNING (CWE-401): [#def107] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3048: error[memleak]: Memory leak: ret # 3046| ret->default_action = strdup (src->default_action); # 3047| if (ret->default_action == NULL) # 3048|-> return NULL; # 3049| } # 3050| ret->default_errno_ret = src->default_errno_ret; Error: CPPCHECK_WARNING (CWE-401): [#def108] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3057: error[memleak]: Memory leak: ret # 3055| ret->flags = calloc (src->flags_len + 1, sizeof (*ret->flags)); # 3056| if (ret->flags == NULL) # 3057|-> return NULL; # 3058| for (size_t i = 0; i < src->flags_len; i++) # 3059| { Error: CPPCHECK_WARNING (CWE-401): [#def109] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3393: error[memleak]: Memory leak: ret # 3391| ret->clos_id = strdup (src->clos_id); # 3392| if (ret->clos_id == NULL) # 3393|-> return NULL; # 3394| } # 3395| if (src->schemata) Error: CPPCHECK_WARNING (CWE-401): [#def110] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3400: error[memleak]: Memory leak: ret # 3398| ret->schemata = calloc (src->schemata_len + 1, sizeof (*ret->schemata)); # 3399| if (ret->schemata == NULL) # 3400|-> return NULL; # 3401| for (size_t i = 0; i < src->schemata_len; i++) # 3402| { Error: CPPCHECK_WARNING (CWE-401): [#def111] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3661: error[memleak]: Memory leak: ret # 3659| ret->mode = strdup (src->mode); # 3660| if (ret->mode == NULL) # 3661|-> return NULL; # 3662| } # 3663| if (src->nodes != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def112] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3667: error[memleak]: Memory leak: ret # 3665| ret->nodes = strdup (src->nodes); # 3666| if (ret->nodes == NULL) # 3667|-> return NULL; # 3668| } # 3669| if (src->flags) Error: CPPCHECK_WARNING (CWE-401): [#def113] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3674: error[memleak]: Memory leak: ret # 3672| ret->flags = calloc (src->flags_len + 1, sizeof (*ret->flags)); # 3673| if (ret->flags == NULL) # 3674|-> return NULL; # 3675| for (size_t i = 0; i < src->flags_len; i++) # 3676| { Error: CPPCHECK_WARNING (CWE-401): [#def114] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3703: error[memleak]: Memory leak: ret # 3701| ret->boottime = make_runtime_spec_schema_defs_linux_time_offsets (get_val (tree, "boottime", YYJSON_TYPE_OBJ), ctx, err); # 3702| if (ret->boottime == NULL && *err != 0) # 3703|-> return NULL; # 3704| ret->monotonic = make_runtime_spec_schema_defs_linux_time_offsets (get_val (tree, "monotonic", YYJSON_TYPE_OBJ), ctx, err); # 3705| if (ret->monotonic == NULL && *err != 0) Error: CPPCHECK_WARNING (CWE-401): [#def115] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3706: error[memleak]: Memory leak: ret # 3704| ret->monotonic = make_runtime_spec_schema_defs_linux_time_offsets (get_val (tree, "monotonic", YYJSON_TYPE_OBJ), ctx, err); # 3705| if (ret->monotonic == NULL && *err != 0) # 3706|-> return NULL; # 3707| if (yyjson_is_obj (tree)) # 3708| { Error: CPPCHECK_WARNING (CWE-401): [#def116] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3841: error[memleak]: Memory leak: ret # 3839| ret->boottime = clone_runtime_spec_schema_defs_linux_time_offsets (src->boottime); # 3840| if (ret->boottime == NULL) # 3841|-> return NULL; # 3842| } # 3843| if (src->monotonic) Error: CPPCHECK_WARNING (CWE-401): [#def117] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:3847: error[memleak]: Memory leak: ret # 3845| ret->monotonic = clone_runtime_spec_schema_defs_linux_time_offsets (src->monotonic); # 3846| if (ret->monotonic == NULL) # 3847|-> return NULL; # 3848| } # 3849| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def118] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_linux.c:4568: error[memleak]: Memory leak: ret # 4566| ret->devices = calloc (src->devices_len + 1, sizeof (*ret->devices)); # 4567| if (ret->devices == NULL) # 4568|-> return NULL; # 4569| for (size_t i = 0; i < src->devices_len; i++) # 4570| { Error: CPPCHECK_WARNING (CWE-401): [#def119] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:487: error[memleak]: Memory leak: ret # 485| ret->prestart = calloc (src->prestart_len + 1, sizeof (*ret->prestart)); # 486| if (ret->prestart == NULL) # 487|-> return NULL; # 488| for (size_t i = 0; i < src->prestart_len; i++) # 489| { Error: CPPCHECK_WARNING (CWE-401): [#def120] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:734: error[memleak]: Memory leak: ret # 732| ret->path = strdup (src->path); # 733| if (ret->path == NULL) # 734|-> return NULL; # 735| } # 736| ret->readonly = src->readonly; Error: CPPCHECK_WARNING (CWE-401): [#def121] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1244: error[memleak]: Memory leak: ret # 1242| ret->additional_gids = calloc (src->additional_gids_len + 1, sizeof (*ret->additional_gids)); # 1243| if (ret->additional_gids == NULL) # 1244|-> return NULL; # 1245| for (size_t i = 0; i < src->additional_gids_len; i++) # 1246| { Error: CPPCHECK_WARNING (CWE-401): [#def122] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1697: error[memleak]: Memory leak: ret # 1695| ret->bounding = calloc (src->bounding_len + 1, sizeof (*ret->bounding)); # 1696| if (ret->bounding == NULL) # 1697|-> return NULL; # 1698| for (size_t i = 0; i < src->bounding_len; i++) # 1699| { Error: CPPCHECK_WARNING (CWE-401): [#def123] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:1958: error[memleak]: Memory leak: ret # 1956| ret->_class = strdup (src->_class); # 1957| if (ret->_class == NULL) # 1958|-> return NULL; # 1959| } # 1960| ret->priority = src->priority; Error: CPPCHECK_WARNING (CWE-401): [#def124] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2348: error[memleak]: Memory leak: ret # 2346| ret->policy = strdup (src->policy); # 2347| if (ret->policy == NULL) # 2348|-> return NULL; # 2349| } # 2350| ret->nice = src->nice; Error: CPPCHECK_WARNING (CWE-401): [#def125] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2359: error[memleak]: Memory leak: ret # 2357| ret->flags = calloc (src->flags_len + 1, sizeof (*ret->flags)); # 2358| if (ret->flags == NULL) # 2359|-> return NULL; # 2360| for (size_t i = 0; i < src->flags_len; i++) # 2361| { Error: CPPCHECK_WARNING (CWE-401): [#def126] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2533: error[memleak]: Memory leak: ret # 2531| ret->type = strdup (src->type); # 2532| if (ret->type == NULL) # 2533|-> return NULL; # 2534| } # 2535| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def127] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2707: error[memleak]: Memory leak: ret # 2705| ret->initial = strdup (src->initial); # 2706| if (ret->initial == NULL) # 2707|-> return NULL; # 2708| } # 2709| if (src->final != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def128] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:2713: error[memleak]: Memory leak: ret # 2711| ret->final = strdup (src->final); # 2712| if (ret->final == NULL) # 2713|-> return NULL; # 2714| } # 2715| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def129] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3320: error[memleak]: Memory leak: ret # 3318| ret->args = calloc (src->args_len + 1, sizeof (*ret->args)); # 3319| if (ret->args == NULL) # 3320|-> return NULL; # 3321| for (size_t i = 0; i < src->args_len; i++) # 3322| { Error: CPPCHECK_WARNING (CWE-401): [#def130] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3881: error[memleak]: Memory leak: ret # 3879| ret->oci_version = strdup (src->oci_version); # 3880| if (ret->oci_version == NULL) # 3881|-> return NULL; # 3882| } # 3883| if (src->hooks) Error: CPPCHECK_WARNING (CWE-401): [#def131] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3887: error[memleak]: Memory leak: ret # 3885| ret->hooks = clone_runtime_spec_schema_config_schema_hooks (src->hooks); # 3886| if (ret->hooks == NULL) # 3887|-> return NULL; # 3888| } # 3889| if (src->annotations != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def132] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3893: error[memleak]: Memory leak: ret # 3891| ret->annotations = clone_map_string_string (src->annotations); # 3892| if (ret->annotations == NULL) # 3893|-> return NULL; # 3894| } # 3895| if (src->hostname != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def133] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3899: error[memleak]: Memory leak: ret # 3897| ret->hostname = strdup (src->hostname); # 3898| if (ret->hostname == NULL) # 3899|-> return NULL; # 3900| } # 3901| if (src->domainname != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def134] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3905: error[memleak]: Memory leak: ret # 3903| ret->domainname = strdup (src->domainname); # 3904| if (ret->domainname == NULL) # 3905|-> return NULL; # 3906| } # 3907| if (src->mounts) Error: CPPCHECK_WARNING (CWE-401): [#def135] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3912: error[memleak]: Memory leak: ret # 3910| ret->mounts = calloc (src->mounts_len + 1, sizeof (*ret->mounts)); # 3911| if (ret->mounts == NULL) # 3912|-> return NULL; # 3913| for (size_t i = 0; i < src->mounts_len; i++) # 3914| { Error: CPPCHECK_WARNING (CWE-401): [#def136] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:152: error[memleak]: Memory leak: ret # 150| ret->ncpus = strdup (src->ncpus); # 151| if (ret->ncpus == NULL) # 152|-> return NULL; # 153| } # 154| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def137] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:326: error[memleak]: Memory leak: ret # 324| ret->physical = strdup (src->physical); # 325| if (ret->physical == NULL) # 326|-> return NULL; # 327| } # 328| if (src->swap != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def138] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:332: error[memleak]: Memory leak: ret # 330| ret->swap = strdup (src->swap); # 331| if (ret->swap == NULL) # 332|-> return NULL; # 333| } # 334| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def139] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:565: error[memleak]: Memory leak: ret # 563| ret->linkname = strdup (src->linkname); # 564| if (ret->linkname == NULL) # 565|-> return NULL; # 566| } # 567| if (src->lower_link != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def140] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:571: error[memleak]: Memory leak: ret # 569| ret->lower_link = strdup (src->lower_link); # 570| if (ret->lower_link == NULL) # 571|-> return NULL; # 572| } # 573| if (src->allowed_address != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def141] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:577: error[memleak]: Memory leak: ret # 575| ret->allowed_address = strdup (src->allowed_address); # 576| if (ret->allowed_address == NULL) # 577|-> return NULL; # 578| } # 579| if (src->configure_allowed_address != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def142] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:583: error[memleak]: Memory leak: ret # 581| ret->configure_allowed_address = strdup (src->configure_allowed_address); # 582| if (ret->configure_allowed_address == NULL) # 583|-> return NULL; # 584| } # 585| if (src->defrouter != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def143] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:589: error[memleak]: Memory leak: ret # 587| ret->defrouter = strdup (src->defrouter); # 588| if (ret->defrouter == NULL) # 589|-> return NULL; # 590| } # 591| if (src->mac_address != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def144] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:595: error[memleak]: Memory leak: ret # 593| ret->mac_address = strdup (src->mac_address); # 594| if (ret->mac_address == NULL) # 595|-> return NULL; # 596| } # 597| if (src->link_protection != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def145] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:601: error[memleak]: Memory leak: ret # 599| ret->link_protection = strdup (src->link_protection); # 600| if (ret->link_protection == NULL) # 601|-> return NULL; # 602| } # 603| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def146] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:897: error[memleak]: Memory leak: ret # 895| ret->milestone = strdup (src->milestone); # 896| if (ret->milestone == NULL) # 897|-> return NULL; # 898| } # 899| if (src->limitpriv != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def147] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:903: error[memleak]: Memory leak: ret # 901| ret->limitpriv = strdup (src->limitpriv); # 902| if (ret->limitpriv == NULL) # 903|-> return NULL; # 904| } # 905| if (src->max_shm_memory != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def148] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:909: error[memleak]: Memory leak: ret # 907| ret->max_shm_memory = strdup (src->max_shm_memory); # 908| if (ret->max_shm_memory == NULL) # 909|-> return NULL; # 910| } # 911| if (src->capped_cpu) Error: CPPCHECK_WARNING (CWE-401): [#def149] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:915: error[memleak]: Memory leak: ret # 913| ret->capped_cpu = clone_runtime_spec_schema_config_solaris_capped_cpu (src->capped_cpu); # 914| if (ret->capped_cpu == NULL) # 915|-> return NULL; # 916| } # 917| if (src->capped_memory) Error: CPPCHECK_WARNING (CWE-401): [#def150] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:921: error[memleak]: Memory leak: ret # 919| ret->capped_memory = clone_runtime_spec_schema_config_solaris_capped_memory (src->capped_memory); # 920| if (ret->capped_memory == NULL) # 921|-> return NULL; # 922| } # 923| if (src->anet) Error: CPPCHECK_WARNING (CWE-401): [#def151] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_solaris.c:928: error[memleak]: Memory leak: ret # 926| ret->anet = calloc (src->anet_len + 1, sizeof (*ret->anet)); # 927| if (ret->anet == NULL) # 928|-> return NULL; # 929| for (size_t i = 0; i < src->anet_len; i++) # 930| { Error: CPPCHECK_WARNING (CWE-401): [#def152] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:222: error[memleak]: Memory leak: ret # 220| ret->path = strdup (src->path); # 221| if (ret->path == NULL) # 222|-> return NULL; # 223| } # 224| if (src->parameters) Error: CPPCHECK_WARNING (CWE-401): [#def153] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:229: error[memleak]: Memory leak: ret # 227| ret->parameters = calloc (src->parameters_len + 1, sizeof (*ret->parameters)); # 228| if (ret->parameters == NULL) # 229|-> return NULL; # 230| for (size_t i = 0; i < src->parameters_len; i++) # 231| { Error: CPPCHECK_WARNING (CWE-401): [#def154] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:482: error[memleak]: Memory leak: ret # 480| ret->path = strdup (src->path); # 481| if (ret->path == NULL) # 482|-> return NULL; # 483| } # 484| if (src->parameters) Error: CPPCHECK_WARNING (CWE-401): [#def155] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:489: error[memleak]: Memory leak: ret # 487| ret->parameters = calloc (src->parameters_len + 1, sizeof (*ret->parameters)); # 488| if (ret->parameters == NULL) # 489|-> return NULL; # 490| for (size_t i = 0; i < src->parameters_len; i++) # 491| { Error: CPPCHECK_WARNING (CWE-401): [#def156] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:690: error[memleak]: Memory leak: ret # 688| ret->path = strdup (src->path); # 689| if (ret->path == NULL) # 690|-> return NULL; # 691| } # 692| if (src->format != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def157] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:696: error[memleak]: Memory leak: ret # 694| ret->format = strdup (src->format); # 695| if (ret->format == NULL) # 696|-> return NULL; # 697| } # 698| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def158] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1099: error[memleak]: Memory leak: ret # 1097| ret->device_tree = strdup (src->device_tree); # 1098| if (ret->device_tree == NULL) # 1099|-> return NULL; # 1100| } # 1101| ret->vcpus = src->vcpus; Error: CPPCHECK_WARNING (CWE-401): [#def159] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1110: error[memleak]: Memory leak: ret # 1108| ret->dtdevs = calloc (src->dtdevs_len + 1, sizeof (*ret->dtdevs)); # 1109| if (ret->dtdevs == NULL) # 1110|-> return NULL; # 1111| for (size_t i = 0; i < src->dtdevs_len; i++) # 1112| { Error: CPPCHECK_WARNING (CWE-401): [#def160] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1163: error[memleak]: Memory leak: ret # 1161| ret->hypervisor = make_runtime_spec_schema_config_vm_hypervisor (get_val (tree, "hypervisor", YYJSON_TYPE_OBJ), ctx, err); # 1162| if (ret->hypervisor == NULL && *err != 0) # 1163|-> return NULL; # 1164| ret->kernel = make_runtime_spec_schema_config_vm_kernel (get_val (tree, "kernel", YYJSON_TYPE_OBJ), ctx, err); # 1165| if (ret->kernel == NULL && *err != 0) Error: CPPCHECK_WARNING (CWE-401): [#def161] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1166: error[memleak]: Memory leak: ret # 1164| ret->kernel = make_runtime_spec_schema_config_vm_kernel (get_val (tree, "kernel", YYJSON_TYPE_OBJ), ctx, err); # 1165| if (ret->kernel == NULL && *err != 0) # 1166|-> return NULL; # 1167| ret->image = make_runtime_spec_schema_config_vm_image (get_val (tree, "image", YYJSON_TYPE_OBJ), ctx, err); # 1168| if (ret->image == NULL && *err != 0) Error: CPPCHECK_WARNING (CWE-401): [#def162] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1169: error[memleak]: Memory leak: ret # 1167| ret->image = make_runtime_spec_schema_config_vm_image (get_val (tree, "image", YYJSON_TYPE_OBJ), ctx, err); # 1168| if (ret->image == NULL && *err != 0) # 1169|-> return NULL; # 1170| ret->hw_config = make_runtime_spec_schema_config_vm_hw_config (get_val (tree, "hwConfig", YYJSON_TYPE_OBJ), ctx, err); # 1171| if (ret->hw_config == NULL && *err != 0) Error: CPPCHECK_WARNING (CWE-401): [#def163] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1172: error[memleak]: Memory leak: ret # 1170| ret->hw_config = make_runtime_spec_schema_config_vm_hw_config (get_val (tree, "hwConfig", YYJSON_TYPE_OBJ), ctx, err); # 1171| if (ret->hw_config == NULL && *err != 0) # 1172|-> return NULL; # 1173| if (ret->kernel == NULL) # 1174| { Error: CPPCHECK_WARNING (CWE-401): [#def164] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1177: error[memleak]: Memory leak: ret # 1175| if (asprintf (err, "Required field '%s' not present", "kernel") < 0) # 1176| *err = strdup ("error allocating memory"); # 1177|-> return NULL; # 1178| } # 1179| if (yyjson_is_obj (tree)) Error: CPPCHECK_WARNING (CWE-401): [#def165] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1343: error[memleak]: Memory leak: ret # 1341| ret->hypervisor = clone_runtime_spec_schema_config_vm_hypervisor (src->hypervisor); # 1342| if (ret->hypervisor == NULL) # 1343|-> return NULL; # 1344| } # 1345| if (src->kernel) Error: CPPCHECK_WARNING (CWE-401): [#def166] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1349: error[memleak]: Memory leak: ret # 1347| ret->kernel = clone_runtime_spec_schema_config_vm_kernel (src->kernel); # 1348| if (ret->kernel == NULL) # 1349|-> return NULL; # 1350| } # 1351| if (src->image) Error: CPPCHECK_WARNING (CWE-401): [#def167] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1355: error[memleak]: Memory leak: ret # 1353| ret->image = clone_runtime_spec_schema_config_vm_image (src->image); # 1354| if (ret->image == NULL) # 1355|-> return NULL; # 1356| } # 1357| if (src->hw_config) Error: CPPCHECK_WARNING (CWE-401): [#def168] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:1361: error[memleak]: Memory leak: ret # 1359| ret->hw_config = clone_runtime_spec_schema_config_vm_hw_config (src->hw_config); # 1360| if (ret->hw_config == NULL) # 1361|-> return NULL; # 1362| } # 1363| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def169] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:592: error[memleak]: Memory leak: ret # 590| ret->affinity = clone_runtime_spec_schema_config_windows_resources_cpu_affinity (src->affinity); # 591| if (ret->affinity == NULL) # 592|-> return NULL; # 593| } # 594| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def170] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:836: error[memleak]: Memory leak: ret # 834| ret->memory = make_runtime_spec_schema_config_windows_resources_memory (get_val (tree, "memory", YYJSON_TYPE_OBJ), ctx, err); # 835| if (ret->memory == NULL && *err != 0) # 836|-> return NULL; # 837| ret->cpu = make_runtime_spec_schema_config_windows_resources_cpu (get_val (tree, "cpu", YYJSON_TYPE_OBJ), ctx, err); # 838| if (ret->cpu == NULL && *err != 0) Error: CPPCHECK_WARNING (CWE-401): [#def171] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:839: error[memleak]: Memory leak: ret # 837| ret->cpu = make_runtime_spec_schema_config_windows_resources_cpu (get_val (tree, "cpu", YYJSON_TYPE_OBJ), ctx, err); # 838| if (ret->cpu == NULL && *err != 0) # 839|-> return NULL; # 840| ret->storage = make_runtime_spec_schema_config_windows_resources_storage (get_val (tree, "storage", YYJSON_TYPE_OBJ), ctx, err); # 841| if (ret->storage == NULL && *err != 0) Error: CPPCHECK_WARNING (CWE-401): [#def172] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:842: error[memleak]: Memory leak: ret # 840| ret->storage = make_runtime_spec_schema_config_windows_resources_storage (get_val (tree, "storage", YYJSON_TYPE_OBJ), ctx, err); # 841| if (ret->storage == NULL && *err != 0) # 842|-> return NULL; # 843| if (yyjson_is_obj (tree)) # 844| { Error: CPPCHECK_WARNING (CWE-401): [#def173] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:992: error[memleak]: Memory leak: ret # 990| ret->memory = clone_runtime_spec_schema_config_windows_resources_memory (src->memory); # 991| if (ret->memory == NULL) # 992|-> return NULL; # 993| } # 994| if (src->cpu) Error: CPPCHECK_WARNING (CWE-401): [#def174] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:998: error[memleak]: Memory leak: ret # 996| ret->cpu = clone_runtime_spec_schema_config_windows_resources_cpu (src->cpu); # 997| if (ret->cpu == NULL) # 998|-> return NULL; # 999| } # 1000| if (src->storage) Error: CPPCHECK_WARNING (CWE-401): [#def175] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1004: error[memleak]: Memory leak: ret # 1002| ret->storage = clone_runtime_spec_schema_config_windows_resources_storage (src->storage); # 1003| if (ret->storage == NULL) # 1004|-> return NULL; # 1005| } # 1006| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def176] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1329: error[memleak]: Memory leak: ret # 1327| ret->endpoint_list = calloc (src->endpoint_list_len + 1, sizeof (*ret->endpoint_list)); # 1328| if (ret->endpoint_list == NULL) # 1329|-> return NULL; # 1330| for (size_t i = 0; i < src->endpoint_list_len; i++) # 1331| { Error: CPPCHECK_WARNING (CWE-401): [#def177] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1572: error[memleak]: Memory leak: ret # 1570| ret->utility_vm_path = strdup (src->utility_vm_path); # 1571| if (ret->utility_vm_path == NULL) # 1572|-> return NULL; # 1573| } # 1574| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def178] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1941: error[memleak]: Memory leak: ret # 1939| ret->layer_folders = calloc (src->layer_folders_len + 1, sizeof (*ret->layer_folders)); # 1940| if (ret->layer_folders == NULL) # 1941|-> return NULL; # 1942| for (size_t i = 0; i < src->layer_folders_len; i++) # 1943| { Error: CPPCHECK_WARNING (CWE-401): [#def179] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_zos.c:187: error[memleak]: Memory leak: ret # 185| ret->namespaces = calloc (src->namespaces_len + 1, sizeof (*ret->namespaces)); # 186| if (ret->namespaces == NULL) # 187|-> return NULL; # 188| for (size_t i = 0; i < src->namespaces_len; i++) # 189| { Error: CPPCHECK_WARNING (CWE-401): [#def180] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:320: error[memleak]: Memory leak: ret # 318| ret->path = strdup (src->path); # 319| if (ret->path == NULL) # 320|-> return NULL; # 321| } # 322| if (src->args) Error: CPPCHECK_WARNING (CWE-401): [#def181] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:327: error[memleak]: Memory leak: ret # 325| ret->args = calloc (src->args_len + 1, sizeof (*ret->args)); # 326| if (ret->args == NULL) # 327|-> return NULL; # 328| for (size_t i = 0; i < src->args_len; i++) # 329| { Error: CPPCHECK_WARNING (CWE-401): [#def182] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:968: error[memleak]: Memory leak: ret # 966| ret->source = strdup (src->source); # 967| if (ret->source == NULL) # 968|-> return NULL; # 969| } # 970| if (src->destination != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def183] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:974: error[memleak]: Memory leak: ret # 972| ret->destination = strdup (src->destination); # 973| if (ret->destination == NULL) # 974|-> return NULL; # 975| } # 976| if (src->options) Error: CPPCHECK_WARNING (CWE-401): [#def184] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:981: error[memleak]: Memory leak: ret # 979| ret->options = calloc (src->options_len + 1, sizeof (*ret->options)); # 980| if (ret->options == NULL) # 981|-> return NULL; # 982| for (size_t i = 0; i < src->options_len; i++) # 983| { Error: CPPCHECK_WARNING (CWE-401): [#def185] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_freebsd.c:186: error[memleak]: Memory leak: ret # 184| ret->path = strdup (src->path); # 185| if (ret->path == NULL) # 186|-> return NULL; # 187| } # 188| ret->mode = src->mode; Error: CPPCHECK_WARNING (CWE-401): [#def186] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:216: error[memleak]: Memory leak: ret # 214| ret->domain = strdup (src->domain); # 215| if (ret->domain == NULL) # 216|-> return NULL; # 217| } # 218| if (src->flags) Error: CPPCHECK_WARNING (CWE-401): [#def187] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:223: error[memleak]: Memory leak: ret # 221| ret->flags = calloc (src->flags_len + 1, sizeof (*ret->flags)); # 222| if (ret->flags == NULL) # 223|-> return NULL; # 224| for (size_t i = 0; i < src->flags_len; i++) # 225| { Error: CPPCHECK_WARNING (CWE-401): [#def188] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:494: error[memleak]: Memory leak: ret # 492| ret->op = strdup (src->op); # 493| if (ret->op == NULL) # 494|-> return NULL; # 495| } # 496| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def189] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:813: error[memleak]: Memory leak: ret # 811| ret->names = calloc (src->names_len + 1, sizeof (*ret->names)); # 812| if (ret->names == NULL) # 813|-> return NULL; # 814| for (size_t i = 0; i < src->names_len; i++) # 815| { Error: CPPCHECK_WARNING (CWE-401): [#def190] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1199: error[memleak]: Memory leak: ret # 1197| ret->type = strdup (src->type); # 1198| if (ret->type == NULL) # 1199|-> return NULL; # 1200| } # 1201| if (src->path != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def191] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1205: error[memleak]: Memory leak: ret # 1203| ret->path = strdup (src->path); # 1204| if (ret->path == NULL) # 1205|-> return NULL; # 1206| } # 1207| ret->file_mode = src->file_mode; Error: CPPCHECK_WARNING (CWE-401): [#def192] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1363: error[memleak]: Memory leak: ret # 1361| ret->name = strdup (src->name); # 1362| if (ret->name == NULL) # 1363|-> return NULL; # 1364| } # 1365| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def193] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2301: error[memleak]: Memory leak: ret # 2299| ret->type = strdup (src->type); # 2300| if (ret->type == NULL) # 2301|-> return NULL; # 2302| } # 2303| ret->major = src->major; Error: CPPCHECK_WARNING (CWE-401): [#def194] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2311: error[memleak]: Memory leak: ret # 2309| ret->access = strdup (src->access); # 2310| if (ret->access == NULL) # 2311|-> return NULL; # 2312| } # 2313| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def195] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2499: error[memleak]: Memory leak: ret # 2497| ret->name = strdup (src->name); # 2498| if (ret->name == NULL) # 2499|-> return NULL; # 2500| } # 2501| ret->priority = src->priority; Error: CPPCHECK_WARNING (CWE-401): [#def196] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2869: error[memleak]: Memory leak: ret # 2867| ret->type = strdup (src->type); # 2868| if (ret->type == NULL) # 2869|-> return NULL; # 2870| } # 2871| if (src->path != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def197] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2875: error[memleak]: Memory leak: ret # 2873| ret->path = strdup (src->path); # 2874| if (ret->path == NULL) # 2875|-> return NULL; # 2876| } # 2877| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def198] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:190: error[memleak]: Memory leak: ret # 188| ret->id = strdup (src->id); # 189| if (ret->id == NULL) # 190|-> return NULL; # 191| } # 192| if (src->id_type != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def199] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:196: error[memleak]: Memory leak: ret # 194| ret->id_type = strdup (src->id_type); # 195| if (ret->id_type == NULL) # 196|-> return NULL; # 197| } # 198| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def200] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:184: error[memleak]: Memory leak: ret # 182| ret->type = strdup (src->type); # 183| if (ret->type == NULL) # 184|-> return NULL; # 185| } # 186| if (src->path != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def201] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:190: error[memleak]: Memory leak: ret # 188| ret->path = strdup (src->path); # 189| if (ret->path == NULL) # 190|-> return NULL; # 191| } # 192| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def202] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:707: error[memleak]: Memory leak: ret # 705| ret->actions = calloc (src->actions_len + 1, sizeof (*ret->actions)); # 706| if (ret->actions == NULL) # 707|-> return NULL; # 708| for (size_t i = 0; i < src->actions_len; i++) # 709| { Error: CPPCHECK_WARNING (CWE-401): [#def203] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1360: error[memleak]: Memory leak: ret # 1358| ret->idmap = make_runtime_spec_schema_features_linux_mount_extensions_idmap (get_val (tree, "idmap", YYJSON_TYPE_OBJ), ctx, err); # 1359| if (ret->idmap == NULL && *err != 0) # 1360|-> return NULL; # 1361| if (yyjson_is_obj (tree)) # 1362| { Error: CPPCHECK_WARNING (CWE-401): [#def204] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1480: error[memleak]: Memory leak: ret # 1478| ret->idmap = clone_runtime_spec_schema_features_linux_mount_extensions_idmap (src->idmap); # 1479| if (ret->idmap == NULL) # 1480|-> return NULL; # 1481| } # 1482| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-401): [#def205] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1997: error[memleak]: Memory leak: ret # 1995| ret->namespaces = calloc (src->namespaces_len + 1, sizeof (*ret->namespaces)); # 1996| if (ret->namespaces == NULL) # 1997|-> return NULL; # 1998| for (size_t i = 0; i < src->namespaces_len; i++) # 1999| { Error: CPPCHECK_WARNING (CWE-401): [#def206] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:429: error[memleak]: Memory leak: ret # 427| ret->oci_version_min = strdup (src->oci_version_min); # 428| if (ret->oci_version_min == NULL) # 429|-> return NULL; # 430| } # 431| if (src->oci_version_max != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def207] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:435: error[memleak]: Memory leak: ret # 433| ret->oci_version_max = strdup (src->oci_version_max); # 434| if (ret->oci_version_max == NULL) # 435|-> return NULL; # 436| } # 437| if (src->hooks) Error: CPPCHECK_WARNING (CWE-401): [#def208] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:442: error[memleak]: Memory leak: ret # 440| ret->hooks = calloc (src->hooks_len + 1, sizeof (*ret->hooks)); # 441| if (ret->hooks == NULL) # 442|-> return NULL; # 443| for (size_t i = 0; i < src->hooks_len; i++) # 444| { Error: CPPCHECK_WARNING (CWE-401): [#def209] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:317: error[memleak]: Memory leak: ret # 315| ret->oci_version = strdup (src->oci_version); # 316| if (ret->oci_version == NULL) # 317|-> return NULL; # 318| } # 319| if (src->id != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def210] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:323: error[memleak]: Memory leak: ret # 321| ret->id = strdup (src->id); # 322| if (ret->id == NULL) # 323|-> return NULL; # 324| } # 325| if (src->status != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def211] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:329: error[memleak]: Memory leak: ret # 327| ret->status = strdup (src->status); # 328| if (ret->status == NULL) # 329|-> return NULL; # 330| } # 331| ret->pid = src->pid; Error: CPPCHECK_WARNING (CWE-401): [#def212] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:337: error[memleak]: Memory leak: ret # 335| ret->bundle = strdup (src->bundle); # 336| if (ret->bundle == NULL) # 337|-> return NULL; # 338| } # 339| if (src->annotations != NULL) Error: CPPCHECK_WARNING (CWE-401): [#def213] crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:343: error[memleak]: Memory leak: ret # 341| ret->annotations = clone_map_string_string (src->annotations); # 342| if (ret->annotations == NULL) # 343|-> return NULL; # 344| } # 345| return move_ptr (ret); Error: CPPCHECK_WARNING (CWE-457): [#def214] crun-HEAD/src/libcrun/blake3/blake3.c:229: warning[uninitvar]: Uninitialized variable: parents_array # 227| } # 228| # 229|-> blake3_hash_many(parents_array, parents_array_len, 1, key, # 230| 0, // Parents always use counter 0. # 231| false, flags | PARENT, Error: GCC_ANALYZER_WARNING (CWE-688): [#def215] crun-HEAD/src/libcrun/cgroup-setup.c: scope_hint: In function 'initialize_cpuset_subsystem' crun-HEAD/src/libcrun/cgroup-setup.c:155:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected crun-HEAD/libocispec/src/ocispec/json_common.h:7: included_from: Included from here. crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7: included_from: Included from here. crun-HEAD/src/libcrun/container.h:23: included_from: Included from here. /usr/include/string.h:439:15: note: argument 1 of 'strlen' must be non-null # 153| # 154| cpus_buf[0] = mems_buf[0] = '\0'; # 155|-> return initialize_cpuset_subsystem_rec (tmp_path, strlen (tmp_path), cpus_buf, mems_buf, NULL, err); # 156| } # 157| Error: GCC_ANALYZER_WARNING (CWE-688): [#def216] crun-HEAD/src/libcrun/cgroup-setup.c: scope_hint: In function 'enter_cgroup_v2' crun-HEAD/src/libcrun/cgroup-setup.c:470:15: warning[-Wanalyzer-null-argument]: use of NULL 'cgroup_crun_exec_path' where non-null expected crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/cgroup-setup.c: scope_hint: In function 'enter_cgroup_v2' /usr/include/string.h:174:12: note: argument 2 of 'strncmp' must be non-null # 468| # 469| /* Make sure the cgroup is below the initial cgroup specified for the container. */ # 470|-> if (strncmp (path, cgroup_crun_exec_path, strlen (path))) # 471| { # 472| free (cgroup_crun_exec_path); Error: COMPILER_WARNING (CWE-704): [#def217] crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'get_systemd_scope_and_slice' crun-HEAD/src/libcrun/cgroup-systemd.c:125:5: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 123| } # 124| # 125|-> n = strchr (cgroup_path, ':'); # 126| if (n == NULL) # 127| xasprintf (scope, "%s.scope", cgroup_path); Error: COMPILER_WARNING (CWE-704): [#def218] crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'append_systemd_annotation' crun-HEAD/src/libcrun/cgroup-systemd.c:641:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 639| it = v_start = xstrdup (value); # 640| # 641|-> end = strchr (it + 1, '\''); # 642| if (end == NULL) # 643| return crun_make_error (err, 0, "invalid variant `%s`", value); Error: GCC_ANALYZER_WARNING (CWE-476): [#def219] crun-HEAD/src/libcrun/cgroup.c: scope_hint: In function 'libcrun_cgroup_destroy' crun-HEAD/src/libcrun/cgroup.c:208:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cgroup_manager' # 206| return ret; # 207| # 208|-> return cgroup_manager->destroy_cgroup (cgroup_status, err); # 209| } # 210| Error: GCC_ANALYZER_WARNING (CWE-476): [#def220] crun-HEAD/src/libcrun/cgroup.c: scope_hint: In function 'libcrun_update_cgroup_resources' crun-HEAD/src/libcrun/cgroup.c:224:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cgroup_manager' # 222| return ret; # 223| # 224|-> if (cgroup_manager->update_resources) # 225| { # 226| ret = cgroup_manager->update_resources (cgroup_status, state_root, resources, err); Error: GCC_ANALYZER_WARNING (CWE-476): [#def221] crun-HEAD/src/libcrun/cgroup.c: scope_hint: In function 'libcrun_cgroup_preenter' crun-HEAD/src/libcrun/cgroup.c:282:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cgroup_manager' # 280| return ret; # 281| # 282|-> if (cgroup_manager->precreate_cgroup == NULL) # 283| return 0; # 284| Error: GCC_ANALYZER_WARNING (CWE-476): [#def222] crun-HEAD/src/libcrun/cgroup.c: scope_hint: In function 'libcrun_cgroup_enter' crun-HEAD/src/libcrun/cgroup.c:323:23: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cgroup_manager' # 321| status->manager = args->manager; # 322| # 323|-> ret = cgroup_manager->create_cgroup (args, status, err); # 324| if (UNLIKELY (ret < 0)) # 325| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def223] crun-HEAD/src/libcrun/cloned_binary.c: scope_hint: In function 'fetchve' crun-HEAD/src/libcrun/cloned_binary.c:191:40: warning[-Wanalyzer-malloc-leak]: leak of 'read_file("/proc/self/cmdline", &cmdline_size)' crun-HEAD/src/libcrun/cloned_binary.c:61: included_from: Included from here. # 189| break; # 190| # 191|-> copy = xrealloc(copy, (*length + n) * sizeof(*copy)); # 192| memcpy(copy + *length, buf, n); # 193| *length += n; Error: GCC_ANALYZER_WARNING (CWE-476): [#def224] crun-HEAD/src/libcrun/cloned_binary.c: scope_hint: In function 'parse_xargs' crun-HEAD/src/libcrun/cloned_binary.c:223:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' # 221| cur += strlen(cur) + 1; # 222| } # 223|-> (*output)[num] = NULL; # 224| return num; # 225| } Error: GCC_ANALYZER_WARNING (CWE-415): [#def225] crun-HEAD/src/libcrun/cloned_binary.c: scope_hint: In function 'fetchve' crun-HEAD/src/libcrun/cloned_binary.c:247:9: warning[-Wanalyzer-double-free]: double-'free' of '0' # 245| # 246| error: # 247|-> free(cmdline); # 248| return -EINVAL; # 249| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def226] crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/container.c:3997:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'process' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' # 3995| # 3996| /* This must be done before we enter a user namespace. */ # 3997|-> ret = libcrun_set_rlimits (process->rlimits, process->rlimits_len, err); # 3998| if (UNLIKELY (ret < 0)) # 3999| return ret; Error: GCC_ANALYZER_WARNING (CWE-401): [#def227] crun-HEAD/src/libcrun/container.c:4012:32: warning[-Wanalyzer-malloc-leak]: leak of '*process.selinux_label' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' # 4010| { # 4011| if (process->selinux_label == NULL && container->container_def->process->selinux_label) # 4012|-> process->selinux_label = xstrdup (container->container_def->process->selinux_label); # 4013| # 4014| if (process->apparmor_profile == NULL && container->container_def->process->apparmor_profile) Error: GCC_ANALYZER_WARNING (CWE-401): [#def228] crun-HEAD/src/libcrun/container.c:4015:35: warning[-Wanalyzer-malloc-leak]: leak of '*process.apparmor_profile' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' # 4013| # 4014| if (process->apparmor_profile == NULL && container->container_def->process->apparmor_profile) # 4015|-> process->apparmor_profile = xstrdup (container->container_def->process->apparmor_profile); # 4016| # 4017| if (process->user == NULL && container->container_def->process->user) Error: GCC_ANALYZER_WARNING (CWE-1341): [#def229] crun-HEAD/src/libcrun/container.c:4041:27: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipefd0' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 4039| if (pid == 0) # 4040| { # 4041|-> TEMP_FAILURE_RETRY (close (pipefd0)); # 4042| pipefd0 = -1; # 4043| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def230] crun-HEAD/src/libcrun/container.c:4056:35: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipefd1' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' # 4054| TEMP_FAILURE_RETRY (write (pipefd1, &ret, sizeof (ret))); # 4055| TEMP_FAILURE_RETRY (write (pipefd1, msg, strlen (msg) + 1)); # 4056|-> TEMP_FAILURE_RETRY (close (pipefd1)); # 4057| pipefd1 = -1; # 4058| } Error: GCC_ANALYZER_WARNING (CWE-1341): [#def231] crun-HEAD/src/libcrun/container.c:4063:23: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipefd1' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 4061| } # 4062| # 4063|-> TEMP_FAILURE_RETRY (close (pipefd1)); # 4064| pipefd1 = -1; # 4065| Error: GCC_ANALYZER_WARNING (CWE-476): [#def232] crun-HEAD/src/libcrun/criu.c: scope_hint: In function 'restore_cgroup_v1_mount' crun-HEAD/src/libcrun/criu.c:369:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' /usr/include/features.h:540: included_from: Included from here. /usr/include/unistd.h:25: included_from: Included from here. # 367| subsystem = strchr (from, ':') + 1; # 368| subpath = strchr (subsystem, ':') + 1; # 369|-> *(subpath - 1) = '\0'; # 370| # 371| if (subsystem[0] == '\0') Error: GCC_ANALYZER_WARNING (CWE-476): [#def233] crun-HEAD/src/libcrun/criu.c:371:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 369| *(subpath - 1) = '\0'; # 370| # 371|-> if (subsystem[0] == '\0') # 372| continue; # 373| Error: GCC_ANALYZER_WARNING (CWE-476): [#def234] crun-HEAD/src/libcrun/criu.c: scope_hint: In function 'checkpoint_cgroup_v1_mount' crun-HEAD/src/libcrun/criu.c:439:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 437| subsystem = strchr (from, ':') + 1; # 438| subpath = strchr (subsystem, ':') + 1; # 439|-> *(subpath - 1) = '\0'; # 440| # 441| if (subsystem[0] == '\0') Error: GCC_ANALYZER_WARNING (CWE-476): [#def235] crun-HEAD/src/libcrun/criu.c:441:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 439| *(subpath - 1) = '\0'; # 440| # 441|-> if (subsystem[0] == '\0') # 442| continue; # 443| Error: GCC_ANALYZER_WARNING (CWE-835): [#def236] crun-HEAD/src/libcrun/ebpf.c: scope_hint: In function 'read_all_progs' crun-HEAD/src/libcrun/ebpf.c:294:18: warning[-Wanalyzer-infinite-loop]: infinite loop crun-HEAD/src/libcrun/ebpf.h:25: included_from: Included from here. # 292| ret = bpf (BPF_PROG_QUERY, &attr, sizeof (attr)); # 293| } # 294|-> while (ret < 0 && errno == ENOSPC) # 295| ; # 296| Error: COMPILER_WARNING (CWE-704): [#def237] crun-HEAD/src/libcrun/error.c: scope_hint: In function 'get_log_type' crun-HEAD/src/libcrun/error.c:192:15: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 190| get_log_type (const char *log, const char **data) # 191| { # 192|-> char *sep = strchr (log, ':'); # 193| if (sep == NULL) # 194| { Error: GCC_ANALYZER_WARNING (CWE-457): [#def238] 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")); Error: CPPCHECK_WARNING (CWE-457): [#def239] crun-HEAD/src/libcrun/linux.c:3988: error[uninitvar]: Uninitialized variable: code # 3986| if (UNLIKELY (ret < 0)) # 3987| return false; # 3988|-> *error = code; # 3989| } # 3990| Error: GCC_ANALYZER_WARNING (CWE-401): [#def240] crun-HEAD/src/libcrun/net_device.c: scope_hint: In function 'cleanup_ip_addrsp' crun-HEAD/src/libcrun/net_device.c:92:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' crun-HEAD/src/libcrun/net_device.c: scope_hint: In function 'cleanup_ip_addrsp' # 90| free (ip->rta); # 91| # 92|-> free (*pp); # 93| } # 94| Error: GCC_ANALYZER_WARNING (CWE-775): [#def241] crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'open_rundir_dirfd' crun-HEAD/src/libcrun/seccomp.c:471:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor '<unknown>' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 469| # 470| dirfd = TEMP_FAILURE_RETRY (open (dir, O_PATH | O_DIRECTORY | O_CLOEXEC)); # 471|-> if (UNLIKELY (dirfd < 0)) # 472| return crun_make_error (err, errno, "open `%s`", dir); # 473| Error: GCC_ANALYZER_WARNING (CWE-688): [#def242] crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'evict_cache' crun-HEAD/src/libcrun/seccomp.c:568:7: warning[-Wanalyzer-null-argument]: use of NULL 'entries' where non-null expected crun-HEAD/src/libcrun/seccomp.h:22: included_from: Included from here. /usr/include/stdlib.h:998:13: note: argument 1 of 'qsort' must be non-null # 566| } # 567| # 568|-> qsort (entries, n_entries, sizeof (struct cache_entry), compare_entries_by_atime); # 569| # 570| /* Attempt to delete half of them. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def243] crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache' crun-HEAD/src/libcrun/seccomp.c:597:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '**ctx.container.context' crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache' crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache' # 595| # 596| /* relative path to dirfd. */ # 597|-> ret = append_paths (&src_path, err, container->context->id, "seccomp.bpf", NULL); # 598| if (UNLIKELY (ret < 0)) # 599| return ret; Error: GCC_ANALYZER_WARNING (CWE-476): [#def244] crun-HEAD/src/libcrun/seccomp.c:597:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '*container.context' crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache' crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache' # 595| # 596| /* relative path to dirfd. */ # 597|-> ret = append_paths (&src_path, err, container->context->id, "seccomp.bpf", NULL); # 598| if (UNLIKELY (ret < 0)) # 599| return ret; Error: GCC_ANALYZER_WARNING (CWE-401): [#def245] crun-HEAD/src/libcrun/status.c: scope_hint: In function 'get_run_directory' crun-HEAD/src/libcrun/status.c:85:1: warning[-Wanalyzer-malloc-leak]: leak of 'root' crun-HEAD/src/libcrun/status.c: scope_hint: In function 'get_run_directory' # 83| # 84| return 0; # 85|-> } # 86| # 87| int Error: GCC_ANALYZER_WARNING (CWE-775): [#def246] crun-HEAD/src/libcrun/status.c: scope_hint: In function 'libcrun_container_delete_status' crun-HEAD/src/libcrun/status.c:607:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'rundir_dfd' crun-HEAD/src/libcrun/status.c:82:3: note: in expansion of macro 'STEAL_POINTER' crun-HEAD/src/libcrun/status.c: scope_hint: In function 'libcrun_container_delete_status' # 605| # 606| return 0; # 607|-> } # 608| # 609| void Error: COMPILER_WARNING (CWE-704): [#def247] crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'crun_safe_ensure_at' crun-HEAD/src/libcrun/utils.c:578:10: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 578 | it = strchr (cur, '/'); # | ^ # 576| cur = consume_slashes (it + 1); # 577| *it = '/'; # 578|-> it = strchr (cur, '/'); # 579| } # 580| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def248] crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_child' crun-HEAD/src/libcrun/utils.c:1671:23: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipe_w' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_child' # 1669| } # 1670| # 1671|-> TEMP_FAILURE_RETRY (close (pipe_w)); # 1672| dup2 (pipe_r, 0); # 1673| TEMP_FAILURE_RETRY (close (pipe_r)); Error: GCC_ANALYZER_WARNING (CWE-1341): [#def249] crun-HEAD/src/libcrun/utils.c:1684:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dev_null_fd' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_child' # 1682| # 1683| if (dev_null_fd >= 0) # 1684|-> TEMP_FAILURE_RETRY (close (dev_null_fd)); # 1685| if (out_fd >= 0) # 1686| TEMP_FAILURE_RETRY (close (out_fd)); Error: GCC_ANALYZER_WARNING (CWE-1341): [#def250] crun-HEAD/src/libcrun/utils.c:1686:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'out_fd' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_child' # 1684| TEMP_FAILURE_RETRY (close (dev_null_fd)); # 1685| if (out_fd >= 0) # 1686|-> TEMP_FAILURE_RETRY (close (out_fd)); # 1687| if (err_fd >= 0) # 1688| TEMP_FAILURE_RETRY (close (err_fd)); Error: GCC_ANALYZER_WARNING (CWE-775): [#def251] crun-HEAD/src/libcrun/utils.c:1816:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipe_r' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_with_stdin_timeout_envp' # 1814| } # 1815| return ret; # 1816|-> } # 1817| # 1818| int Error: GCC_ANALYZER_WARNING (CWE-775): [#def252] crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_with_stdin_timeout_envp' crun-HEAD/src/libcrun/utils.c:1816:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipe_w' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_with_stdin_timeout_envp' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'run_process_with_stdin_timeout_envp' # 1814| } # 1815| return ret; # 1816|-> } # 1817| # 1818| int Error: GCC_ANALYZER_WARNING (CWE-476): [#def253] crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'find_executable' crun-HEAD/src/libcrun/utils.c:2014:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'executable_path' /usr/include/features.h:540: included_from: Included from here. /usr/include/bits/libc-header-start.h:33: included_from: Included from here. /usr/include/stdio.h:28: included_from: Included from here. crun-HEAD/src/libcrun/utils.h:22: included_from: Included from here. # 2012| # 2013| /* Absolute path. It doesn't need to lookup $PATH. */ # 2014|-> if (executable_path[0] == '/') # 2015| { # 2016| ret = check_access (executable_path); Error: GCC_ANALYZER_WARNING (CWE-1341): [#def254] crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'copy_recursive_fd_to_fd' crun-HEAD/src/libcrun/utils.c:2212:27: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'srcdirfd' # 2210| if (UNLIKELY (dsrcfd == NULL)) # 2211| { # 2212|-> TEMP_FAILURE_RETRY (close (srcdirfd)); # 2213| return crun_make_error (err, errno, "open directory `%s`", destname); # 2214| } Error: GCC_ANALYZER_WARNING (CWE-1341): [#def255] crun-HEAD/src/libcrun/utils.c:2256:31: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'destfd' # 2254| #endif # 2255| # 2256|-> TEMP_FAILURE_RETRY (close (destfd)); # 2257| destfd = -1; # 2258| break; Error: GCC_ANALYZER_WARNING (CWE-688): [#def256] crun-HEAD/src/libcrun/utils.c:2291:17: warning[-Wanalyzer-null-argument]: use of NULL 'target_buf' where non-null expected /usr/include/unistd.h:847:12: note: argument 1 of 'symlinkat' must be non-null # 2289| return ret; # 2290| # 2291|-> ret = symlinkat (target_buf, destdirfd, de->d_name); # 2292| if (UNLIKELY (ret < 0)) # 2293| return crun_make_error (err, errno, "symlinkat `%s/%s`", destname, de->d_name); Error: GCC_ANALYZER_WARNING (CWE-688): [#def257] crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'read_file_as_long_or_default' crun-HEAD/src/libcrun/utils.c:2604:9: warning[-Wanalyzer-null-argument]: use of NULL 'content' where non-null expected /usr/include/stdlib.h:219:17: note: argument 1 of 'strtol' must be non-null # 2602| # 2603| errno = 0; # 2604|-> val = strtol (content, &endptr, 10); # 2605| if (UNLIKELY (errno)) # 2606| return def_value; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def258] crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'libcrun_open_proc_file' crun-HEAD/src/libcrun/utils.c:2905:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '<unknown>' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'libcrun_open_proc_file' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'libcrun_open_proc_file' # 2903| /* requires closing if not cached */ # 2904| if (! container) # 2905|-> TEMP_FAILURE_RETRY (close (proc_fd)); # 2906| # 2907| if (UNLIKELY (fd < 0)) Error: GCC_ANALYZER_WARNING (CWE-1341): [#def259] crun-HEAD/src/libcrun/utils.c:2905:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'libcrun_get_cached_proc_fd(container, err)' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'libcrun_open_proc_file' # 2903| /* requires closing if not cached */ # 2904| if (! container) # 2905|-> TEMP_FAILURE_RETRY (close (proc_fd)); # 2906| # 2907| if (UNLIKELY (fd < 0)) Error: GCC_ANALYZER_WARNING (CWE-401): [#def260] crun-HEAD/src/exec.c:30: included_from: Included from here. crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'make_oci_process_user' crun-HEAD/src/libcrun/utils.h:74:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc0(56)' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 72| { # 73| void *res = calloc (1, size); # 74|-> if (UNLIKELY (res == NULL)) # 75| OOM (); # 76| return res; Error: GCC_ANALYZER_WARNING (CWE-401): [#def261] crun-HEAD/src/libcrun/net_device.c:23: included_from: Included from here. crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'xrealloc' crun-HEAD/src/libcrun/utils.h:82:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' crun-HEAD/src/libcrun/utils.h:24: included_from: Included from here. crun-HEAD/src/libcrun/net_device.c: scope_hint: In function 'xrealloc' crun-HEAD/src/libcrun/net_device.c:30: included_from: Included from here. # 80| xrealloc (void *ptr, size_t size) # 81| { # 82|-> void *res = realloc (ptr, size); # 83| if (UNLIKELY (res == NULL)) # 84| OOM (); Error: GCC_ANALYZER_WARNING (CWE-415): [#def262] crun-HEAD/src/libcrun/utils.h:92:3: warning[-Wanalyzer-double-free]: double-'free' of 'progs' crun-HEAD/src/libcrun/ebpf.c: scope_hint: In function 'read_all_progs' # 90| { # 91| void **pp = (void **) p; # 92|-> free (*pp); # 93| } # 94| Error: GCC_ANALYZER_WARNING (CWE-415): [#def263] crun-HEAD/src/libcrun/utils.h:92:3: warning[-Wanalyzer-double-free]: double-'free' of 'tmp_buf' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'safe_readlinkat' crun-HEAD/src/libcrun/utils.h:24: included_from: Included from here. # 90| { # 91| void **pp = (void **) p; # 92|-> free (*pp); # 93| } # 94| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def264] crun-HEAD/src/libcrun/error.h:42: included_from: Included from here. crun-HEAD/src/libcrun/linux.h:23: included_from: Included from here. crun-HEAD/src/libcrun/intelrdt.c:22: included_from: Included from here. crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '*(void *)p' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def265] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '<unknown>' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def266] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'cfd' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/status.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/status.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def267] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'cgroup_dirfd' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def268] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'cgroup_fd' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def269] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'console_socket_fd' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def270] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'destdirfd' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def271] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'devfd' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def272] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd' crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def273] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_blkio' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-resources.c:299:16: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def274] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_cpu' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-resources.c:1052:16: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def275] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_cpuset' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def276] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_devs' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def277] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_htlb' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def278] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_mem' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-resources.c:928:16: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def279] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_netclass' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def280] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_netprio' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-resources.c:487:16: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def281] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dirfd_pid' crun-HEAD/src/libcrun/cgroup-resources.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def282] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd' /usr/include/features.h:540: included_from: Included from here. /usr/include/bits/libc-header-start.h:33: included_from: Included from here. /usr/include/stdio.h:28: included_from: Included from here. crun-HEAD/src/libcrun/linux.h:21: included_from: Included from here. crun-HEAD/src/libcrun/intelrdt.c:23: included_from: Included from here. crun-HEAD/src/libcrun/linux.h:24: included_from: Included from here. crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def283] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd_cleanup' crun-HEAD/src/libcrun/utils.h:24: included_from: Included from here. crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def284] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'memfd' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/seccomp.h:24: included_from: Included from here. crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def285] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'nfd' crun-HEAD/src/libcrun/cgroup-utils.c:660:12: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/cgroup-utils.c:660:12: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def286] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipe_r' crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def287] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipe_w' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def288] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'root_fd' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def289] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'rootfsfd_cleanup' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def290] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'sock' crun-HEAD/src/libcrun/net_device.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def291] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'sock_in_ns' crun-HEAD/src/libcrun/net_device.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/net_device.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def292] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'tasksfd' crun-HEAD/src/libcrun/cgroup-utils.c:660:12: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/cgroup-utils.c:660:12: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def293] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'wfd' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-775): [#def294] crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'libcrun_set_stdio' crun-HEAD/src/libcrun/utils.h:109:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'ret' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'libcrun_set_stdio' # 107| if (*pp >= 0) # 108| TEMP_FAILURE_RETRY (close (*pp)); # 109|-> } # 110| # 111| static inline void Error: GCC_ANALYZER_WARNING (CWE-1341): [#def295] crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'close_and_reset' crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '*fd' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def296] crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'memfd' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def297] crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'own_seccomp_receiver_fd' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'close_and_reset.part.0' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'close_and_reset.part.0' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'close_and_reset.part.0' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def298] crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipe_r' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def299] crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipe_w' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def300] crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'seccomp_fd' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def301] crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'seccomp_receiver_fd' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1; Error: GCC_ANALYZER_WARNING (CWE-1341): [#def302] crun-HEAD/src/libcrun/utils.h:213:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'terminal_fd' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'close_and_reset.part.0' crun-HEAD/src/libcrun/container.c: scope_hint: In function 'close_and_reset.part.0' crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY' # 211| if (*fd >= 0) # 212| { # 213|-> ret = TEMP_FAILURE_RETRY (close (*fd)); # 214| if (LIKELY (ret == 0)) # 215| *fd = -1;
| analyzer-version-clippy | 1.94.1 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-77.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | crun-1.27-1.20260415202830446152.pr2068.7.g670bc407 |
| store-results-to | /tmp/tmpqwmg48ia/crun-1.27-1.20260415202830446152.pr2068.7.g670bc407.tar.xz |
| time-created | 2026-04-15 20:41:58 |
| time-finished | 2026-04-15 20:44:47 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpqwmg48ia/crun-1.27-1.20260415202830446152.pr2068.7.g670bc407.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpqwmg48ia/crun-1.27-1.20260415202830446152.pr2068.7.g670bc407.src.rpm' |
| tool-version | csmock-3.8.5-1.el9 |