libssh2-1.11.1-1.fc42
List of Findings
Error: COMPILER_WARNING (CWE-252): [#def1]
libssh2-1.11.1-build/libssh2-1.11.1/example/scp.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/scp.c:163:13: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def2]
libssh2-1.11.1-build/libssh2-1.11.1/example/scp_nonblock.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/scp_nonblock.c:255:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
libssh2-1.11.1-build/libssh2-1.11.1/example/scp_write_nonblock.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/scp_write_nonblock.c:135:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libssh2-1.11.1-build/libssh2-1.11.1/example/scp_write_nonblock.c:135:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
Error: COMPILER_WARNING (CWE-252): [#def5]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c: scope_hint: In function ‘kbd_callback’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c:73:9: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c:83:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*<unknown>.text’ where non-null expected
/usr/include/stdio.h:735:15: note: argument 1 of ‘fwrite’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c: scope_hint: In function ‘kbd_callback’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c:83:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*responses.text’ where non-null expected
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c:34: included_from: Included from here.
/usr/include/stdio.h:735:15: note: argument 1 of ‘fwrite’ must be non-null
Error: COMPILER_WARNING (CWE-252): [#def8]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp.c:278:13: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def9]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_RW_nonblock.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_RW_nonblock.c:245:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def10]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_nonblock.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_nonblock.c:267:13: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:146:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:146:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:154:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:154:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:161:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:14: included_from: Included from here.
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:160:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:161:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:160:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:174:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:160:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:174:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:160:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:187:60: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:160:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:187:60: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_nonblock.c:160:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c: scope_hint: In function ‘main’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:147:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:147:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:155:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:155:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:162:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:14: included_from: Included from here.
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:161:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:162:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:161:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:175:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:161:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:175:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:161:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:188:60: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:161:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:188:60: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loclfile, "rb")’
libssh2-1.11.1-build/libssh2-1.11.1/example/sftp_write_sliding.c:161:15: note: in expansion of macro ‘libssh2_session_init’
Error: GCC_ANALYZER_WARNING (CWE-835): [#def31]
libssh2-1.11.1-build/libssh2-1.11.1/example/x11.c: scope_hint: In function ‘remove_node’
libssh2-1.11.1-build/libssh2-1.11.1/example/x11.c:71:23: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
libssh2-1.11.1-build/libssh2-1.11.1/example/x11.c: scope_hint: In function ‘x11_callback’
libssh2-1.11.1-build/libssh2-1.11.1/example/x11.c:170:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘gp_x11_chan’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
libssh2-1.11.1-build/libssh2-1.11.1/example/x11.c:181:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
Error: COMPILER_WARNING (CWE-252): [#def34]
libssh2-1.11.1-build/libssh2-1.11.1/example/x11.c: scope_hint: In function ‘x11_send_receive’
libssh2-1.11.1-build/libssh2-1.11.1/example/x11.c:242:13: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
libssh2-1.11.1-build/libssh2-1.11.1/src/agent.c: scope_hint: In function 'agent_connect_unix'
libssh2-1.11.1-build/libssh2-1.11.1/src/agent.c:195:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'socket(1, 1, 0)'
Error: CPPCHECK_WARNING (CWE-562): [#def36]
libssh2-1.11.1-build/libssh2-1.11.1/src/kex.c:2091: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def37]
libssh2-1.11.1-build/libssh2-1.11.1/src/kex.c:2094: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def38]
libssh2-1.11.1-build/libssh2-1.11.1/src/kex.c:2097: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
libssh2-1.11.1-build/libssh2-1.11.1/src/misc.c: scope_hint: In function 'libssh2_base64_decode'
libssh2-1.11.1-build/libssh2-1.11.1/src/misc.c:371:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'dlen'
Error: GCC_ANALYZER_WARNING (CWE-835): [#def40]
libssh2-1.11.1-build/libssh2-1.11.1/src/scp.c: scope_hint: In function 'scp_recv'
libssh2-1.11.1-build/libssh2-1.11.1/src/scp.c:407:18: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: GCC_ANALYZER_WARNING (CWE-835): [#def41]
libssh2-1.11.1-build/libssh2-1.11.1/src/scp.c:608:22: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: CPPCHECK_WARNING (CWE-562): [#def42]
libssh2-1.11.1-build/libssh2-1.11.1/src/session.c:482: error[returnDanglingLifetime]: Returning pointer to local variable 'abstract' that will be invalid when returning.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def43]
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c: scope_hint: In function '_libssh2_transport_read'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:583:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&block'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:45: included_from: Included from here.
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:441:16: note: in expansion of macro 'CRYPT_FLAG_R'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:441:16: note: in expansion of macro 'CRYPT_FLAG_R'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:49: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:628:44: warning[-Wanalyzer-null-dereference]: dereference of NULL 'remote_mac'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:441:16: note: in expansion of macro 'CRYPT_FLAG_R'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:441:16: note: in expansion of macro 'CRYPT_FLAG_R'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:600:31: note: in expansion of macro 'CRYPT_FLAG_R'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c: scope_hint: In function '_libssh2_transport_send'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:1241:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'local_mac'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:1051:9: note: in expansion of macro 'CRYPT_FLAG_R'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:1051:9: note: in expansion of macro 'CRYPT_FLAG_R'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:1189:12: note: in expansion of macro 'CRYPT_FLAG_L'
libssh2-1.11.1-build/libssh2-1.11.1/src/transport.c:1189:12: note: in expansion of macro 'CRYPT_FLAG_L'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
libssh2-1.11.1-build/libssh2-1.11.1/src/userauth.c: scope_hint: In function 'sign_fromfile'
libssh2-1.11.1-build/libssh2-1.11.1/src/userauth.c:888:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'privkeyobj'
libssh2-1.11.1-build/libssh2-1.11.1/src/userauth.c:52: included_from: Included from here.
libssh2-1.11.1-build/libssh2-1.11.1/src/session.h:59:18: note: in definition of macro 'BLOCK_ADJUST'
libssh2-1.11.1-build/libssh2-1.11.1/src/userauth.c:42: included_from: Included from here.
libssh2-1.11.1-build/libssh2-1.11.1/src/userauth.c:1733:19: note: in expansion of macro 'LIBSSH2_ALLOC'
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-40.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libssh2-1.11.1-1.fc42 |
store-results-to | /tmp/tmp4sq4suy9/libssh2-1.11.1-1.fc42.tar.xz |
time-created | 2024-11-13 01:54:07 |
time-finished | 2024-11-13 01:55:43 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp4sq4suy9/libssh2-1.11.1-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp4sq4suy9/libssh2-1.11.1-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |