Task #103731 - added.err

back to task #103731
download
Error: GCC_ANALYZER_WARNING (CWE-401):
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c: scope_hint: In function 'make_runtime_spec_schema_config_vm_image'
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:508:11: 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_vm.h:7: included_from: Included from here.
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:8: included_from: Included from here.
crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING'
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:516:25: note: in expansion of macro 'YAJL_GET_STRING'
crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING'
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:528:25: note: in expansion of macro 'YAJL_GET_STRING'
#  506|       if (tree == NULL)
#  507|         return NULL;
#  508|->     ret = calloc (1, sizeof (*ret));
#  509|       if (ret == NULL)
#  510|         return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401):
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:508:11: warning[-Wanalyzer-malloc-leak]: leak of 'resi'
crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING'
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:516:25: note: in expansion of macro 'YAJL_GET_STRING'
crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING'
crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_vm.c:528:25: note: in expansion of macro 'YAJL_GET_STRING'
#  506|       if (tree == NULL)
#  507|         return NULL;
#  508|->     ret = calloc (1, sizeof (*ret));
#  509|       if (ret == NULL)
#  510|         return NULL;

Error: COMPILER_WARNING (CWE-563):
crun-HEAD/src/libcrun/handlers/krun.c: scope_hint: In function 'libkrun_exec'
crun-HEAD/src/libcrun/handlers/krun.c:409:13: warning[-Wunused-variable]: unused variable 'krun_set_vm_config'
#  409 |   int32_t (*krun_set_vm_config) (uint32_t ctx_id, uint8_t num_vcpus, uint32_t ram_mib);
#      |             ^~~~~~~~~~~~~~~~~~
#  407|     int32_t (*krun_set_log_level) (uint32_t level);
#  408|     int (*krun_start_enter) (uint32_t ctx_id);
#  409|->   int32_t (*krun_set_vm_config) (uint32_t ctx_id, uint8_t num_vcpus, uint32_t ram_mib);
#  410|     int32_t (*krun_set_root) (uint32_t ctx_id, const char *root_path);
#  411|     int32_t (*krun_set_root_disk) (uint32_t ctx_id, const char *disk_path);