Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
openscap-1.4.5/src/common/oscap_acquire.c: scope_hint: In function ‘oscap_acquire_temp_dir’
openscap-1.4.5/src/common/oscap_acquire.c:132:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘temp_dir’ where non-null expected
openscap-1.4.5/src/common/oscap_acquire.c: scope_hint: In function ‘oscap_acquire_temp_dir’
openscap-1.4.5/src/common/oscap_acquire.c:38: included_from: Included from here.
/usr/include/stdlib.h:892:14: note: argument 1 of ‘mkdtemp’ must be non-null
#  130|   		temp_dir = oscap_strdup(TEMP_DIR_TEMPLATE);
#  131|   	}
#  132|-> 	if (mkdtemp(temp_dir) == NULL) {
#  133|   		oscap_seterr(OSCAP_EFAMILY_GLIBC, "Could not create temp directory %s. %s", temp_dir, strerror(errno));
#  134|   		free(temp_dir);

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.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-54.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameopenscap-1.4.5-0.20260728113323895990.main.100.gf00427104
diffbase-store-results-to/tmp/tmp2hgg2p6m/openscap-1.4.5-0.20260728113323895990.main.100.gf00427104.tar.xz
diffbase-time-created2026-07-31 08:15:32
diffbase-time-finished2026-07-31 08:23:14
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp2hgg2p6m/openscap-1.4.5-0.20260728113323895990.main.100.gf00427104.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp2hgg2p6m/openscap-1.4.5-0.20260728113323895990.main.100.gf00427104.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-54.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameopenscap-1.4.5-0.20260731080653996959.pr2393.101.g9bcea1ba5
store-results-to/tmp/tmpc3_0uqsx/openscap-1.4.5-0.20260731080653996959.pr2393.101.g9bcea1ba5.tar.xz
time-created2026-07-31 08:23:48
time-finished2026-07-31 08:31:44
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpc3_0uqsx/openscap-1.4.5-0.20260731080653996959.pr2393.101.g9bcea1ba5.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpc3_0uqsx/openscap-1.4.5-0.20260731080653996959.pr2393.101.g9bcea1ba5.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9