Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
crun-1.20-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'libcrun_container_add_or_remove_mounts_from_file'
crun-1.20-build/crun-HEAD/src/libcrun/utils.h:74:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc0((n_mounts + 1) * 8)'
crun-1.20-build/crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-1.20-build/crun-HEAD/src/libcrun/container.h:24: included_from: Included from here.
crun-1.20-build/crun-HEAD/src/libcrun/container.c:23: included_from: Included from here.
crun-1.20-build/crun-HEAD/src/libcrun/container.c:582:7: note: in expansion of macro 'crun_make_error'
crun-1.20-build/crun-HEAD/src/libcrun/container.c:1622:12: note: in expansion of macro 'crun_make_error'
crun-1.20-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9: included_from: Included from here.
crun-1.20-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7: included_from: Included from here.
crun-1.20-build/crun-HEAD/src/libcrun/container.c:21: included_from: Included from here.
crun-1.20-build/crun-HEAD/src/libcrun/container.c:4703:9: note: in expansion of macro 'YAJL_IS_ARRAY'
crun-1.20-build/crun-HEAD/src/libcrun/container.c:4707:16: note: in expansion of macro 'YAJL_GET_ARRAY'
crun-1.20-build/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;

Scan Properties

analyzer-version-clippy1.85.1
analyzer-version-cppcheck2.17 dev
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.85.1
diffbase-analyzer-version-cppcheck2.17 dev
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-244.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.20-1.20250321134639313557.main.67.g1245daab
diffbase-store-results-to/tmp/tmpa4y09pm_/crun-1.20-1.20250321134639313557.main.67.g1245daab.tar.xz
diffbase-time-created2025-03-21 23:25:45
diffbase-time-finished2025-03-21 23:30:42
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,clippy,gcc,cppcheck' '-o' '/tmp/tmpa4y09pm_/crun-1.20-1.20250321134639313557.main.67.g1245daab.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpa4y09pm_/crun-1.20-1.20250321134639313557.main.67.g1245daab.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-244.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namecrun-1.20-1.20250321232228208623.pr1699.73.g188e2068
store-results-to/tmp/tmp12f8xmv5/crun-1.20-1.20250321232228208623.pr1699.73.g188e2068.tar.xz
time-created2025-03-21 23:31:14
time-finished2025-03-21 23:35:46
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,clippy,gcc,cppcheck' '-o' '/tmp/tmp12f8xmv5/crun-1.20-1.20250321232228208623.pr1699.73.g188e2068.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp12f8xmv5/crun-1.20-1.20250321232228208623.pr1699.73.g188e2068.src.rpm'
tool-versioncsmock-3.8.0-1.el9