Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c: scope_hint: In function ‘xiconf_add_cfile’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:495:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xiconf_read(path, 0)’
/usr/include/features.h:540: included_from: Included from here.
/usr/include/sys/types.h:25: included_from: Included from here.
openscap-1.4.5/compat/compat.h:62: included_from: Included from here.
openscap-1.4.5/redhat-linux-build/config.h:144: included_from: Included from here.
openscap-1.4.5/tests/probes/xinetd/test_probe_xinetd.c:3: included_from: Included from here.
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:41: included_from: Included from here.
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:871:25: note: in expansion of macro ‘tmpbuf_free’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:871:25: note: in expansion of macro ‘tmpbuf_free’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:53: included_from: Included from here.
openscap-1.4.5/src/common/debug_priv.h:54:33: note: in expansion of macro ‘__dlprintf_wrapper’
openscap-1.4.5/src/common/debug_priv.h:64:17: note: in expansion of macro ‘oscap_dlprintf’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:563:9: note: in expansion of macro ‘dD’
#  493|   	}
#  494|   
#  495|-> 	if ((st.st_mode & S_IFMT) != S_IFREG) {
#  496|   		dE("Not a regular file: %s", path);
#  497|   		close (fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c: scope_hint: In function ‘xiconf_add_cfile’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:566:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:871:25: note: in expansion of macro ‘tmpbuf_free’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:871:25: note: in expansion of macro ‘tmpbuf_free’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/common/debug_priv.h:54:33: note: in expansion of macro ‘__dlprintf_wrapper’
openscap-1.4.5/src/common/debug_priv.h:64:17: note: in expansion of macro ‘oscap_dlprintf’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:563:9: note: in expansion of macro ‘dD’
#  564|   	xifile = xiconf_read (path, 0);
#  565|   
#  566|-> 	if (xifile == NULL) {
#  567|   		dW("Failed to read file: %s", path);
#  568|   		return (-1);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def3]
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:41: included_from: Included from here.
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c: scope_hint: In function ‘xiconf_parse_section’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:938:36: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:656:34: note: in expansion of macro ‘tmpbuf_get’
#  936|   	 * at the end are allowed here.
#  937|   	 */
#  938|-> 	while(isspace(xifile->inmem[xifile->inoff]))
#  939|   		++xifile->inoff;
#  940|   	if (xifile->inmem[xifile->inoff] != '{')

Scan Properties

analyzer-version-clippy1.96.0
analyzer-version-cppcheck2.21.0
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.96.0
diffbase-analyzer-version-cppcheck2.21.0
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-49.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.20260612153003619487.main.75.gd94494148
diffbase-store-results-to/tmp/tmpv3elv2by/openscap-1.4.5-0.20260612153003619487.main.75.gd94494148.tar.xz
diffbase-time-created2026-06-12 18:26:29
diffbase-time-finished2026-06-12 18:34:51
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpv3elv2by/openscap-1.4.5-0.20260612153003619487.main.75.gd94494148.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpv3elv2by/openscap-1.4.5-0.20260612153003619487.main.75.gd94494148.src.rpm'
diffbase-tool-versioncsmock-3.8.6.20260603.095741.gbb48252-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-49.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.20260612181445294709.pr2371.77.g71434563d
store-results-to/tmp/tmpj6nqo1ys/openscap-1.4.5-0.20260612181445294709.pr2371.77.g71434563d.tar.xz
time-created2026-06-12 18:35:13
time-finished2026-06-12 18:42:26
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpj6nqo1ys/openscap-1.4.5-0.20260612181445294709.pr2371.77.g71434563d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpj6nqo1ys/openscap-1.4.5-0.20260612181445294709.pr2371.77.g71434563d.src.rpm'
tool-versioncsmock-3.8.6.20260603.095741.gbb48252-1.el9