conmon-2.1.13-1.20260202095438222298.pr628.126.gef95cee
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
conmon-2.1.13/src/close_fds.c: scope_hint: In function ‘init’
conmon-2.1.13/src/close_fds.c:44:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc/self/fd")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
conmon-2.1.13/src/close_fds.c: scope_hint: In function ‘close_all_fds_ge_than’
conmon-2.1.13/src/close_fds.c:98:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc/self/fd")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
conmon-2.1.13/src/cmsg.c: scope_hint: In function ‘recvfd’
conmon-2.1.13/src/cmsg.c:135:23: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(4096)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘disconnect_std_streams’
conmon-2.1.13/src/conmon.c:29:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(dev_null_r, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
conmon-2.1.13/src/conmon.c:31:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(dev_null_w, 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
conmon-2.1.13/src/conmon.c:33:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(dev_null_w, 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
conmon-2.1.13/src/conmon.c:244:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(workerfd_stdin, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
conmon-2.1.13/src/conmon.c:251:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(workerfd_stdout, 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
conmon-2.1.13/src/conmon.c:256:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(workerfd_stderr, 2)’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def10]
conmon-2.1.13/src/conmon.c:285:44: warning[-Wanalyzer-fd-use-after-close]: ‘read’ on closed file descriptor ‘get_pipe_fd_from_env("_OCI_STARTPIPE")’
conmon-2.1.13/src/conmon.c:284:33: note: in expansion of macro ‘ndebug’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def11]
conmon-2.1.13/src/conmon.c:290:33: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘get_pipe_fd_from_env("_OCI_STARTPIPE")’
conmon-2.1.13/src/conmon.c:284:33: note: in expansion of macro ‘ndebug’
conmon-2.1.13/src/conmon.c:289:33: note: in expansion of macro ‘ndebug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
conmon-2.1.13/src/conn_sock.c:215:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*fd’
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘setup_socket’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘bind_unix_socket’
conmon-2.1.13/src/conn_sock.c:277:45: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘socket_parent_dir(use_full_attach_path, 108)’ where non-null expected
/usr/include/glib-2.0/glib-unix.h:34: included_from: Included from here.
conmon-2.1.13/src/utils.h:11: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of ‘open’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
conmon-2.1.13/src/conn_sock.c:320:24: warning[-Wanalyzer-malloc-leak]: leak of ‘socket_parent_dir(use_full_attach_path, 108)’
conmon-2.1.13/src/conn_sock.c:279:17: note: in expansion of macro ‘pexitf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘attach_cb’
conmon-2.1.13/src/conn_sock.c:393:17: warning[-Wanalyzer-malloc-leak]: leak of ‘remote_sock’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘init_remote_sock’
conmon-2.1.13/src/conn_sock.c:612:17: warning[-Wanalyzer-malloc-leak]: leak of ‘remote_sock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
conmon-2.1.13/src/ctrl.c:269:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dummyfd’
conmon-2.1.13/src/ctrl.c: scope_hint: In function ‘setup_terminal_control_fifo’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
conmon-2.1.13/src/oom.c:28:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/oom_score_adj", 524290)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
conmon-2.1.13/src/oom.c:31:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/oom_score_adj", 524290)’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def20]
conmon-2.1.13/src/runtime_args.c: scope_hint: In function ‘add_argv’
conmon-2.1.13/src/runtime_args.c:121:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
conmon-2.1.13/src/utils.h:68:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(process_cgroup_subsystem_path(pid, 0, "memory"), "cgroup.event_control", 0), 524289)’
conmon-2.1.13/src/cgroup.c:167:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
conmon-2.1.13/src/cgroup.c:167:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/cgroup.c:167:17: note: in expansion of macro ‘pexit’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘setup_socket’
conmon-2.1.13/src/utils.h:68:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(path)’
conmon-2.1.13/src/conn_sock.c:177:25: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/conn_sock.c:177:25: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/conn_sock.c:177:25: note: in expansion of macro ‘pexit’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
conmon-2.1.13/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
conmon-2.1.13/src/utils.h:80:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(process_cgroup_subsystem_path(pid, 0, "memory"), "cgroup.event_control", 0), 524289)’
conmon-2.1.13/src/cgroup.c:164:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
/usr/include/glib-2.0/glib/gtestutils.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
conmon-2.1.13/src/cgroup.c:164:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/cgroup.c:164:17: note: in expansion of macro ‘pexitf’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
conmon-2.1.13/src/utils.h:80:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(socket_parent_dir(use_full_attach_path, 108), 2621440)’
conmon-2.1.13/src/conn_sock.c:294:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c:294:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c:294:17: note: in expansion of macro ‘pexitf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
conmon-2.1.13/src/utils.h:80:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(path)’
conmon-2.1.13/src/conn_sock.c:182:25: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c:182:25: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c:182:25: note: in expansion of macro ‘pexitf’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
conmon-2.1.13/src/oom.c: scope_hint: In function ‘write_oom_adjust’
conmon-2.1.13/src/utils.h:176:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/oom_score_adj", 524290)’
conmon-2.1.13/src/oom.c:23:25: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/oom.c:23:25: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/oom.c:23:25: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/oom.c:23:25: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/oom.c:23:25: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/oom.c:23:25: note: in expansion of macro ‘ndebugf’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
conmon-2.1.13/src/ctrl.c:4: included_from: Included from here.
conmon-2.1.13/src/ctrl.c: scope_hint: In function ‘setup_terminal_control_fifo’
conmon-2.1.13/src/utils.h:180:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dummyfd’
conmon-2.1.13/src/ctrl.c:268:9: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/ctrl.c: scope_hint: In function ‘setup_terminal_control_fifo’
conmon-2.1.13/src/ctrl.c:268:9: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/ctrl.c:268:9: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/ctrl.c:268:9: note: in expansion of macro ‘ndebugf’
conmon-2.1.13/src/ctrl.c:268:9: note: in expansion of macro ‘ndebugf’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket_fd’
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘bind_unix_socket’
conmon-2.1.13/src/conn_sock.c:297:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c:297:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c:297:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c:297:17: note: in expansion of macro ‘pexitf’
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘bind_unix_socket’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def29]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘shift_backup_files’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def30]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘attach_symlink_dir_path’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def31]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘basename’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘secure_validate_log_path’
/usr/include/features.h:540: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdio.h:28: included_from: Included from here.
conmon-2.1.13/src/utils.h:5: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
conmon-2.1.13/src/seccomp_notify.c: scope_hint: In function ‘seccomp_notify_plugins_load’
conmon-2.1.13/src/seccomp_notify.c:8: included_from: Included from here.
conmon-2.1.13/src/seccomp_notify.c:117:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/seccomp_notify.c:117:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/seccomp_notify.c:117:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/seccomp_notify.c:117:17: note: in expansion of macro ‘pexit’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘csname’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def34]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘expected_canonical’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘validate_fd_path_security’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def35]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘json’
conmon-2.1.13/src/parent_pipe_fd.c: scope_hint: In function ‘write_or_close_sync_fd’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def36]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path_copy’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘path_contains_symlinks_atomic’
/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.c:810:21: note: in expansion of macro ‘g_strdup’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘path_contains_symlinks_atomic’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def37]
conmon-2.1.13/src/utils.h:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘temp_basename’
conmon-2.1.13/src/ctr_logging.c: scope_hint: In function ‘setup_rotation_files’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
conmon-2.1.13/src/utils.h:216:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(process_cgroup_subsystem_path(pid, 0, "memory"), "cgroup.event_control", 0), 524289)’
conmon-2.1.13/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
/usr/include/features.h:540: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/limits.h:26: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:210: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/syslimits.h:9: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:34: included_from: Included from here.
/usr/lib64/glib-2.0/include/glibconfig.h:11: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
conmon-2.1.13/src/cgroup.h:4: included_from: Included from here.
conmon-2.1.13/src/cgroup.c:3: included_from: Included from here.
conmon-2.1.13/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
conmon-2.1.13/src/utils.h:216:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dev_null_r_cleanup’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def40]
conmon-2.1.13/src/utils.h:216:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dev_null_w_cleanup’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
conmon-2.1.13/src/utils.h:216:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sfd’
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘setup_socket’
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘setup_socket’
/usr/include/glib-2.0/glib/gtestutils.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
conmon-2.1.13/src/conn_sock.h:4: included_from: Included from here.
conmon-2.1.13/src/conn_sock.c:3: included_from: Included from here.
conmon-2.1.13/src/conn_sock.c:213:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/conn_sock.c:213:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/conn_sock.c:213:17: note: in expansion of macro ‘pexit’
conmon-2.1.13/src/conn_sock.c:213:17: note: in expansion of macro ‘pexit’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
conmon-2.1.13/src/utils.h:217:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(process_cgroup_subsystem_path(pid, 0, "memory"), "cgroup.event_control", 0), 524289)’
conmon-2.1.13/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
conmon-2.1.13/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
conmon-2.1.13/src/utils.h:217:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(socket_parent_dir(use_full_attach_path, 108), 2621440)’
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘bind_unix_socket’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
conmon-2.1.13/src/utils.h:217:17: warning[-Wanalyzer-malloc-leak]: leak of ‘csname’
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘setup_socket’
conmon-2.1.13/src/conn_sock.c:10: included_from: Included from here.
conmon-2.1.13/src/conn_sock.c: scope_hint: In function ‘setup_socket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
conmon-2.1.13/src/utils.h:237:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘workerfd_stderr’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
conmon-2.1.13/src/conmon.c: scope_hint: In function ‘main’
Scan Properties
| analyzer-version-clippy | 1.93.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-101.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | conmon-2.1.13-1.20260202095438222298.pr628.126.gef95cee |
| store-results-to | /tmp/tmpimapgm_a/conmon-2.1.13-1.20260202095438222298.pr628.126.gef95cee.tar.xz |
| time-created | 2026-02-02 10:19:07 |
| time-finished | 2026-02-02 10:20:39 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmpimapgm_a/conmon-2.1.13-1.20260202095438222298.pr628.126.gef95cee.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpimapgm_a/conmon-2.1.13-1.20260202095438222298.pr628.126.gef95cee.src.rpm' |
| tool-version | csmock-3.8.3.20260128.181932.g41af877-1.el9 |