Task #301 - c-ares-1.31.0-1.fc41/scan-results.err
back to task #301download
Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__addrinfo2hostent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__buf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__buf.c:998: warning[uninitvar]: Uninitialized variable: status # 996| # 997| # 998|-> if (status != ARES_SUCCESS) { # 999| ares__buf_destroy(binbuf); # 1000| } else { Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__close_sockets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__hosts_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__htable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__iface_ips.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__parse_into_addrinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__slist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__sortaddrinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares__threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_destroy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_dns_name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_dns_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_dns_record.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_dns_write.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_event_configchg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_event_select.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_event_thread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING (CWE-252): c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_event_wake_pipe.c: scope_hint: In function ‘ares_pipeevent_signal’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_event_wake_pipe.c:120:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ # 120 | (void)write(p->filedes[1], "1", 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 118| # 119| p = e->data; # 120|-> (void)write(p->filedes[1], "1", 1); # 121| } # 122| Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_expand_name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_expand_string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_fds.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_getaddrinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_gethostbyaddr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_gethostbyname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_getnameinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_getnameinfo.c: scope_hint: In function ‘ares_getnameinfo_int’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_getnameinfo.c:175:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addr’ # 173| if (sa->sa_family == AF_INET) { # 174| niquery->family = AF_INET; # 175|-> memcpy(&niquery->addr.addr4, addr, sizeof(niquery->addr.addr4)); # 176| ares_gethostbyaddr(channel, &addr->sin_addr, sizeof(struct in_addr), # 177| AF_INET, nameinfo_callback, niquery); Error: GCC_ANALYZER_WARNING (CWE-688): c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_getnameinfo.c:180:9: warning[-Wanalyzer-null-argument]: use of NULL ‘addr6’ where non-null expected <built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null # 178| } else { # 179| niquery->family = AF_INET6; # 180|-> memcpy(&niquery->addr.addr6, addr6, sizeof(niquery->addr.addr6)); # 181| ares_gethostbyaddr(channel, &addr6->sin6_addr, # 182| sizeof(struct ares_in6_addr), AF_INET6, Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_getsock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_options.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_qcache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c: scope_hint: In function ‘ares__rand_bytes_fetch’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c:322:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘*state.state.rand_file’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c: scope_hint: In function ‘ares__rand_bytes_fetch’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c: scope_hint: In function ‘ares__rand_bytes_fetch’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c: scope_hint: In function ‘ares__rand_bytes_fetch’ # 320| size_t rv = fread(buf + bytes_read, 1, len - bytes_read, # 321| state->state.rand_file); # 322|-> if (rv == 0) { # 323| break; /* critical error, will reinit rand state */ # 324| } Error: GCC_ANALYZER_WARNING (CWE-401): c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c:322:14: warning[-Wanalyzer-malloc-leak]: leak of ‘*state.state.rand_file’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c: scope_hint: In function ‘ares__rand_bytes_fetch’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c: scope_hint: In function ‘ares__rand_bytes_fetch’ c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_rand.c: scope_hint: In function ‘ares__rand_bytes_fetch’ # 320| size_t rv = fread(buf + bytes_read, 1, len - bytes_read, # 321| state->state.rand_file); # 322|-> if (rv == 0) { # 323| break; /* critical error, will reinit rand state */ # 324| } Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_send.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_sysconfig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_sysconfig_files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: c-ares-1.31.0-build/c-ares-1.31.0/src/lib/ares_update_servers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.