Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘path_contains_symlinks_atomic’
conmon-2.1.13/src/ctr_logging.c:796:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 2621440)’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
conmon-2.1.13/src/utils.h:10: included_from: Included from here.
conmon-2.1.13/src/ctr_logging.h:5: included_from: Included from here.
conmon-2.1.13/src/ctr_logging.c:2: included_from: Included from here.
conmon-2.1.13/src/ctr_logging.c:790:21: note: in expansion of macro ‘g_strdup’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘path_contains_symlinks_atomic’
#  794|   	/* Start from root if absolute path */
#  795|   	if (path_copy[0] == '/') {
#  796|-> 		current_fd = open("/", O_PATH | O_CLOEXEC);
#  797|   		if (current_fd < 0)
#  798|   			return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘secure_validate_log_path’
conmon-2.1.13/src/ctr_logging.c:971:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_path_get_dirname(path), 2621440)’
#  969|   
#  970|   	/* Open parent directory with O_PATH for safe operations */
#  971|-> 	parent_fd = open(parent_dir, O_PATH | O_CLOEXEC);
#  972|   	if (parent_fd < 0)
#  973|   		return -1;

Scan Properties

analyzer-version-clippy1.89.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.89.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.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-187.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameconmon-2.1.13-1.20250917095053396305.main.89.g2d1cccd
diffbase-store-results-to/tmp/tmpw0ohebc5/conmon-2.1.13-1.20250917095053396305.main.89.g2d1cccd.tar.xz
diffbase-time-created2025-09-18 12:09:20
diffbase-time-finished2025-09-18 12:11:04
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpw0ohebc5/conmon-2.1.13-1.20250917095053396305.main.89.g2d1cccd.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpw0ohebc5/conmon-2.1.13-1.20250917095053396305.main.89.g2d1cccd.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-187.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameconmon-2.1.13-1.20250918120109316932.pr596.91.gfc24955
store-results-to/tmp/tmpa9cd_2dy/conmon-2.1.13-1.20250918120109316932.pr596.91.gfc24955.tar.xz
time-created2025-09-18 12:11:23
time-finished2025-09-18 12:12:37
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpa9cd_2dy/conmon-2.1.13-1.20250918120109316932.pr596.91.gfc24955.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpa9cd_2dy/conmon-2.1.13-1.20250918120109316932.pr596.91.gfc24955.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9