Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-401): [#def1]
crun-1.18.2-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3872: error[memleak]: Memory leak: ret
# 3870|           ret->domainname = strdup (src->domainname);
# 3871|           if (ret->domainname == NULL)
# 3872|->           return NULL;
# 3873|         }
# 3874|       if (src->mounts)

Error: CPPCHECK_WARNING (CWE-401): [#def2]
crun-1.18.2-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.c:3879: error[memleak]: Memory leak: ret
# 3877|           ret->mounts = calloc (src->mounts_len + 1, sizeof (*ret->mounts));
# 3878|           if (ret->mounts == NULL)
# 3879|->           return NULL;
# 3880|           for (size_t i = 0; i < src->mounts_len; i++)
# 3881|             {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cpuset_string_to_bitmask'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h:80:21: warning[-Wanalyzer-malloc-leak]: leak of 'xrealloc(mask,  new_mask_size)'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
#   78|   {
#   79|     void *res = realloc (ptr, size);
#   80|->   if (UNLIKELY (res == NULL))
#   81|       OOM ();
#   82|     return res;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def4]
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h:89:3: warning[-Wanalyzer-double-free]: double-'free' of 'mask'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'cpuset_string_to_bitmask'
#   87|   {
#   88|     void **pp = (void **) p;
#   89|->   free (*pp);
#   90|   }
#   91|   

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer14.2.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer14.2.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-98.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.18.2-1.20241119134206105993.main.8.g2b3faef
diffbase-store-results-to/tmp/tmphvtv65us/crun-1.18.2-1.20241119134206105993.main.8.g2b3faef.tar.xz
diffbase-time-created2024-11-25 13:58:36
diffbase-time-finished2024-11-25 14:04:35
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmphvtv65us/crun-1.18.2-1.20241119134206105993.main.8.g2b3faef.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmphvtv65us/crun-1.18.2-1.20241119134206105993.main.8.g2b3faef.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-98.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namecrun-1.18.2-1.20241125135143926948.pr1607.16.gfd69065
store-results-to/tmp/tmpeghhk0ln/crun-1.18.2-1.20241125135143926948.pr1607.16.gfd69065.tar.xz
time-created2024-11-25 14:05:05
time-finished2024-11-25 14:10:32
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpeghhk0ln/crun-1.18.2-1.20241125135143926948.pr1607.16.gfd69065.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpeghhk0ln/crun-1.18.2-1.20241125135143926948.pr1607.16.gfd69065.src.rpm'
tool-versioncsmock-3.8.0-1.el9