Task #113 - added.err
back to task #113download
Error: GCC_ANALYZER_WARNING (CWE-688): libssh-0.10.6/src/ecdh_crypto.c: scope_hint: In function ‘ecdh_build_k’ libssh-0.10.6/src/ecdh_crypto.c:302:15: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libssh-0.10.6/src/ecdh_crypto.c: scope_hint: In function ‘ecdh_build_k’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 300| ssh_string_len(peer_pubkey)); # 301| curve = ecdh_kex_type_to_curve(next_crypto->kex_type); # 302|-> params[1] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME, # 303| (char *)curve, # 304| strlen(curve)); Error: CLANG_WARNING: libssh-0.10.6/src/ecdh_crypto.c:337:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'secret' # 335| rc = EVP_PKEY_derive(dh_ctx, secret, &secret_len); # 336| if (rc != 1) { # 337|-> EVP_PKEY_CTX_free(dh_ctx); # 338| return -1; # 339| } Error: COMPILER_WARNING (CWE-563): libssh-0.10.6/tests/torture.c: scope_hint: In function ‘torture_setup_tokens’ libssh-0.10.6/tests/torture.c:1242:10: warning[-Wunused-variable]: unused variable ‘conf_path’ # 1242 | char conf_path[1024] = {0}; # | ^~~~~~~~~ # 1240| char token_setup_start_cmd[1024] = {0}; # 1241| char socket_path[1204] = {0}; # 1242|-> char conf_path[1024] = {0}; # 1243| int rc; # 1244| Error: COMPILER_WARNING (CWE-563): libssh-0.10.6/tests/torture.c:1286:9: warning[-Wunused-variable]: unused variable ‘rc’ # 1286 | int rc; # | ^~ # 1284| { # 1285| char pidfile[1024] = {0}; # 1286|-> int rc; # 1287| pid_t pid; # 1288| Error: COMPILER_WARNING (CWE-563): libssh-0.10.6/tests/torture.c: scope_hint: In function ‘torture_cleanup_tokens’ libssh-0.10.6/tests/torture.c:1287:11: warning[-Wunused-variable]: unused variable ‘pid’ # 1287 | pid_t pid; # | ^~~ # 1285| char pidfile[1024] = {0}; # 1286| int rc; # 1287|-> pid_t pid; # 1288| # 1289| #ifdef WITH_PKCS11_PROVIDER