openssh-9.9p1-5.fc42
List of Findings
Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/gnome-ssh-askpass.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: GCC_ANALYZER_WARNING: [#def2]
openssh-9.9p1-build/openssh-9.9p1/addr.c: scope_hint: In function ‘addr_or’
openssh-9.9p1-build/openssh-9.9p1/addr.c:239:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
openssh-9.9p1-build/openssh-9.9p1/addr.c:27: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
openssh-9.9p1-build/openssh-9.9p1/auth-krb5.c: scope_hint: In function ‘krb5_cleanup_proc’
openssh-9.9p1-build/openssh-9.9p1/auth-krb5.c:268:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
openssh-9.9p1-build/openssh-9.9p1/auth-krb5.c: scope_hint: In function ‘ssh_krb5_expand_template’
openssh-9.9p1-build/openssh-9.9p1/auth-krb5.c:360:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
openssh-9.9p1-build/openssh-9.9p1/auth-pam.c: scope_hint: In function ‘sshpam_respond’
openssh-9.9p1-build/openssh-9.9p1/auth-pam.c:979:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fake_password(*resp)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
openssh-9.9p1-build/openssh-9.9p1/auth2-chall.c: scope_hint: In function ‘input_userauth_info_response’
openssh-9.9p1-build/openssh-9.9p1/auth2-chall.c:328:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘response’
Error: CPPCHECK_WARNING (CWE-457): [#def7]
openssh-9.9p1-build/openssh-9.9p1/channels.c:5081: warning[uninitvar]: Uninitialized variable: port
Error: COMPILER_WARNING (CWE-195): [#def8]
openssh-9.9p1-build/openssh-9.9p1/channels.c: scope_hint: In function ‘connect_local_xsocket_path’
openssh-9.9p1-build/openssh-9.9p1/channels.c:5128:17: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING: [#def9]
openssh-9.9p1-build/openssh-9.9p1/includes.h:19: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/userauth_pubkey_from_pam.c:36: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/config.h:1934:9: warning: "SUPERUSER_PATH" redefined
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/userauth_pubkey_from_pam.c:35: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/defines.h:337:10: note: this is the location of the previous definition
Error: COMPILER_WARNING: [#def10]
openssh-9.9p1-build/openssh-9.9p1/includes.h:19: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/userauth_pubkey_from_pam.c:36: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/config.h:1934:9: warning: ‘SUPERUSER_PATH’ redefined
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/userauth_pubkey_from_pam.c:35: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/defines.h:337:10: note: this is the location of the previous definition
Error: COMPILER_WARNING (CWE-563): [#def11]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:136:21: warning[-Wunused-variable]: unused variable ‘failed’
Error: COMPILER_WARNING (CWE-477): [#def12]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c: scope_hint: In function ‘passphrase_dialog’
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:184:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead
/usr/include/gtk-3.0/gtk/gtk.h:277: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:61: included_from: Included from here.
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:749:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def13]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:186:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_modify_bg’ is deprecated: Use 'gtk_widget_override_background_color' instead
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:753:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def14]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:191:25: warning[-Wdeprecated-declarations]: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:749:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def15]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:193:25: warning[-Wdeprecated-declarations]: ‘gtk_widget_modify_bg’ is deprecated: Use 'gtk_widget_override_background_color' instead
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:753:13: note: declared here
Error: COMPILER_WARNING (CWE-457): [#def16]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:243:39: warning[-Wmaybe-uninitialized]: ‘entry’ may be used uninitialized
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c: scope_hint: In function ‘main’
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:140:45: note: ‘entry’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def17]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:246:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/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.
/usr/include/gtk-3.0/gdk/gdkconfig.h:8: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:243:30: note: in expansion of macro ‘g_strdup’
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c: scope_hint: In function ‘passphrase_dialog’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def18]
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:256:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c:243:30: note: in expansion of macro ‘g_strdup’
openssh-9.9p1-build/openssh-9.9p1/contrib/gnome-ssh-askpass3.c: scope_hint: In function ‘passphrase_dialog’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: COMPILER_WARNING: [#def19]
openssh-9.9p1-build/openssh-9.9p1/gss-genr.c: scope_hint: In function ‘ssh_gssapi_kex_mechs’
openssh-9.9p1-build/openssh-9.9p1/gss-genr.c:172:30: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
openssh-9.9p1-build/openssh-9.9p1/gss-genr.c:172:30: note: length computed here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def20]
openssh-9.9p1-build/openssh-9.9p1/kex.c: scope_hint: In function ‘kex_derive_keys’
openssh-9.9p1-build/openssh-9.9p1/kex.c:1304:51: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘keys[<unknown>]’
openssh-9.9p1-build/openssh-9.9p1/kex.c:63: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/kex.c:1155:19: note: in expansion of macro ‘ROUNDUP’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
openssh-9.9p1-build/openssh-9.9p1/kexecdh.c: scope_hint: In function ‘kex_ecdh_dec_key_group’
openssh-9.9p1-build/openssh-9.9p1/kexecdh.c:273:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘publen’
Error: COMPILER_WARNING (CWE-195): [#def22]
openssh-9.9p1-build/openssh-9.9p1/kexgssc.c: scope_hint: In function ‘input_kexgssgex_group’
openssh-9.9p1-build/openssh-9.9p1/kexgssc.c:618:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘u_int’ {aka ‘unsigned int’}
Error: COMPILER_WARNING (CWE-195): [#def23]
openssh-9.9p1-build/openssh-9.9p1/kexgssc.c:618:57: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘u_int’ {aka ‘unsigned int’}
Error: COMPILER_WARNING: [#def24]
openssh-9.9p1-build/openssh-9.9p1/log.c: scope_hint: In function ‘do_log’
openssh-9.9p1-build/openssh-9.9p1/log.c:402:53: warning[-Wformat-truncation=]: ‘: ’ directive output may be truncated writing 2 bytes into a region of size between 1 and 1024
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 3 or more bytes (assuming 1026) into a destination of size 1024
Error: COMPILER_WARNING: [#def25]
openssh-9.9p1-build/openssh-9.9p1/log.c: scope_hint: In function ‘do_log’
openssh-9.9p1-build/openssh-9.9p1/log.c:414:58: warning: ‘
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 3 and 1026 bytes into a destination of size 1024
Error: COMPILER_WARNING: [#def26]
openssh-9.9p1-build/openssh-9.9p1/misc.c: scope_hint: In function ‘fmt_timeframe’
openssh-9.9p1-build/openssh-9.9p1/misc.c:691:40: warning[-Wformat-truncation=]: ‘%02llu’ directive output may be truncated writing between 2 and 14 bytes into a region of size 9
openssh-9.9p1-build/openssh-9.9p1/misc.c:691:39: note: directive argument in the range [1, 30500568904943]
openssh-9.9p1-build/openssh-9.9p1/misc.c:691:39: note: directive argument in the range [0, 6]
openssh-9.9p1-build/openssh-9.9p1/misc.c:691:39: note: directive argument in the range [0, 23]
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 9 and 21 bytes into a destination of size 9
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
openssh-9.9p1-build/openssh-9.9p1/misc.c: scope_hint: In function ‘sanitise_stdfd’
openssh-9.9p1-build/openssh-9.9p1/misc.c:1530:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), dupfd)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
openssh-9.9p1-build/openssh-9.9p1/misc.c:1530:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
openssh-9.9p1-build/openssh-9.9p1/misc.c:1536:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
openssh-9.9p1-build/openssh-9.9p1/misc.c:1540:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dupfd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
openssh-9.9p1-build/openssh-9.9p1/misc.c: scope_hint: In function ‘stdfd_devnull’
openssh-9.9p1-build/openssh-9.9p1/misc.c:2724:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2725:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2726:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2730:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
openssh-9.9p1-build/openssh-9.9p1/misc.c: scope_hint: In function ‘subprocess’
openssh-9.9p1-build/openssh-9.9p1/misc.c:2762:24: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
openssh-9.9p1-build/openssh-9.9p1/misc.c:74: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/misc.c:2913:9: note: in expansion of macro ‘debug3_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2843:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2843:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2850:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2852:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2854:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
openssh-9.9p1-build/openssh-9.9p1/misc.c:2877:66: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(0, 2)’
Error: COMPILER_WARNING (CWE-9001): [#def42]
openssh-9.9p1-build/openssh-9.9p1/ssh-keycat.c:57: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/misc.h:156:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def43]
openssh-9.9p1-build/openssh-9.9p1/misc.h:158:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def44]
openssh-9.9p1-build/openssh-9.9p1/misc.h:160:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def45]
openssh-9.9p1-build/openssh-9.9p1/misc.h:162:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def46]
openssh-9.9p1-build/openssh-9.9p1/misc.h:164:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def47]
openssh-9.9p1-build/openssh-9.9p1/misc.h:166:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def48]
openssh-9.9p1-build/openssh-9.9p1/misc.h:170:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def49]
openssh-9.9p1-build/openssh-9.9p1/misc.h:172:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-704): [#def50]
openssh-9.9p1-build/openssh-9.9p1/monitor.c: scope_hint: In function ‘mm_answer_sign’
openssh-9.9p1-build/openssh-9.9p1/monitor.c:732:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def51]
openssh-9.9p1-build/openssh-9.9p1/monitor.c:743:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-195): [#def52]
openssh-9.9p1-build/openssh-9.9p1/monitor.c: scope_hint: In function ‘mm_answer_keyverify’
openssh-9.9p1-build/openssh-9.9p1/monitor.c:1531:18: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘u_int’ {aka ‘unsigned int’}
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
openssh-9.9p1-build/openssh-9.9p1/monitor.c: scope_hint: In function ‘mm_answer_pty’
openssh-9.9p1-build/openssh-9.9p1/monitor.c:1701:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*<unknown>.ttyfd, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
openssh-9.9p1-build/openssh-9.9p1/monitor.c:1723:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
openssh-9.9p1-build/openssh-9.9p1/monitor_wrap.c: scope_hint: In function ‘mm_pty_allocate’
openssh-9.9p1-build/openssh-9.9p1/monitor_wrap.c:674:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmp1’
openssh-9.9p1-build/openssh-9.9p1/monitor_wrap.c:63: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/monitor_wrap.c:671:17: note: in expansion of macro ‘error_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/glob.c: scope_hint: In function ‘globextend’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/glob.c:835:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pathv’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/glob.c:847:31: warning[-Wanalyzer-malloc-leak]: leak of ‘statv’
openssh-9.9p1-build/openssh-9.9p1/includes.h:154: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/glob.c:61: included_from: Included from here.
Error: COMPILER_WARNING (CWE-477): [#def58]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:68:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def59]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:69:24: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def60]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:115:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def61]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:142:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def62]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘get_user_context’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:180:17: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def63]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:181:17: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def64]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: At top level
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:240:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def65]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:241:5: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def66]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘sshd_selinux_getctxbyname’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:272:25: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def67]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:293:33: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def68]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘sshd_selinux_setup_exec_context’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:386:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def69]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:388:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def70]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘sshd_selinux_copy_context’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux-sshd.c:461:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-1164): [#def71]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/port-linux.c:68:1: warning[-Wunused-function]: ‘ssh_selinux_getctxbyname’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/readpassphrase.c: scope_hint: In function ‘readpassphrase’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/readpassphrase.c:94:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 2)’
Error: COMPILER_WARNING: [#def73]
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/vis.c: scope_hint: In function ‘stravis’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/vis.c:229:23: warning[-Wuse-after-free]: pointer ‘buf_15’ may be used after ‘realloc’
openssh-9.9p1-build/openssh-9.9p1/openbsd-compat/vis.c:227:17: note: call to ‘realloc’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:244:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:219:5: note: in expansion of macro ‘debug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c: scope_hint: In function ‘pamsshagentauth_user_key_command_allowed2’
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:244:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:49: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:219:5: note: in expansion of macro ‘debug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:244:46: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(p[1], 1)’
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:219:5: note: in expansion of macro ‘debug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:244:49: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:219:5: note: in expansion of macro ‘debug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:245:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:219:5: note: in expansion of macro ‘debug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:245:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1-build/openssh-9.9p1/pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4/pam_user_key_allowed2.c:219:5: note: in expansion of macro ‘debug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
openssh-9.9p1-build/openssh-9.9p1/readconf.c: scope_hint: In function ‘read_config_file_depth’
openssh-9.9p1-build/openssh-9.9p1/readconf.c:2543:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
openssh-9.9p1-build/openssh-9.9p1/readconf.c:2543:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
openssh-9.9p1-build/openssh-9.9p1/readpass.c: scope_hint: In function ‘ssh_askpass’
openssh-9.9p1-build/openssh-9.9p1/readpass.c:76:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(p[1], 1)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
openssh-9.9p1-build/openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c: scope_hint: In function ‘sk_enroll’
openssh-9.9p1-build/openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def84]
openssh-9.9p1-build/openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:280:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*response.public_key’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
openssh-9.9p1-build/openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c: scope_hint: In function ‘sk_sign’
openssh-9.9p1-build/openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:523:24: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
openssh-9.9p1-build/openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:503:9: note: in expansion of macro ‘SHA256Init’
Error: COMPILER_WARNING: [#def86]
openssh-9.9p1-build/openssh-9.9p1/scp.c: scope_hint: In function ‘rsource’
openssh-9.9p1-build/openssh-9.9p1/scp.c:1555:56: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 2 and 4095
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 2 and 4350 bytes into a destination of size 4096
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
openssh-9.9p1-build/openssh-9.9p1/session.c: scope_hint: In function ‘do_exec_no_pty’
openssh-9.9p1-build/openssh-9.9p1/session.c:489:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pin[0], 0)’
openssh-9.9p1-build/openssh-9.9p1/session.c:86: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/session.c:2309:9: note: in expansion of macro ‘debug_f’
openssh-9.9p1-build/openssh-9.9p1/session.c:757:9: note: in expansion of macro ‘verbose’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
openssh-9.9p1-build/openssh-9.9p1/session.c:495:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pout[1], 1)’
openssh-9.9p1-build/openssh-9.9p1/session.c:2309:9: note: in expansion of macro ‘debug_f’
openssh-9.9p1-build/openssh-9.9p1/session.c:757:9: note: in expansion of macro ‘verbose’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
openssh-9.9p1-build/openssh-9.9p1/session.c:501:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(perr[1], 2)’
openssh-9.9p1-build/openssh-9.9p1/session.c:2309:9: note: in expansion of macro ‘debug_f’
openssh-9.9p1-build/openssh-9.9p1/session.c:757:9: note: in expansion of macro ‘verbose’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
openssh-9.9p1-build/openssh-9.9p1/session.c: scope_hint: In function ‘do_exec_pty’
openssh-9.9p1-build/openssh-9.9p1/session.c:631:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ttyfd, 0)’
openssh-9.9p1-build/openssh-9.9p1/session.c:2309:9: note: in expansion of macro ‘debug_f’
openssh-9.9p1-build/openssh-9.9p1/session.c:757:9: note: in expansion of macro ‘verbose’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
openssh-9.9p1-build/openssh-9.9p1/session.c:633:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ttyfd, 1)’
openssh-9.9p1-build/openssh-9.9p1/session.c:2309:9: note: in expansion of macro ‘debug_f’
openssh-9.9p1-build/openssh-9.9p1/session.c:757:9: note: in expansion of macro ‘verbose’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
openssh-9.9p1-build/openssh-9.9p1/session.c:635:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ttyfd, 2)’
openssh-9.9p1-build/openssh-9.9p1/session.c:2309:9: note: in expansion of macro ‘debug_f’
openssh-9.9p1-build/openssh-9.9p1/session.c:757:9: note: in expansion of macro ‘verbose’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def93]
openssh-9.9p1-build/openssh-9.9p1/session.c: scope_hint: In function ‘do_child’
openssh-9.9p1-build/openssh-9.9p1/session.c:1770:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
openssh-9.9p1-build/openssh-9.9p1/session.c:2309:9: note: in expansion of macro ‘debug_f’
openssh-9.9p1-build/openssh-9.9p1/session.c:757:9: note: in expansion of macro ‘verbose’
openssh-9.9p1-build/openssh-9.9p1/session.c:1770:21: note: write of 1 byte to beyond the end of ‘argv0’
openssh-9.9p1-build/openssh-9.9p1/session.c:1770:21: note: valid subscripts for ‘argv0’ are ‘[0]’ to ‘[255]’
/usr/include/sys/un.h:38: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/session.c:43: included_from: Included from here.
/usr/include/string.h:506:15: note: parameter 1 of ‘strlcpy’ marked with attribute ‘access (write_only, 1, 3)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
openssh-9.9p1-build/openssh-9.9p1/sftp-glob.c: scope_hint: In function ‘sftp_glob’
openssh-9.9p1-build/openssh-9.9p1/sftp-glob.c:155:24: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
Error: CPPCHECK_WARNING (CWE-401): [#def95]
openssh-9.9p1-build/openssh-9.9p1/sftp-glob.c:173: error[memleakOnRealloc]: Common realloc mistake: 's' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def96]
openssh-9.9p1-build/openssh-9.9p1/sftp-server.c:833: error[memleakOnRealloc]: Common realloc mistake: 'buf' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-688): [#def97]
openssh-9.9p1-build/openssh-9.9p1/sftp.c: scope_hint: In function ‘parse_args’
openssh-9.9p1-build/openssh-9.9p1/sftp.c:1497:27: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openssh-9.9p1-build/openssh-9.9p1/sftp.c:31: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
openssh-9.9p1-build/openssh-9.9p1/sftp.c: scope_hint: In function ‘connect_to_server’
openssh-9.9p1-build/openssh-9.9p1/sftp.c:2387:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(c_out, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
openssh-9.9p1-build/openssh-9.9p1/sftp.c:2387:54: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(c_out, 1)’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def100]
openssh-9.9p1-build/openssh-9.9p1/sftp.c:2393:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘in’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def101]
openssh-9.9p1-build/openssh-9.9p1/sftp.c:2395:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘c_out’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def102]
openssh-9.9p1-build/openssh-9.9p1/sftp.c:2419:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘c_out’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
openssh-9.9p1-build/openssh-9.9p1/ssh-add.c: scope_hint: In function ‘add_file’
openssh-9.9p1-build/openssh-9.9p1/ssh-add.c:305:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
openssh-9.9p1-build/openssh-9.9p1/ssh-agent.c: scope_hint: In function ‘dup_dest_constraint_hop’
openssh-9.9p1-build/openssh-9.9p1/ssh-agent.c:276:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: COMPILER_WARNING: [#def105]
openssh-9.9p1-build/openssh-9.9p1/ssh-keycat.c:39:9: warning: "_GNU_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
Error: COMPILER_WARNING: [#def106]
openssh-9.9p1-build/openssh-9.9p1/ssh-keycat.c:39:9: warning: ‘_GNU_SOURCE’ redefined
<command-line>: note: this is the location of the previous definition
Error: COMPILER_WARNING: [#def107]
openssh-9.9p1-build/openssh-9.9p1/ssh-keygen.c: scope_hint: In function ‘do_convert_to’
openssh-9.9p1-build/openssh-9.9p1/ssh-keygen.c:370:41: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1024 bytes into a region of size 39
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 36 or more bytes (assuming 1060) into a destination of size 61
Error: COMPILER_WARNING: [#def108]
openssh-9.9p1-build/openssh-9.9p1/ssh-keygen.c: scope_hint: In function ‘do_gen_all_hostkeys’
openssh-9.9p1-build/openssh-9.9p1/ssh-keygen.c:1180:55: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1024 bytes into a region of size 1023
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 2 or more bytes (assuming 1026) into a destination of size 1024
Error: COMPILER_WARNING: [#def109]
openssh-9.9p1-build/openssh-9.9p1/ssh-keygen.c: scope_hint: In function ‘main’
openssh-9.9p1-build/openssh-9.9p1/ssh-keygen.c:3976:55: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1024 bytes into a region of size 1023
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 2 or more bytes (assuming 1026) into a destination of size 1024
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11-client.c: scope_hint: In function ‘pkcs11_start_helper’
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11-client.c:595:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 0)’
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11-client.c:41: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11-client.c:573:9: note: in expansion of macro ‘debug3_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11-client.c:595:57: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 1)’
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11-client.c:573:9: note: in expansion of macro ‘debug3_f’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def112]
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11.c: scope_hint: In function ‘pkcs11_provider_lookup_module’
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11.c:212:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘module_path’ where non-null expected
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11.c:35: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11.c:210:9: note: in expansion of macro ‘TAILQ_FOREACH’
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11.c:46: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/log.h:88:100: note: in definition of macro ‘debug’
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11.c:32: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: COMPILER_WARNING (CWE-1164): [#def113]
openssh-9.9p1-build/openssh-9.9p1/ssh-pkcs11.c:2011:1: warning[-Wunused-function]: ‘pkcs11_register_provider’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
openssh-9.9p1-build/openssh-9.9p1/ssh-sk-client.c: scope_hint: In function ‘start_helper’
openssh-9.9p1-build/openssh-9.9p1/ssh-sk-client.c:87:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
openssh-9.9p1-build/openssh-9.9p1/ssh-sk-client.c:87:57: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 1)’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def116]
openssh-9.9p1-build/openssh-9.9p1/sshbuf-io.c: scope_hint: In function ‘sshbuf_write_file’
openssh-9.9p1-build/openssh-9.9p1/sshbuf-io.c:110:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘open(path, 577, 420)’
openssh-9.9p1-build/openssh-9.9p1/includes.h:154: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/sshbuf-io.c:18: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
openssh-9.9p1-build/openssh-9.9p1/sshconnect.c: scope_hint: In function ‘hostkey_accepted_by_hostkeyalgs’
openssh-9.9p1-build/openssh-9.9p1/sshconnect.c:731:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘key’
openssh-9.9p1-build/openssh-9.9p1/sshconnect.c:59: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/sshconnect.c:1507:17: note: in expansion of macro ‘debug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:2203:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘from[0]’
openssh-9.9p1-build/openssh-9.9p1/log.h:102:99: note: in definition of macro ‘error_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def119]
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:2203:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘from[1]’
openssh-9.9p1-build/openssh-9.9p1/log.h:102:99: note: in definition of macro ‘error_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:2203:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to[0]’
openssh-9.9p1-build/openssh-9.9p1/log.h:102:99: note: in definition of macro ‘error_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c: scope_hint: In function ‘ssh_keysign’
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:2203:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to[1]’
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:65: included_from: Included from here.
openssh-9.9p1-build/openssh-9.9p1/log.h:102:99: note: in definition of macro ‘error_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:2224:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(from[1], 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:2227:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(to[0], 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
openssh-9.9p1-build/openssh-9.9p1/sshconnect2.c:2232:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ssh_packet_get_connection_in(ssh), 3)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
openssh-9.9p1-build/openssh-9.9p1/sshd.c: scope_hint: In function ‘main’
openssh-9.9p1-build/openssh-9.9p1/sshd.c:1372:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘devnull’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-105.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | openssh-9.9p1-5.fc42 |
store-results-to | /tmp/tmp_5laaykv/openssh-9.9p1-5.fc42.tar.xz |
time-created | 2024-11-13 02:11:31 |
time-finished | 2024-11-13 02:15:31 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp_5laaykv/openssh-9.9p1-5.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_5laaykv/openssh-9.9p1-5.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |