openssh-9.9p1-15.fc43
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/addr.c:239:9: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
openssh-9.9p1/addr.c:361:1: enter_function: entry to ‘addr_host_to_all1s’
openssh-9.9p1/addr.c:365:13: call_function: calling ‘addr_hostmask’ from ‘addr_host_to_all1s’
openssh-9.9p1/addr.c:365:13: return_function: returning to ‘addr_host_to_all1s’ from ‘addr_hostmask’
openssh-9.9p1/addr.c:365:12: branch_false: following ‘false’ branch...
openssh-9.9p1/addr.c:367:13: branch_false: ...to here
openssh-9.9p1/addr.c:367:13: call_function: calling ‘addr_or’ from ‘addr_host_to_all1s’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
openssh-9.9p1/auth-krb5.c:268:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openssh-9.9p1/auth-krb5.c:246:12: branch_true: following ‘true’ branch...
openssh-9.9p1/auth-krb5.c:247:30: branch_true: ...to here
openssh-9.9p1/auth-krb5.c:256:20: branch_false: following ‘false’ branch...
openssh-9.9p1/auth-krb5.c:259:23: branch_false: ...to here
openssh-9.9p1/auth-krb5.c:264:27: branch_true: following ‘true’ branch...
openssh-9.9p1/auth-krb5.c:266:25: branch_true: ...to here
openssh-9.9p1/auth-krb5.c:268:25: danger: dereference of NULL ‘strchr(&krb5_ccname, 58)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
openssh-9.9p1/auth-krb5.c:361:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openssh-9.9p1/auth-krb5.c:335:12: branch_false: following ‘false’ branch (when ‘template’ is non-NULL)...
openssh-9.9p1/auth-krb5.c:338:36: branch_false: ...to here
openssh-9.9p1/auth-krb5.c:341:16: branch_true: following ‘true’ branch (when ‘p_n’ is non-NULL)...
openssh-9.9p1/auth-krb5.c:343:18: branch_true: ...to here
openssh-9.9p1/auth-krb5.c:344:20: branch_false: following ‘false’ branch...
openssh-9.9p1/auth-krb5.c:347:21: branch_false: ...to here
openssh-9.9p1/auth-krb5.c:347:20: branch_false: following ‘false’ branch...
openssh-9.9p1/auth-krb5.c:354:25: branch_false: following ‘false’ branch...
openssh-9.9p1/auth-krb5.c:360:31: branch_false: ...to here
openssh-9.9p1/auth-krb5.c:361:25: danger: dereference of NULL ‘strchr(p_n, 125)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
openssh-9.9p1/auth-pam.c:979:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fake_password(*resp)’
openssh-9.9p1/auth-pam.c:990:1: enter_function: entry to ‘sshpam_respond’
openssh-9.9p1/auth-pam.c:1007:12: branch_false: following ‘false’ branch (when ‘num == 1’)...
openssh-9.9p1/auth-pam.c:1011:23: branch_false: ...to here
openssh-9.9p1/auth-pam.c:1011:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth-pam.c:1013:28: branch_false: ...to here
openssh-9.9p1/auth-pam.c:1019:24: call_function: calling ‘fake_password’ from ‘sshpam_respond’
openssh-9.9p1/auth-pam.c:1019:24: return_function: returning to ‘sshpam_respond’ from ‘fake_password’
openssh-9.9p1/auth-pam.c:979:15: danger: ‘fake_password(*resp)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
openssh-9.9p1/auth2-chall.c:328:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘response’
openssh-9.9p1/auth2-chall.c:300:12: branch_false: following ‘false’ branch (when ‘authctxt’ is non-NULL)...
openssh-9.9p1/auth2-chall.c:302:9: branch_false: ...to here
openssh-9.9p1/auth2-chall.c:303:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth2-chall.c:305:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth2-chall.c:308:9: branch_false: ...to here
openssh-9.9p1/auth2-chall.c:309:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth2-chall.c:311:22: branch_false: ...to here
openssh-9.9p1/auth2-chall.c:311:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth2-chall.c:313:12: branch_false: ...to here
openssh-9.9p1/auth2-chall.c:313:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth2-chall.c:315:12: branch_false: ...to here
openssh-9.9p1/auth2-chall.c:315:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth2-chall.c:322:18: branch_false: ...to here
openssh-9.9p1/auth2-chall.c:322:12: branch_false: following ‘false’ branch...
openssh-9.9p1/auth2-chall.c:325:15: branch_false: ...to here
openssh-9.9p1/auth2-chall.c:327:21: branch_true: following ‘true’ branch...
openssh-9.9p1/auth2-chall.c:328:60: branch_true: ...to here
openssh-9.9p1/auth2-chall.c:328:60: release_memory: ‘response’ is NULL
openssh-9.9p1/auth2-chall.c:328:17: danger: dereference of NULL ‘response + (long unsigned int)i * 8’
Error: COMPILER_WARNING: [#def7]
openssh-9.9p1/chacha.c:51:31: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available)
Error: COMPILER_WARNING: [#def8]
openssh-9.9p1/chacha.c:52:29: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (17 chars into 16 available)
Error: CPPCHECK_WARNING (CWE-457): [#def9]
openssh-9.9p1/channels.c:5081: warning[uninitvar]: Uninitialized variable: port
Error: COMPILER_WARNING (CWE-195): [#def10]
openssh-9.9p1/channels.c: scope_hint: In function ‘connect_local_xsocket_path’
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 (CWE-563): [#def11]
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/contrib/gnome-ssh-askpass3.c: scope_hint: In function ‘passphrase_dialog’
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/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/contrib/gnome-ssh-askpass3.c:184:17: warning[-Wdeprecated-declarations]: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead
Error: COMPILER_WARNING (CWE-477): [#def14]
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): [#def15]
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
Error: COMPILER_WARNING (CWE-477): [#def16]
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): [#def17]
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
Error: COMPILER_WARNING (CWE-477): [#def18]
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-477): [#def19]
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
Error: COMPILER_WARNING (CWE-457): [#def20]
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:243:39: warning[-Wmaybe-uninitialized]: ‘entry’ may be used uninitialized
openssh-9.9p1/contrib/gnome-ssh-askpass3.c: scope_hint: In function ‘main’
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:140:45: note: ‘entry’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:246:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:134:1: enter_function: entry to ‘passphrase_dialog’
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:188:12: branch_true: following ‘true’ branch...
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:189:25: branch_true: ...to here
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:242:12: branch_true: following ‘true’ branch (when ‘prompt_type == 0’)...
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:243:30: branch_true: ...to here
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:244:20: branch_true: following ‘true’ branch...
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:246:29: branch_true: ...to here
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:246:29: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:256:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:134:1: enter_function: entry to ‘passphrase_dialog’
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:188:12: branch_true: following ‘true’ branch...
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:189:25: branch_true: ...to here
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:242:12: branch_true: following ‘true’ branch (when ‘prompt_type == 0’)...
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:243:30: branch_true: ...to here
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:244:20: branch_false: following ‘false’ branch...
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:256:17: branch_false: ...to here
openssh-9.9p1/contrib/gnome-ssh-askpass3.c:256:17: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: COMPILER_WARNING: [#def23]
openssh-9.9p1/gss-genr.c: scope_hint: In function ‘ssh_gssapi_kex_mechs’
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/gss-genr.c:172:46: note: length computed here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
openssh-9.9p1/kex.c:1304:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘keys[<unknown>]’
openssh-9.9p1/kex.c:1272:1: enter_function: entry to ‘kex_derive_keys’
openssh-9.9p1/kex.c:1288:19: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/kex.c:1292:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
openssh-9.9p1/kex.c:1293:26: branch_true: ...to here
openssh-9.9p1/kex.c:1293:26: call_function: calling ‘derive_key’ from ‘kex_derive_keys’
openssh-9.9p1/kex.c:1293:26: return_function: returning to ‘kex_derive_keys’ from ‘derive_key’
openssh-9.9p1/kex.c:1293:20: branch_false: following ‘false’ branch...
openssh-9.9p1/kex.c:1292:32: branch_false: ...to here
openssh-9.9p1/kex.c:1292:21: branch_false: following ‘false’ branch (when ‘i == 6’)...
branch_false: ...to here
openssh-9.9p1/kex.c:1300:24: branch_true: following ‘true’ branch (when ‘mode != 2’)...
openssh-9.9p1/kex.c:1301:26: branch_true: ...to here
openssh-9.9p1/kex.c:1301:24: branch_true: following ‘true’ branch...
openssh-9.9p1/kex.c:1302:21: branch_true: ...to here
openssh-9.9p1/kex.c:1302:21: branch_true: following ‘true’ branch (when ‘mode == 0’)...
branch_true: ...to here
openssh-9.9p1/kex.c:1304:52: branch_true: following ‘true’ branch...
openssh-9.9p1/kex.c:1304:17: branch_true: ...to here
openssh-9.9p1/kex.c:1304:47: danger: use of uninitialized value ‘keys[<unknown>]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
openssh-9.9p1/kexecdh.c:273:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘publen’
Error: COMPILER_WARNING (CWE-195): [#def26]
openssh-9.9p1/kexgssc.c: scope_hint: In function ‘input_kexgssgex_group’
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): [#def27]
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: [#def28]
openssh-9.9p1/log.c: scope_hint: In function ‘do_log’
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: [#def29]
openssh-9.9p1/log.c: scope_hint: In function ‘do_log’
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: [#def30]
openssh-9.9p1/misc.c: scope_hint: In function ‘fmt_timeframe’
openssh-9.9p1/misc.c:712: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/misc.c:712:39: note: directive argument in the range [1, 30500568904943]
openssh-9.9p1/misc.c:712:39: note: directive argument in the range [0, 6]
openssh-9.9p1/misc.c:712: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): [#def31]
openssh-9.9p1/misc.c:1551:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), dupfd)’
openssh-9.9p1/misc.c:1543:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:1548:16: branch_true: following ‘true’ branch (when ‘dupfd <= 2’)...
openssh-9.9p1/misc.c:1550:21: branch_true: ...to here
openssh-9.9p1/misc.c:1550:20: branch_true: following ‘true’ branch...
openssh-9.9p1/misc.c:1551:29: acquire_resource: opened here
openssh-9.9p1/misc.c:1551:28: danger: ‘dup2(open("/dev/null", 2), dupfd)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
openssh-9.9p1/misc.c:1551:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1/misc.c:1543:31: acquire_resource: opened here
openssh-9.9p1/misc.c:1543:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:1548:16: branch_true: following ‘true’ branch (when ‘dupfd <= 2’)...
openssh-9.9p1/misc.c:1550:21: branch_true: ...to here
openssh-9.9p1/misc.c:1548:16: branch_true: following ‘true’ branch (when ‘dupfd <= 2’)...
openssh-9.9p1/misc.c:1550:21: branch_true: ...to here
openssh-9.9p1/misc.c:1551:28: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
openssh-9.9p1/misc.c:1557:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1/misc.c:1543:31: acquire_resource: opened here
openssh-9.9p1/misc.c:1543:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:1548:16: branch_true: following ‘true’ branch (when ‘dupfd <= 2’)...
openssh-9.9p1/misc.c:1550:21: branch_true: ...to here
openssh-9.9p1/misc.c:1557:12: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
openssh-9.9p1/misc.c:1561:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dupfd’
openssh-9.9p1/misc.c:1543:31: acquire_resource: opened here
openssh-9.9p1/misc.c:1543:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:1548:16: branch_false: following ‘false’ branch (when ‘dupfd > 2’)...
openssh-9.9p1/misc.c:1557:12: branch_false: ...to here
openssh-9.9p1/misc.c:1557:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:1561:1: branch_false: ...to here
openssh-9.9p1/misc.c:1561:1: danger: ‘dupfd’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
openssh-9.9p1/misc.c:2745:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
openssh-9.9p1/misc.c:2740:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2745:12: branch_false: ...to here
openssh-9.9p1/misc.c:2745:12: branch_true: following ‘true’ branch (when ‘do_stdin != 0’)...
openssh-9.9p1/misc.c:2745:26: branch_true: ...to here
openssh-9.9p1/misc.c:2745:26: acquire_resource: opened here
openssh-9.9p1/misc.c:2745:13: danger: ‘dup2(open("/dev/null", 2), 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
openssh-9.9p1/misc.c:2746:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 1)’
openssh-9.9p1/misc.c:2740:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2745:12: branch_false: ...to here
openssh-9.9p1/misc.c:2745:13: branch_true: following ‘true’ branch (when ‘do_stdout != 0’)...
openssh-9.9p1/misc.c:2746:27: branch_true: ...to here
openssh-9.9p1/misc.c:2746:27: acquire_resource: opened here
openssh-9.9p1/misc.c:2746:13: danger: ‘dup2(open("/dev/null", 2), 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
openssh-9.9p1/misc.c:2747:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
openssh-9.9p1/misc.c:2740:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2745:12: branch_false: ...to here
openssh-9.9p1/misc.c:2745:13: branch_true: following ‘true’ branch (when ‘do_stderr != 0’)...
openssh-9.9p1/misc.c:2747:27: branch_true: ...to here
openssh-9.9p1/misc.c:2747:27: acquire_resource: opened here
openssh-9.9p1/misc.c:2747:13: danger: ‘dup2(open("/dev/null", 2), 2)’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
openssh-9.9p1/misc.c:2751:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1/misc.c:2740:24: acquire_resource: opened here
openssh-9.9p1/misc.c:2740:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2745:12: branch_false: ...to here
openssh-9.9p1/misc.c:2751:12: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
openssh-9.9p1/misc.c:2783:24: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
openssh-9.9p1/misc.c:2801:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2810:14: branch_false: ...to here
openssh-9.9p1/misc.c:2810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2814:12: branch_false: ...to here
openssh-9.9p1/misc.c:2816:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2821:13: branch_false: ...to here
openssh-9.9p1/misc.c:2827:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2834:12: branch_false: ...to here
openssh-9.9p1/misc.c:2922:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2924:23: branch_false: ...to here
openssh-9.9p1/misc.c:2924:23: acquire_memory: allocated here
openssh-9.9p1/misc.c:2924:17: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
openssh-9.9p1/misc.c:2934:9: branch_false: ...to here
openssh-9.9p1/misc.c:2935:12: branch_false: following ‘false’ branch (when ‘child’ is NULL)...
branch_false: ...to here
openssh-9.9p1/misc.c:2783:24: danger: ‘f’ leaks here; was allocated at [(14)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
openssh-9.9p1/misc.c:2864:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
openssh-9.9p1/misc.c:2767:1: enter_function: entry to ‘subprocess’
openssh-9.9p1/misc.c:2801:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2810:14: branch_false: ...to here
openssh-9.9p1/misc.c:2810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2814:12: branch_false: ...to here
openssh-9.9p1/misc.c:2816:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2821:13: branch_false: ...to here
openssh-9.9p1/misc.c:2827:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2834:12: branch_false: ...to here
openssh-9.9p1/misc.c:2845:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:2856:29: branch_true: following ‘true’ branch (when ‘i != 65’)...
openssh-9.9p1/misc.c:2857:25: branch_true: ...to here
openssh-9.9p1/misc.c:2857:25: call_function: calling ‘ssh_signal’ from ‘subprocess’
openssh-9.9p1/misc.c:2857:25: return_function: returning to ‘subprocess’ from ‘ssh_signal’
openssh-9.9p1/misc.c:2859:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2864:21: branch_false: ...to here
openssh-9.9p1/misc.c:2864:21: acquire_resource: opened here
openssh-9.9p1/misc.c:2864:20: danger: ‘dup2(open("/dev/null", 2), 0)’ leaks here; was opened at [(24)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/23)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
openssh-9.9p1/misc.c:2864:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1/misc.c:2767:1: enter_function: entry to ‘subprocess’
openssh-9.9p1/misc.c:2801:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2810:14: branch_false: ...to here
openssh-9.9p1/misc.c:2810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2814:12: branch_false: ...to here
openssh-9.9p1/misc.c:2816:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2821:13: branch_false: ...to here
openssh-9.9p1/misc.c:2827:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2834:12: branch_false: ...to here
openssh-9.9p1/misc.c:2845:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:2856:29: branch_true: following ‘true’ branch (when ‘i != 65’)...
openssh-9.9p1/misc.c:2857:25: branch_true: ...to here
openssh-9.9p1/misc.c:2857:25: call_function: calling ‘ssh_signal’ from ‘subprocess’
openssh-9.9p1/misc.c:2857:25: return_function: returning to ‘subprocess’ from ‘ssh_signal’
openssh-9.9p1/misc.c:2859:32: acquire_resource: opened here
openssh-9.9p1/misc.c:2859:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2864:21: branch_false: ...to here
openssh-9.9p1/misc.c:2864:20: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(22)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
openssh-9.9p1/misc.c:2871:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1/misc.c:2767:1: enter_function: entry to ‘subprocess’
openssh-9.9p1/misc.c:2801:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2810:14: branch_false: ...to here
openssh-9.9p1/misc.c:2810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2814:12: branch_false: ...to here
openssh-9.9p1/misc.c:2816:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2821:13: branch_false: ...to here
openssh-9.9p1/misc.c:2827:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2834:12: branch_false: ...to here
openssh-9.9p1/misc.c:2845:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:2856:29: branch_true: following ‘true’ branch (when ‘i != 65’)...
openssh-9.9p1/misc.c:2857:25: branch_true: ...to here
openssh-9.9p1/misc.c:2857:25: call_function: calling ‘ssh_signal’ from ‘subprocess’
openssh-9.9p1/misc.c:2857:25: return_function: returning to ‘subprocess’ from ‘ssh_signal’
openssh-9.9p1/misc.c:2859:32: acquire_resource: opened here
openssh-9.9p1/misc.c:2859:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2864:21: branch_false: ...to here
openssh-9.9p1/misc.c:2864:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2871:20: branch_false: ...to here
openssh-9.9p1/misc.c:2871:20: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(22)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
openssh-9.9p1/misc.c:2873:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
openssh-9.9p1/misc.c:2767:1: enter_function: entry to ‘subprocess’
openssh-9.9p1/misc.c:2801:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2810:14: branch_false: ...to here
openssh-9.9p1/misc.c:2810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2814:12: branch_false: ...to here
openssh-9.9p1/misc.c:2816:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2821:13: branch_false: ...to here
openssh-9.9p1/misc.c:2827:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2834:12: branch_false: ...to here
openssh-9.9p1/misc.c:2845:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:2856:29: branch_true: following ‘true’ branch (when ‘i != 65’)...
openssh-9.9p1/misc.c:2857:25: branch_true: ...to here
openssh-9.9p1/misc.c:2857:25: call_function: calling ‘ssh_signal’ from ‘subprocess’
openssh-9.9p1/misc.c:2857:25: return_function: returning to ‘subprocess’ from ‘ssh_signal’
openssh-9.9p1/misc.c:2859:32: acquire_resource: opened here
openssh-9.9p1/misc.c:2859:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2864:21: branch_false: ...to here
openssh-9.9p1/misc.c:2864:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2871:20: branch_false: ...to here
openssh-9.9p1/misc.c:2871:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2873:25: branch_false: ...to here
openssh-9.9p1/misc.c:2873:25: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(22)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
openssh-9.9p1/misc.c:2875:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 1)’
openssh-9.9p1/misc.c:2767:1: enter_function: entry to ‘subprocess’
openssh-9.9p1/misc.c:2801:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2810:14: branch_false: ...to here
openssh-9.9p1/misc.c:2810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2814:12: branch_false: ...to here
openssh-9.9p1/misc.c:2816:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2821:13: branch_false: ...to here
openssh-9.9p1/misc.c:2827:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2834:12: branch_false: ...to here
openssh-9.9p1/misc.c:2845:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:2856:29: branch_true: following ‘true’ branch (when ‘i != 65’)...
openssh-9.9p1/misc.c:2857:25: branch_true: ...to here
openssh-9.9p1/misc.c:2857:25: call_function: calling ‘ssh_signal’ from ‘subprocess’
openssh-9.9p1/misc.c:2857:25: return_function: returning to ‘subprocess’ from ‘ssh_signal’
openssh-9.9p1/misc.c:2859:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2864:21: branch_false: ...to here
openssh-9.9p1/misc.c:2864:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2871:20: branch_false: ...to here
openssh-9.9p1/misc.c:2871:20: branch_true: following ‘true’ branch...
openssh-9.9p1/misc.c:2872:25: branch_true: ...to here
openssh-9.9p1/misc.c:2875:20: branch_true: following ‘true’ branch (when ‘fd != -1’)...
openssh-9.9p1/misc.c:2875:33: branch_true: ...to here
openssh-9.9p1/misc.c:2875:33: acquire_resource: opened here
openssh-9.9p1/misc.c:2875:21: danger: ‘dup2(fd, 1)’ leaks here; was opened at [(30)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/29)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
openssh-9.9p1/misc.c:2898:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(0, 2)’
openssh-9.9p1/misc.c:2767:1: enter_function: entry to ‘subprocess’
openssh-9.9p1/misc.c:2796:13: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2801:14: branch_false: ...to here
openssh-9.9p1/misc.c:2801:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2810:14: branch_false: ...to here
openssh-9.9p1/misc.c:2810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2814:12: branch_false: ...to here
openssh-9.9p1/misc.c:2816:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2821:13: branch_false: ...to here
openssh-9.9p1/misc.c:2827:12: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2834:12: branch_false: ...to here
openssh-9.9p1/misc.c:2845:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/misc.c:2856:29: branch_true: following ‘true’ branch (when ‘i != 65’)...
openssh-9.9p1/misc.c:2857:25: branch_true: ...to here
openssh-9.9p1/misc.c:2857:25: call_function: calling ‘ssh_signal’ from ‘subprocess’
openssh-9.9p1/misc.c:2857:25: return_function: returning to ‘subprocess’ from ‘ssh_signal’
openssh-9.9p1/misc.c:2859:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2864:21: branch_false: ...to here
openssh-9.9p1/misc.c:2864:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2871:20: branch_false: ...to here
openssh-9.9p1/misc.c:2871:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2873:25: branch_false: ...to here
openssh-9.9p1/misc.c:2873:25: branch_true: following ‘true’ branch...
openssh-9.9p1/misc.c:2875:20: branch_true: ...to here
openssh-9.9p1/misc.c:2875:20: branch_true: following ‘true’ branch (when ‘fd != -1’)...
openssh-9.9p1/misc.c:2875:33: branch_true: ...to here
openssh-9.9p1/misc.c:2875:21: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2879:17: branch_false: ...to here
openssh-9.9p1/misc.c:2887:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2892:21: branch_false: ...to here
openssh-9.9p1/misc.c:2892:20: branch_false: following ‘false’ branch...
openssh-9.9p1/misc.c:2898:20: branch_false: ...to here
openssh-9.9p1/misc.c:2898:20: branch_true: following ‘true’ branch...
openssh-9.9p1/misc.c:2899:21: branch_true: ...to here
openssh-9.9p1/misc.c:2899:21: acquire_resource: opened here
openssh-9.9p1/misc.c:2898:21: danger: ‘dup2(0, 2)’ leaks here; was opened at [(42)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/41)
Error: COMPILER_WARNING (CWE-9001): [#def46]
openssh-9.9p1/ssh-keycat.c:57: included_from: Included from here.
openssh-9.9p1/misc.h:157:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def47]
openssh-9.9p1/misc.h:157:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def48]
openssh-9.9p1/misc.h:159:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def49]
openssh-9.9p1/misc.h:159:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def50]
openssh-9.9p1/misc.h:161:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def51]
openssh-9.9p1/misc.h:161:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def52]
openssh-9.9p1/misc.h:163:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def53]
openssh-9.9p1/misc.h:163:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def54]
openssh-9.9p1/misc.h:165:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def55]
openssh-9.9p1/misc.h:165:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def56]
openssh-9.9p1/misc.h:167:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def57]
openssh-9.9p1/misc.h:167:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def58]
openssh-9.9p1/misc.h:171:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def59]
openssh-9.9p1/misc.h:171:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def60]
openssh-9.9p1/misc.h:173:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-9001): [#def61]
openssh-9.9p1/misc.h:173:5: warning[-Wattributes]: ‘bounded’ attribute directive ignored
Error: COMPILER_WARNING (CWE-704): [#def62]
openssh-9.9p1/monitor.c: scope_hint: In function ‘mm_answer_sign’
openssh-9.9p1/monitor.c:732:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def63]
openssh-9.9p1/monitor.c:732:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def64]
openssh-9.9p1/monitor.c:743:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def65]
openssh-9.9p1/monitor.c:743:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-195): [#def66]
openssh-9.9p1/monitor.c: scope_hint: In function ‘mm_answer_keyverify’
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): [#def67]
openssh-9.9p1/monitor.c:1701:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*<unknown>.ttyfd, 0)’
openssh-9.9p1/monitor.c:1686:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1688:9: branch_false: ...to here
openssh-9.9p1/monitor.c:1692:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1694:30: branch_false: ...to here
openssh-9.9p1/monitor.c:1696:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1697:18: branch_false: ...to here
openssh-9.9p1/monitor.c:1696:13: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1701:13: branch_false: ...to here
openssh-9.9p1/monitor.c:1701:13: acquire_resource: opened here
openssh-9.9p1/monitor.c:1701:12: danger: ‘dup2(*<unknown>.ttyfd, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
openssh-9.9p1/monitor.c:1723:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
openssh-9.9p1/monitor.c:1686:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1688:9: branch_false: ...to here
openssh-9.9p1/monitor.c:1692:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1694:30: branch_false: ...to here
openssh-9.9p1/monitor.c:1696:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1697:18: branch_false: ...to here
openssh-9.9p1/monitor.c:1696:13: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1701:13: branch_false: ...to here
openssh-9.9p1/monitor.c:1701:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1704:41: branch_false: ...to here
openssh-9.9p1/monitor.c:1710:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1712:9: branch_false: ...to here
openssh-9.9p1/monitor.c:1716:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1717:13: branch_false: ...to here
openssh-9.9p1/monitor.c:1716:13: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1721:20: branch_false: ...to here
openssh-9.9p1/monitor.c:1721:20: acquire_resource: opened here
openssh-9.9p1/monitor.c:1721:12: branch_false: following ‘false’ branch...
openssh-9.9p1/monitor.c:1723:12: branch_false: ...to here
openssh-9.9p1/monitor.c:1723:12: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
openssh-9.9p1/monitor_wrap.c:674:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmp1’
openssh-9.9p1/monitor_wrap.c:669:21: acquire_resource: opened here
openssh-9.9p1/monitor_wrap.c:669:12: branch_false: following ‘false’ branch (when ‘tmp1 != -1’)...
openssh-9.9p1/monitor_wrap.c:670:33: branch_false: ...to here
openssh-9.9p1/monitor_wrap.c:669:13: branch_true: following ‘true’ branch (when ‘tmp2 == -1’)...
openssh-9.9p1/monitor_wrap.c:671:17: branch_true: ...to here
openssh-9.9p1/monitor_wrap.c:672:20: branch_false: following ‘false’ branch (when ‘tmp1 < 0’)...
openssh-9.9p1/monitor_wrap.c:674:24: branch_false: ...to here
openssh-9.9p1/monitor_wrap.c:674:24: danger: ‘tmp1’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def70]
openssh-9.9p1/openbsd-compat/bcrypt_pbkdf.c: scope_hint: In function ‘bcrypt_hash’
openssh-9.9p1/openbsd-compat/bcrypt_pbkdf.c:77:13: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (33 chars into 32 available)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
openssh-9.9p1/openbsd-compat/glob.c:835:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pathv’
openssh-9.9p1/openbsd-compat/glob.c:810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/openbsd-compat/glob.c:810:13: branch_false: following ‘false’ branch (when ‘newn <= 2305843009213693950’)...
openssh-9.9p1/openbsd-compat/glob.c:830:30: branch_false: ...to here
openssh-9.9p1/openbsd-compat/glob.c:830:17: acquire_memory: allocated here
openssh-9.9p1/openbsd-compat/glob.c:831:12: branch_false: following ‘false’ branch (when ‘pathv’ is non-NULL)...
openssh-9.9p1/openbsd-compat/glob.c:833:13: branch_false: ...to here
openssh-9.9p1/openbsd-compat/glob.c:833:12: branch_true: following ‘true’ branch...
openssh-9.9p1/openbsd-compat/glob.c:836:42: branch_true: following ‘true’ branch (when ‘i != 0’)...
openssh-9.9p1/openbsd-compat/glob.c:837:25: branch_true: ...to here
openssh-9.9p1/openbsd-compat/glob.c:843:20: branch_false: following ‘false’ branch (when ‘statv’ is non-NULL)...
openssh-9.9p1/openbsd-compat/glob.c:845:21: branch_false: ...to here
openssh-9.9p1/openbsd-compat/glob.c:835:17: danger: ‘pathv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
openssh-9.9p1/openbsd-compat/glob.c:847:25: warning[-Wanalyzer-malloc-leak]: leak of ‘statv’
openssh-9.9p1/openbsd-compat/glob.c:810:12: branch_false: following ‘false’ branch...
openssh-9.9p1/openbsd-compat/glob.c:810:13: branch_false: following ‘false’ branch (when ‘newn <= 2305843009213693950’)...
openssh-9.9p1/openbsd-compat/glob.c:830:30: branch_false: ...to here
openssh-9.9p1/openbsd-compat/glob.c:831:12: branch_false: following ‘false’ branch (when ‘pathv’ is non-NULL)...
openssh-9.9p1/openbsd-compat/glob.c:833:13: branch_false: ...to here
openssh-9.9p1/openbsd-compat/glob.c:841:12: branch_true: following ‘true’ branch...
openssh-9.9p1/openbsd-compat/glob.c:842:38: branch_true: ...to here
openssh-9.9p1/openbsd-compat/glob.c:842:25: acquire_memory: allocated here
openssh-9.9p1/openbsd-compat/glob.c:843:20: branch_false: following ‘false’ branch (when ‘statv’ is non-NULL)...
openssh-9.9p1/openbsd-compat/glob.c:845:21: branch_false: ...to here
openssh-9.9p1/openbsd-compat/glob.c:845:20: branch_true: following ‘true’ branch...
openssh-9.9p1/openbsd-compat/glob.c:848:50: branch_true: following ‘true’ branch (when ‘i != 0’)...
openssh-9.9p1/openbsd-compat/glob.c:849:33: branch_true: ...to here
openssh-9.9p1/openbsd-compat/glob.c:852:20: branch_false: following ‘false’ branch (when ‘sb’ is non-NULL)...
openssh-9.9p1/openbsd-compat/glob.c:855:25: branch_false: ...to here
openssh-9.9p1/openbsd-compat/glob.c:856:28: branch_true: following ‘true’ branch...
openssh-9.9p1/openbsd-compat/glob.c:847:25: danger: ‘statv’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: COMPILER_WARNING (CWE-477): [#def73]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:68:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def74]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:68:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def75]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:69:24: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def76]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:69:24: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def77]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:115:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def78]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:115:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def79]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:142:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def80]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:142:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def81]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘get_user_context’
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:180:17: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def82]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:180:17: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def83]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:181:17: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def84]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:181:17: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def85]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: At top level
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:240:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def86]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:240:1: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def87]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:241:5: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def88]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:241:5: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def89]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘sshd_selinux_getctxbyname’
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:272:25: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def90]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:272:25: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def91]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:293:33: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def92]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:293:33: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def93]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘sshd_selinux_setup_exec_context’
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:386:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def94]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:386:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def95]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:388:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def96]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:388:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def97]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c: scope_hint: In function ‘sshd_selinux_copy_context’
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:461:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def98]
openssh-9.9p1/openbsd-compat/port-linux-sshd.c:461:9: warning[-Wdeprecated-declarations]: ‘security_context_t’ is deprecated
Error: COMPILER_WARNING (CWE-1164): [#def99]
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): [#def100]
openssh-9.9p1/openbsd-compat/readpassphrase.c:94:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 2)’
openssh-9.9p1/openbsd-compat/readpassphrase.c:64:12: branch_false: following ‘false’ branch (when ‘bufsiz != 0’)...
branch_false: ...to here
openssh-9.9p1/openbsd-compat/readpassphrase.c:70:21: branch_true: following ‘true’ branch (when ‘i != 65’)...
openssh-9.9p1/openbsd-compat/readpassphrase.c:71:17: branch_true: ...to here
openssh-9.9p1/openbsd-compat/readpassphrase.c:79:12: branch_false: following ‘false’ branch...
openssh-9.9p1/openbsd-compat/readpassphrase.c:80:31: branch_false: ...to here
openssh-9.9p1/openbsd-compat/readpassphrase.c:80:31: acquire_resource: opened here
openssh-9.9p1/openbsd-compat/readpassphrase.c:79:13: branch_false: following ‘false’ branch...
openssh-9.9p1/openbsd-compat/readpassphrase.c:94:12: branch_false: ...to here
openssh-9.9p1/openbsd-compat/readpassphrase.c:94:12: danger: ‘open("/dev/tty", 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING: [#def101]
openssh-9.9p1/openbsd-compat/vis.c: scope_hint: In function ‘stravis’
openssh-9.9p1/openbsd-compat/vis.c:229:23: warning[-Wuse-after-free]: pointer ‘buf_15’ may be used after ‘realloc’
openssh-9.9p1/openbsd-compat/vis.c:227:17: note: call to ‘realloc’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
openssh-9.9p1/readconf.c:808:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg’
openssh-9.9p1/readconf.c:2545:1: enter_function: entry to ‘read_config_file_depth’
openssh-9.9p1/readconf.c:2550:15: release_memory: ‘line’ is NULL
openssh-9.9p1/readconf.c:2555:12: branch_false: following ‘false’ branch...
openssh-9.9p1/readconf.c:2558:18: branch_false: ...to here
openssh-9.9p1/readconf.c:2558:12: branch_false: following ‘false’ branch...
openssh-9.9p1/readconf.c:2561:13: branch_false: ...to here
openssh-9.9p1/readconf.c:2578:16: branch_true: following ‘true’ branch...
openssh-9.9p1/readconf.c:2580:17: branch_true: ...to here
openssh-9.9p1/readconf.c:2586:21: call_function: calling ‘process_config_line_depth’ from ‘read_config_file_depth’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
openssh-9.9p1/readconf.c:2561:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
openssh-9.9p1/readconf.c:2555:12: branch_false: following ‘false’ branch...
openssh-9.9p1/readconf.c:2558:18: branch_false: ...to here
openssh-9.9p1/readconf.c:2558:18: acquire_resource: opened here
openssh-9.9p1/readconf.c:2558:12: branch_false: following ‘false’ branch...
openssh-9.9p1/readconf.c:2561:13: branch_false: ...to here
openssh-9.9p1/readconf.c:2561:12: branch_true: following ‘true’ branch...
openssh-9.9p1/readconf.c:2564:21: branch_true: ...to here
openssh-9.9p1/readconf.c:2561:13: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
openssh-9.9p1/readconf.c:2561:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
openssh-9.9p1/readconf.c:2555:12: branch_false: following ‘false’ branch...
openssh-9.9p1/readconf.c:2558:18: branch_false: ...to here
openssh-9.9p1/readconf.c:2558:18: acquire_memory: allocated here
openssh-9.9p1/readconf.c:2558:12: branch_false: following ‘false’ branch...
openssh-9.9p1/readconf.c:2561:13: branch_false: ...to here
openssh-9.9p1/readconf.c:2561:12: branch_true: following ‘true’ branch...
openssh-9.9p1/readconf.c:2564:21: branch_true: ...to here
openssh-9.9p1/readconf.c:2561:13: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
openssh-9.9p1/readpass.c:76:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(p[1], 1)’
openssh-9.9p1/readpass.c:62:12: branch_false: following ‘false’ branch (when ‘askpass’ is non-NULL)...
openssh-9.9p1/readpass.c:64:13: branch_false: ...to here
openssh-9.9p1/readpass.c:64:12: branch_false: following ‘false’ branch...
openssh-9.9p1/readpass.c:68:20: branch_false: ...to here
openssh-9.9p1/readpass.c:69:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/readpass.c:74:12: branch_false: ...to here
openssh-9.9p1/readpass.c:74:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/readpass.c:75:17: branch_true: ...to here
openssh-9.9p1/readpass.c:76:21: acquire_resource: opened here
openssh-9.9p1/readpass.c:76:20: danger: ‘dup2(p[1], 1)’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:243:12: branch_false: following ‘false’ branch (when ‘enroll_response’ is non-NULL)...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:247:9: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:248:12: branch_false: following ‘false’ branch...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:250:25: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:250:25: acquire_memory: allocated here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:250:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:254:9: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:255:9: danger: ‘response’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def107]
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:280:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*response.public_key’
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:234:1: enter_function: entry to ‘sk_enroll’
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:243:12: branch_false: following ‘false’ branch (when ‘enroll_response’ is non-NULL)...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:247:9: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:248:12: branch_false: following ‘false’ branch...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:250:25: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:250:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:254:9: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:261:21: call_function: calling ‘pack_key_ed25519’ from ‘sk_enroll’
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:261:21: return_function: returning to ‘sk_enroll’ from ‘pack_key_ed25519’
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:261:20: branch_true: following ‘true’ branch...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:262:25: branch_true: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:280:17: danger: second ‘free’ here; first ‘free’ was at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:523:24: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:492:12: branch_false: following ‘false’ branch (when ‘sign_response’ is non-NULL)...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:496:9: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:497:12: branch_false: following ‘false’ branch...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:499:25: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:499:25: acquire_memory: allocated here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:499:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:503:9: branch_false: ...to here
openssh-9.9p1/regress/misc/sk-dummy/sk-dummy.c:523:24: danger: ‘response’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING: [#def109]
openssh-9.9p1/scp.c: scope_hint: In function ‘rsource’
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): [#def110]
openssh-9.9p1/session.c:489:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pin[0], 0)’
openssh-9.9p1/session.c:2300:1: enter_function: entry to ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: call_function: calling ‘session_by_channel’ from ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: return_function: returning to ‘session_input_channel_req’ from ‘session_by_channel’
openssh-9.9p1/session.c:2305:12: branch_false: following ‘false’ branch...
openssh-9.9p1/session.c:2309:9: branch_false: ...to here
openssh-9.9p1/session.c:2315:12: branch_true: following ‘true’ branch...
openssh-9.9p1/session.c:2316:21: branch_true: ...to here
openssh-9.9p1/session.c:2316:20: branch_true: following ‘true’ branch (when the strings are equal)...
openssh-9.9p1/session.c:2317:35: branch_true: ...to here
openssh-9.9p1/session.c:2317:35: call_function: calling ‘session_shell_req’ from ‘session_input_channel_req’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
openssh-9.9p1/session.c:495:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pout[1], 1)’
openssh-9.9p1/session.c:2300:1: enter_function: entry to ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: call_function: calling ‘session_by_channel’ from ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: return_function: returning to ‘session_input_channel_req’ from ‘session_by_channel’
openssh-9.9p1/session.c:2305:12: branch_false: following ‘false’ branch...
openssh-9.9p1/session.c:2309:9: branch_false: ...to here
openssh-9.9p1/session.c:2315:12: branch_true: following ‘true’ branch...
openssh-9.9p1/session.c:2316:21: branch_true: ...to here
openssh-9.9p1/session.c:2316:20: branch_true: following ‘true’ branch (when the strings are equal)...
openssh-9.9p1/session.c:2317:35: branch_true: ...to here
openssh-9.9p1/session.c:2317:35: call_function: calling ‘session_shell_req’ from ‘session_input_channel_req’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def112]
openssh-9.9p1/session.c:501:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(perr[1], 2)’
openssh-9.9p1/session.c:2300:1: enter_function: entry to ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: call_function: calling ‘session_by_channel’ from ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: return_function: returning to ‘session_input_channel_req’ from ‘session_by_channel’
openssh-9.9p1/session.c:2305:12: branch_false: following ‘false’ branch...
openssh-9.9p1/session.c:2309:9: branch_false: ...to here
openssh-9.9p1/session.c:2315:12: branch_true: following ‘true’ branch...
openssh-9.9p1/session.c:2316:21: branch_true: ...to here
openssh-9.9p1/session.c:2316:20: branch_true: following ‘true’ branch (when the strings are equal)...
openssh-9.9p1/session.c:2317:35: branch_true: ...to here
openssh-9.9p1/session.c:2317:35: call_function: calling ‘session_shell_req’ from ‘session_input_channel_req’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
openssh-9.9p1/session.c:631:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ttyfd, 0)’
openssh-9.9p1/session.c:2300:1: enter_function: entry to ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: call_function: calling ‘session_by_channel’ from ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: return_function: returning to ‘session_input_channel_req’ from ‘session_by_channel’
openssh-9.9p1/session.c:2305:12: branch_false: following ‘false’ branch...
openssh-9.9p1/session.c:2309:9: branch_false: ...to here
openssh-9.9p1/session.c:2315:12: branch_true: following ‘true’ branch...
openssh-9.9p1/session.c:2316:21: branch_true: ...to here
openssh-9.9p1/session.c:2316:20: branch_true: following ‘true’ branch (when the strings are equal)...
openssh-9.9p1/session.c:2317:35: branch_true: ...to here
openssh-9.9p1/session.c:2317:35: call_function: calling ‘session_shell_req’ from ‘session_input_channel_req’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
openssh-9.9p1/session.c:633:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ttyfd, 1)’
openssh-9.9p1/session.c:2300:1: enter_function: entry to ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: call_function: calling ‘session_by_channel’ from ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: return_function: returning to ‘session_input_channel_req’ from ‘session_by_channel’
openssh-9.9p1/session.c:2305:12: branch_false: following ‘false’ branch...
openssh-9.9p1/session.c:2309:9: branch_false: ...to here
openssh-9.9p1/session.c:2315:12: branch_true: following ‘true’ branch...
openssh-9.9p1/session.c:2316:21: branch_true: ...to here
openssh-9.9p1/session.c:2316:20: branch_true: following ‘true’ branch (when the strings are equal)...
openssh-9.9p1/session.c:2317:35: branch_true: ...to here
openssh-9.9p1/session.c:2317:35: call_function: calling ‘session_shell_req’ from ‘session_input_channel_req’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
openssh-9.9p1/session.c:635:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ttyfd, 2)’
openssh-9.9p1/session.c:2300:1: enter_function: entry to ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: call_function: calling ‘session_by_channel’ from ‘session_input_channel_req’
openssh-9.9p1/session.c:2305:18: return_function: returning to ‘session_input_channel_req’ from ‘session_by_channel’
openssh-9.9p1/session.c:2305:12: branch_false: following ‘false’ branch...
openssh-9.9p1/session.c:2309:9: branch_false: ...to here
openssh-9.9p1/session.c:2315:12: branch_true: following ‘true’ branch...
openssh-9.9p1/session.c:2316:21: branch_true: ...to here
openssh-9.9p1/session.c:2316:20: branch_true: following ‘true’ branch (when the strings are equal)...
openssh-9.9p1/session.c:2317:35: branch_true: ...to here
openssh-9.9p1/session.c:2317:35: call_function: calling ‘session_shell_req’ from ‘session_input_channel_req’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
openssh-9.9p1/sftp-glob.c:155:24: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
openssh-9.9p1/sftp-glob.c:137:1: enter_function: entry to ‘sftp_glob’
openssh-9.9p1/sftp-glob.c:154:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp-glob.c:167:13: branch_false: ...to here
openssh-9.9p1/sftp-glob.c:167:12: branch_true: following ‘true’ branch...
openssh-9.9p1/sftp-glob.c:168:13: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:167:13: branch_true: following ‘true’ branch...
openssh-9.9p1/sftp-glob.c:168:38: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:167:13: branch_true: following ‘true’ branch...
openssh-9.9p1/sftp-glob.c:169:13: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:167:13: branch_true: following ‘true’ branch...
openssh-9.9p1/sftp-glob.c:169:42: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:167:13: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
openssh-9.9p1/sftp-glob.c:170:18: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:167:13: branch_true: following ‘true’ branch (when ‘l != 0’)...
openssh-9.9p1/sftp-glob.c:170:37: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:167:13: branch_true: following ‘true’ branch...
openssh-9.9p1/sftp-glob.c:171:21: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:171:21: call_function: calling ‘fudge_stat’ from ‘sftp_glob’
openssh-9.9p1/sftp-glob.c:171:21: return_function: returning to ‘sftp_glob’ from ‘fudge_stat’
openssh-9.9p1/sftp-glob.c:171:20: branch_true: following ‘true’ branch...
openssh-9.9p1/sftp-glob.c:173:28: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
openssh-9.9p1/sftp-glob.c:174:40: branch_true: ...to here
openssh-9.9p1/sftp-glob.c:155:24: danger: ‘s’ leaks here; was allocated at [(25)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/24)
Error: CPPCHECK_WARNING (CWE-401): [#def117]
openssh-9.9p1/sftp-glob.c:173: error[memleakOnRealloc]: Common realloc mistake: 's' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def118]
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): [#def119]
openssh-9.9p1/sftp.c:1497:27: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openssh-9.9p1/sftp.c:2438:1: enter_function: entry to ‘main’
openssh-9.9p1/sftp.c:2602:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2605:12: branch_false: ...to here
openssh-9.9p1/sftp.c:2610:12: branch_true: following ‘true’ branch (when ‘sftp_direct’ is NULL)...
openssh-9.9p1/sftp.c:2611:21: branch_true: ...to here
openssh-9.9p1/sftp.c:2611:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2639:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2644:20: branch_false: ...to here
openssh-9.9p1/sftp.c:2652:20: branch_true: following ‘true’ branch (when ‘sftp_server’ is NULL)...
openssh-9.9p1/sftp.c:2653:25: branch_true: ...to here
openssh-9.9p1/sftp.c:2657:17: branch_false: following ‘false’ branch (when ‘sftp_server’ is NULL)...
branch_false: ...to here
openssh-9.9p1/sftp.c:2660:17: call_function: calling ‘connect_to_server’ from ‘main’
openssh-9.9p1/sftp.c:2660:17: return_function: returning to ‘main’ from ‘connect_to_server’
openssh-9.9p1/sftp.c:2672:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2675:13: branch_false: ...to here
openssh-9.9p1/sftp.c:2682:15: call_function: calling ‘interactive_loop’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
openssh-9.9p1/sftp.c:2387:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(c_out, 0)’
openssh-9.9p1/sftp.c:2438:1: enter_function: entry to ‘main’
openssh-9.9p1/sftp.c:2470:16: branch_true: following ‘true’ branch (when ‘ch != -1’)...
openssh-9.9p1/sftp.c:2472:17: branch_true: ...to here
openssh-9.9p1/sftp.c:2470:16: branch_false: following ‘false’ branch (when ‘ch == -1’)...
openssh-9.9p1/sftp.c:2600:9: branch_false: ...to here
openssh-9.9p1/sftp.c:2602:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2605:12: branch_false: ...to here
openssh-9.9p1/sftp.c:2610:12: branch_false: following ‘false’ branch (when ‘sftp_direct’ is non-NULL)...
openssh-9.9p1/sftp.c:2662:26: branch_false: ...to here
openssh-9.9p1/sftp.c:2662:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2664:21: branch_false: ...to here
openssh-9.9p1/sftp.c:2664:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2666:17: branch_false: ...to here
openssh-9.9p1/sftp.c:2666:17: call_function: calling ‘connect_to_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
openssh-9.9p1/sftp.c:2387:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(c_out, 1)’
openssh-9.9p1/sftp.c:2438:1: enter_function: entry to ‘main’
openssh-9.9p1/sftp.c:2470:16: branch_true: following ‘true’ branch (when ‘ch != -1’)...
openssh-9.9p1/sftp.c:2472:17: branch_true: ...to here
openssh-9.9p1/sftp.c:2470:16: branch_false: following ‘false’ branch (when ‘ch == -1’)...
openssh-9.9p1/sftp.c:2600:9: branch_false: ...to here
openssh-9.9p1/sftp.c:2602:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2605:12: branch_false: ...to here
openssh-9.9p1/sftp.c:2610:12: branch_false: following ‘false’ branch (when ‘sftp_direct’ is non-NULL)...
openssh-9.9p1/sftp.c:2662:26: branch_false: ...to here
openssh-9.9p1/sftp.c:2662:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2664:21: branch_false: ...to here
openssh-9.9p1/sftp.c:2664:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2666:17: branch_false: ...to here
openssh-9.9p1/sftp.c:2666:17: call_function: calling ‘connect_to_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def122]
openssh-9.9p1/sftp.c:2393:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘in’
openssh-9.9p1/sftp.c:2438:1: enter_function: entry to ‘main’
openssh-9.9p1/sftp.c:2470:16: branch_true: following ‘true’ branch (when ‘ch != -1’)...
openssh-9.9p1/sftp.c:2472:17: branch_true: ...to here
openssh-9.9p1/sftp.c:2470:16: branch_false: following ‘false’ branch (when ‘ch == -1’)...
openssh-9.9p1/sftp.c:2600:9: branch_false: ...to here
openssh-9.9p1/sftp.c:2602:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2605:12: branch_false: ...to here
openssh-9.9p1/sftp.c:2610:12: branch_false: following ‘false’ branch (when ‘sftp_direct’ is non-NULL)...
openssh-9.9p1/sftp.c:2662:26: branch_false: ...to here
openssh-9.9p1/sftp.c:2662:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2664:21: branch_false: ...to here
openssh-9.9p1/sftp.c:2664:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2666:17: branch_false: ...to here
openssh-9.9p1/sftp.c:2666:17: call_function: calling ‘connect_to_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def123]
openssh-9.9p1/sftp.c:2395:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘c_out’
openssh-9.9p1/sftp.c:2438:1: enter_function: entry to ‘main’
openssh-9.9p1/sftp.c:2470:16: branch_true: following ‘true’ branch (when ‘ch != -1’)...
openssh-9.9p1/sftp.c:2472:17: branch_true: ...to here
openssh-9.9p1/sftp.c:2470:16: branch_false: following ‘false’ branch (when ‘ch == -1’)...
openssh-9.9p1/sftp.c:2600:9: branch_false: ...to here
openssh-9.9p1/sftp.c:2602:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2605:12: branch_false: ...to here
openssh-9.9p1/sftp.c:2610:12: branch_false: following ‘false’ branch (when ‘sftp_direct’ is non-NULL)...
openssh-9.9p1/sftp.c:2662:26: branch_false: ...to here
openssh-9.9p1/sftp.c:2662:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2664:21: branch_false: ...to here
openssh-9.9p1/sftp.c:2664:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2666:17: branch_false: ...to here
openssh-9.9p1/sftp.c:2666:17: call_function: calling ‘connect_to_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def124]
openssh-9.9p1/sftp.c:2419:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘c_out’
openssh-9.9p1/sftp.c:2438:1: enter_function: entry to ‘main’
openssh-9.9p1/sftp.c:2470:16: branch_true: following ‘true’ branch (when ‘ch != -1’)...
openssh-9.9p1/sftp.c:2472:17: branch_true: ...to here
openssh-9.9p1/sftp.c:2470:16: branch_false: following ‘false’ branch (when ‘ch == -1’)...
openssh-9.9p1/sftp.c:2600:9: branch_false: ...to here
openssh-9.9p1/sftp.c:2602:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2605:12: branch_false: ...to here
openssh-9.9p1/sftp.c:2610:12: branch_false: following ‘false’ branch (when ‘sftp_direct’ is non-NULL)...
openssh-9.9p1/sftp.c:2662:26: branch_false: ...to here
openssh-9.9p1/sftp.c:2662:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2664:21: branch_false: ...to here
openssh-9.9p1/sftp.c:2664:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sftp.c:2666:17: branch_false: ...to here
openssh-9.9p1/sftp.c:2666:17: call_function: calling ‘connect_to_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
openssh-9.9p1/ssh-add.c:305:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
openssh-9.9p1/ssh-add.c:848:1: enter_function: entry to ‘main’
openssh-9.9p1/ssh-add.c:903:25: call_function: calling ‘stringlist_append’ from ‘main’
openssh-9.9p1/ssh-add.c:903:25: return_function: returning to ‘main’ from ‘stringlist_append’
openssh-9.9p1/ssh-add.c:889:16: branch_false: following ‘false’ branch (when ‘ch == -1’)...
openssh-9.9p1/ssh-add.c:984:9: branch_false: ...to here
openssh-9.9p1/ssh-add.c:986:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-add.c:988:17: branch_false: ...to here
openssh-9.9p1/ssh-add.c:988:17: branch_false: following ‘false’ branch (when ‘xflag == 0’)...
openssh-9.9p1/ssh-add.c:992:19: branch_false: ...to here
openssh-9.9p1/ssh-add.c:992:19: branch_false: following ‘false’ branch (when ‘lflag == 0’)...
openssh-9.9p1/ssh-add.c:996:19: branch_false: ...to here
openssh-9.9p1/ssh-add.c:996:19: branch_false: following ‘false’ branch (when ‘Dflag == 0’)...
openssh-9.9p1/ssh-add.c:1003:12: branch_false: ...to here
openssh-9.9p1/ssh-add.c:1023:12: branch_false: following ‘false’ branch (when ‘Tflag == 0’)...
openssh-9.9p1/ssh-add.c:1031:12: branch_false: ...to here
openssh-9.9p1/ssh-add.c:1031:12: branch_false: following ‘false’ branch (when ‘pkcs11provider’ is NULL)...
openssh-9.9p1/ssh-add.c:1048:12: branch_false: ...to here
openssh-9.9p1/ssh-add.c:1048:12: branch_false: following ‘false’ branch (when ‘do_download == 0’)...
openssh-9.9p1/ssh-add.c:1056:12: branch_false: ...to here
openssh-9.9p1/ssh-add.c:1056:12: branch_true: following ‘true’ branch (when ‘argc == 0’)...
openssh-9.9p1/ssh-add.c:1062:27: branch_true: ...to here
openssh-9.9p1/ssh-add.c:1062:20: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/ssh-add.c:1069:29: branch_true: following ‘true’ branch...
openssh-9.9p1/ssh-add.c:1070:25: branch_true: ...to here
openssh-9.9p1/ssh-add.c:1072:28: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-add.c:1074:29: branch_false: ...to here
openssh-9.9p1/ssh-add.c:1074:29: call_function: calling ‘do_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
openssh-9.9p1/ssh-agent.c:276:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openssh-9.9p1/ssh-agent.c:1538:1: enter_function: entry to ‘add_p11_identity’
openssh-9.9p1/ssh-agent.c:1555:32: call_function: calling ‘dup_dest_constraints’ from ‘add_p11_identity’
Error: COMPILER_WARNING: [#def127]
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: [#def128]
openssh-9.9p1/ssh-keycat.c:39:9: warning[warning]: ‘_GNU_SOURCE’ redefined
Error: COMPILER_WARNING: [#def129]
openssh-9.9p1/ssh-keygen.c: scope_hint: In function ‘do_convert_to’
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: [#def130]
openssh-9.9p1/ssh-keygen.c: scope_hint: In function ‘do_gen_all_hostkeys’
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: [#def131]
openssh-9.9p1/ssh-keygen.c: scope_hint: In function ‘main’
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): [#def132]
openssh-9.9p1/ssh-pkcs11-client.c:595:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 0)’
openssh-9.9p1/ssh-pkcs11-client.c:564:1: enter_function: entry to ‘pkcs11_start_helper’
openssh-9.9p1/ssh-pkcs11-client.c:571:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11-client.c:573:9: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:574:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11-client.c:578:18: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:579:13: call_function: calling ‘pkcs11_start_helper_methods’ from ‘pkcs11_start_helper’
openssh-9.9p1/ssh-pkcs11-client.c:579:13: return_function: returning to ‘pkcs11_start_helper’ from ‘pkcs11_start_helper_methods’
openssh-9.9p1/ssh-pkcs11-client.c:579:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11-client.c:583:20: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:583:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/ssh-pkcs11-client.c:594:19: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:594:19: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/ssh-pkcs11-client.c:595:22: branch_true: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:595:22: acquire_resource: opened here
openssh-9.9p1/ssh-pkcs11-client.c:595:20: danger: ‘dup2(pair[1], 0)’ leaks here; was opened at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
openssh-9.9p1/ssh-pkcs11-client.c:595:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 1)’
openssh-9.9p1/ssh-pkcs11-client.c:564:1: enter_function: entry to ‘pkcs11_start_helper’
openssh-9.9p1/ssh-pkcs11-client.c:571:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11-client.c:573:9: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:574:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11-client.c:578:18: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:579:13: call_function: calling ‘pkcs11_start_helper_methods’ from ‘pkcs11_start_helper’
openssh-9.9p1/ssh-pkcs11-client.c:579:13: return_function: returning to ‘pkcs11_start_helper’ from ‘pkcs11_start_helper_methods’
openssh-9.9p1/ssh-pkcs11-client.c:579:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11-client.c:583:20: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:583:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/ssh-pkcs11-client.c:594:19: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:594:19: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/ssh-pkcs11-client.c:595:22: branch_true: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:595:20: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11-client.c:596:22: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11-client.c:596:22: acquire_resource: opened here
openssh-9.9p1/ssh-pkcs11-client.c:595:21: danger: ‘dup2(pair[1], 1)’ leaks here; was opened at [(25)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def134]
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/ssh-pkcs11.c:2067:1: enter_function: entry to ‘pkcs11_add_provider’
openssh-9.9p1/ssh-pkcs11.c:2074:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11.c:2077:13: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11.c:2077:12: branch_true: following ‘true’ branch...
openssh-9.9p1/ssh-pkcs11.c:2078:13: branch_true: ...to here
openssh-9.9p1/ssh-pkcs11.c:2077:13: branch_true: following ‘true’ branch...
openssh-9.9p1/ssh-pkcs11.c:2079:21: branch_true: ...to here
openssh-9.9p1/ssh-pkcs11.c:2079:20: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-pkcs11.c:2085:17: branch_false: ...to here
openssh-9.9p1/ssh-pkcs11.c:2085:17: call_function: calling ‘pkcs11_add_provider_by_uri’ from ‘pkcs11_add_provider’
Error: COMPILER_WARNING (CWE-1164): [#def135]
openssh-9.9p1/ssh-pkcs11.c:2011:1: warning[-Wunused-function]: ‘pkcs11_register_provider’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
openssh-9.9p1/ssh-sk-client.c:87:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 0)’
openssh-9.9p1/ssh-sk-client.c:61:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-sk-client.c:72:13: branch_false: ...to here
openssh-9.9p1/ssh-sk-client.c:72:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-sk-client.c:76:20: branch_false: ...to here
openssh-9.9p1/ssh-sk-client.c:77:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/ssh-sk-client.c:86:12: branch_false: ...to here
openssh-9.9p1/ssh-sk-client.c:86:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/ssh-sk-client.c:87:22: branch_true: ...to here
openssh-9.9p1/ssh-sk-client.c:87:22: acquire_resource: opened here
openssh-9.9p1/ssh-sk-client.c:87:20: danger: ‘dup2(pair[1], 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
openssh-9.9p1/ssh-sk-client.c:87:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pair[1], 1)’
openssh-9.9p1/ssh-sk-client.c:61:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-sk-client.c:72:13: branch_false: ...to here
openssh-9.9p1/ssh-sk-client.c:72:12: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-sk-client.c:76:20: branch_false: ...to here
openssh-9.9p1/ssh-sk-client.c:77:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/ssh-sk-client.c:86:12: branch_false: ...to here
openssh-9.9p1/ssh-sk-client.c:86:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/ssh-sk-client.c:87:22: branch_true: ...to here
openssh-9.9p1/ssh-sk-client.c:87:20: branch_false: following ‘false’ branch...
openssh-9.9p1/ssh-sk-client.c:88:22: branch_false: ...to here
openssh-9.9p1/ssh-sk-client.c:88:22: acquire_resource: opened here
openssh-9.9p1/ssh-sk-client.c:87:21: danger: ‘dup2(pair[1], 1)’ leaks here; was opened at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def138]
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/sshbuf-io.c:105:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshbuf-io.c:107:13: branch_false: ...to here
openssh-9.9p1/sshbuf-io.c:107:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshbuf-io.c:108:52: branch_false: ...to here
openssh-9.9p1/sshbuf-io.c:108:52: release_resource: first ‘close’ here
openssh-9.9p1/sshbuf-io.c:107:13: branch_true: following ‘true’ branch...
openssh-9.9p1/sshbuf-io.c:109:26: branch_true: ...to here
openssh-9.9p1/sshbuf-io.c:110:17: danger: second ‘close’ here; first ‘close’ was at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
openssh-9.9p1/sshconnect.c:731:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘key’
openssh-9.9p1/sshconnect.c:1471:1: enter_function: entry to ‘verify_host_key’
openssh-9.9p1/sshconnect.c:1479:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect.c:1486:13: branch_false: ...to here
openssh-9.9p1/sshconnect.c:1486:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect.c:1507:17: branch_false: ...to here
openssh-9.9p1/sshconnect.c:1510:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect.c:1518:13: branch_false: ...to here
openssh-9.9p1/sshconnect.c:1538:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect.c:1569:13: branch_false: ...to here
openssh-9.9p1/sshconnect.c:1566:13: call_function: calling ‘check_host_key’ from ‘verify_host_key’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
openssh-9.9p1/sshconnect2.c:2206:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘from[0]’
openssh-9.9p1/sshconnect2.c:2204:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2208:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2208:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2212:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2212:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2216:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2216:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2220:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2220:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
openssh-9.9p1/sshconnect2.c:2221:17: branch_true: ...to here
openssh-9.9p1/sshconnect2.c:2206:24: danger: ‘from[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
openssh-9.9p1/sshconnect2.c:2206:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘from[1]’
openssh-9.9p1/sshconnect2.c:2204:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2208:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2208:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2212:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2212:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2216:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2216:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2220:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2220:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
openssh-9.9p1/sshconnect2.c:2221:17: branch_true: ...to here
openssh-9.9p1/sshconnect2.c:2206:24: danger: ‘from[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def142]
openssh-9.9p1/sshconnect2.c:2206:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to[0]’
openssh-9.9p1/sshconnect2.c:2204:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2208:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2208:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2212:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2212:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2216:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2216:12: branch_true: following ‘true’ branch...
openssh-9.9p1/sshconnect2.c:2217:17: branch_true: ...to here
openssh-9.9p1/sshconnect2.c:2206:24: danger: ‘to[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def143]
openssh-9.9p1/sshconnect2.c:2206:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to[1]’
openssh-9.9p1/sshconnect2.c:2204:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2208:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2208:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2212:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2212:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2216:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2216:12: branch_true: following ‘true’ branch...
openssh-9.9p1/sshconnect2.c:2217:17: branch_true: ...to here
openssh-9.9p1/sshconnect2.c:2206:24: danger: ‘to[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def144]
openssh-9.9p1/sshconnect2.c:2227:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(from[1], 1)’
openssh-9.9p1/sshconnect2.c:2204:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2208:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2208:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2212:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2212:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2216:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2216:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2220:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2220:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/sshconnect2.c:2224:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2225:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/sshconnect2.c:2226:17: branch_true: ...to here
openssh-9.9p1/sshconnect2.c:2227:21: acquire_resource: opened here
openssh-9.9p1/sshconnect2.c:2227:20: danger: ‘dup2(from[1], 1)’ leaks here; was opened at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def145]
openssh-9.9p1/sshconnect2.c:2230:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(to[0], 0)’
openssh-9.9p1/sshconnect2.c:2204:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2208:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2208:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2212:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2212:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2216:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2216:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2220:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2220:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/sshconnect2.c:2224:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2225:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/sshconnect2.c:2226:17: branch_true: ...to here
openssh-9.9p1/sshconnect2.c:2227:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2229:17: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2230:21: acquire_resource: opened here
openssh-9.9p1/sshconnect2.c:2230:20: danger: ‘dup2(to[0], 0)’ leaks here; was opened at [(17)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def146]
openssh-9.9p1/sshconnect2.c:2235:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ssh_packet_get_connection_in(ssh), 3)’
openssh-9.9p1/sshconnect2.c:2204:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2208:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2208:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2212:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2212:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2216:13: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2216:12: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2220:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2220:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
openssh-9.9p1/sshconnect2.c:2224:20: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2225:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
openssh-9.9p1/sshconnect2.c:2226:17: branch_true: ...to here
openssh-9.9p1/sshconnect2.c:2227:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2229:17: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2230:20: branch_false: following ‘false’ branch...
openssh-9.9p1/sshconnect2.c:2232:17: branch_false: ...to here
openssh-9.9p1/sshconnect2.c:2235:21: acquire_resource: opened here
openssh-9.9p1/sshconnect2.c:2235:20: danger: ‘dup2(ssh_packet_get_connection_in(ssh), 3)’ leaks here; was opened at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
openssh-9.9p1/sshd.c:1372:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘devnull’
openssh-9.9p1/sshd.c:1363:13: branch_false: following ‘false’ branch...
openssh-9.9p1/sshd.c:1366:9: branch_false: ...to here
openssh-9.9p1/sshd.c:1369:24: acquire_resource: opened here
openssh-9.9p1/sshd.c:1369:12: branch_false: following ‘false’ branch...
branch_false: ...to here
openssh-9.9p1/sshd.c:1371:16: branch_true: following ‘true’ branch (when ‘devnull <= 5’)...
openssh-9.9p1/sshd.c:1372:32: branch_true: ...to here
openssh-9.9p1/sshd.c:1372:20: branch_false: following ‘false’ branch (when ‘devnull != -1’)...
branch_false: ...to here
openssh-9.9p1/sshd.c:1372:20: danger: ‘devnull’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
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-181.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | openssh-9.9p1-15.fc43 |
store-results-to | /tmp/tmp5helbt_r/openssh-9.9p1-15.fc43.tar.xz |
time-created | 2025-04-25 14:39:01 |
time-finished | 2025-04-25 14:42:09 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp5helbt_r/openssh-9.9p1-15.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp5helbt_r/openssh-9.9p1-15.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |