c-ares-1.31.0-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
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: [#def2]
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): [#def3]
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: [#def4]
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: [#def5]
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: [#def6]
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: [#def7]
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: [#def8]
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: [#def9]
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: [#def10]
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: [#def11]
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: [#def12]
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: [#def13]
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: [#def14]
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: [#def15]
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: [#def16]
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: [#def17]
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: [#def18]
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: [#def19]
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: [#def20]
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): [#def21]
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: [#def22]
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: [#def23]
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: [#def24]
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: [#def25]
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: [#def26]
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: [#def27]
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: [#def28]
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): [#def29]
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): [#def30]
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: [#def31]
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: [#def32]
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: [#def33]
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: [#def34]
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): [#def35]
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): [#def36]
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: [#def37]
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: [#def38]
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: [#def39]
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: [#def40]
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: [#def41]
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.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-186.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | c-ares-1.31.0-1.fc41 |
store-results-to | /tmp/tmpankimcjx/c-ares-1.31.0-1.fc41.tar.xz |
time-created | 2024-07-03 12:08:49 |
time-finished | 2024-07-03 12:10:10 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpankimcjx/c-ares-1.31.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpankimcjx/c-ares-1.31.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |