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:729: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:723:21: note: in expansion of macro ‘g_strdup’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘path_contains_symlinks_atomic’
#  727|   	/* Start from root if absolute path */
#  728|   	if (path_copy[0] == '/') {
#  729|-> 		current_fd = open("/", O_PATH | O_CLOEXEC);
#  730|   		if (current_fd < 0)
#  731|   			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:910:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_path_get_dirname(path), 2621440)’
#  908|   
#  909|   	/* Open parent directory with O_PATH for safe operations */
#  910|-> 	parent_fd = open(parent_dir, O_PATH | O_CLOEXEC);
#  911|   	if (parent_fd < 0)
#  912|   		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-123.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.20250911080223366685.main.77.ge25af44
diffbase-store-results-to/tmp/tmpz5t0akwt/conmon-2.1.13-1.20250911080223366685.main.77.ge25af44.tar.xz
diffbase-time-created2025-09-15 14:20:48
diffbase-time-finished2025-09-15 14:22:26
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpz5t0akwt/conmon-2.1.13-1.20250911080223366685.main.77.ge25af44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpz5t0akwt/conmon-2.1.13-1.20250911080223366685.main.77.ge25af44.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-123.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.20250915140350547508.pr596.78.gde44c12
store-results-to/tmp/tmpx2sg7swt/conmon-2.1.13-1.20250915140350547508.pr596.78.gde44c12.tar.xz
time-created2025-09-15 14:22:51
time-finished2025-09-15 14:24:02
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpx2sg7swt/conmon-2.1.13-1.20250915140350547508.pr596.78.gde44c12.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpx2sg7swt/conmon-2.1.13-1.20250915140350547508.pr596.78.gde44c12.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9