Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
crun-HEAD/src/spec.c: scope_hint: In function 'crun_command_spec'
crun-HEAD/src/spec.c:130:47: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(where, "w+e")'
#  128|       return libcrun_make_error (err, errno, "cannot open `%s`", where);
#  129|   
#  130|->   ret = libcrun_container_spec (! spec_options.rootless, f, err);
#  131|   
#  132|     return ret >= 0 ? 0 : ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
crun-HEAD/src/spec.c:130:47: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(where, "w+e")'
#  128|       return libcrun_make_error (err, errno, "cannot open `%s`", where);
#  129|   
#  130|->   ret = libcrun_container_spec (! spec_options.rootless, f, err);
#  131|   
#  132|     return ret >= 0 ? 0 : ret;

Scan Properties

analyzer-version-clippy1.93.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.93.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-185.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.26-1.20260131100148540480.pr1970.37.g864530fa
diffbase-store-results-to/tmp/tmpxahjm_ms/crun-1.26-1.20260131100148540480.pr1970.37.g864530fa.tar.xz
diffbase-time-created2026-01-31 10:19:49
diffbase-time-finished2026-01-31 10:28:37
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmpxahjm_ms/crun-1.26-1.20260131100148540480.pr1970.37.g864530fa.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpxahjm_ms/crun-1.26-1.20260131100148540480.pr1970.37.g864530fa.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-185.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.26-1.20260130100756532316.main.35.g342775a2
store-results-to/tmp/tmpkmd4vzi8/crun-1.26-1.20260130100756532316.main.35.g342775a2.tar.xz
time-created2026-01-31 10:10:12
time-finished2026-01-31 10:19:15
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmpkmd4vzi8/crun-1.26-1.20260130100756532316.main.35.g342775a2.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpkmd4vzi8/crun-1.26-1.20260130100756532316.main.35.g342775a2.src.rpm'
tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9