Task #1602 - libslirp-4.7.0-6.fc40/scan-results.err
back to task #1602download
Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/arp_table.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/bootp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/cksum.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/dhcpv6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/dnssearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/if.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/ip6_icmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/ip6_output.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/ip_icmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/ip_input.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/ip_output.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c: scope_hint: In function ‘slirp_socketpair_with_oob’ libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c:109:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sv[1]’ # 107| do { # 108| ret = connect(sv[1], (struct sockaddr *)&addr, addrlen); # 109|-> } while (ret < 0 && errno == EINTR); # 110| if (ret < 0) { # 111| goto err; Error: GCC_ANALYZER_WARNING (CWE-775): libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c: scope_hint: In function ‘fork_exec’ libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c:215:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sp[0]’ libslirp-4.7.0-build/libslirp-4.7.0/src/slirp.h:39: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c:6: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c:121:5: note: in expansion of macro ‘closesocket’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/util.h:27: included_from: Included from here. /usr/include/glib-2.0/glib/gmessages.h:361:32: note: in definition of macro ‘g_critical’ # 213| # 214| if (slirp_socketpair_with_oob(sp) < 0) { # 215|-> return 0; # 216| } # 217| Error: GCC_ANALYZER_WARNING (CWE-775): libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c: scope_hint: In function ‘slirp_bind_outbound’ libslirp-4.7.0-build/libslirp-4.7.0/src/misc.c:441:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*so.s’ # 439| # 440| if (addr != NULL) { # 441|-> ret = bind(so->s, addr, addr_size); # 442| } # 443| return ret; Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/ndp_table.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/sbuf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/slirp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_input.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_output.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c: scope_hint: In function ‘tcp_fconnect’ libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:444:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’ # 442| * without clearing SS_NOFDREF # 443| */ # 444|-> soisfconnecting(so); # 445| } # 446| Error: GCC_ANALYZER_WARNING (CWE-775): libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c: scope_hint: In function ‘tcp_connect’ libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:534:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*inso.s’ /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/util.h:27: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/slirp.h:39: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:39: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:487:5: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ libslirp-4.7.0-build/libslirp-4.7.0/src/debug.h:33:13: note: in expansion of macro ‘G_UNLIKELY’ libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:488:5: note: in expansion of macro ‘DEBUG_ARG’ # 532| addrlen = sizeof(addr); # 533| s = accept(inso->s, (struct sockaddr *)&addr, &addrlen); # 534|-> if (s < 0) { # 535| tcp_close(sototcpcb(so)); /* This will sofree() as well */ # 536| return; Error: GCC_ANALYZER_WARNING (CWE-775): libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:538:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*inso.s’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:487:5: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ libslirp-4.7.0-build/libslirp-4.7.0/src/debug.h:33:13: note: in expansion of macro ‘G_UNLIKELY’ libslirp-4.7.0-build/libslirp-4.7.0/src/tcp_subr.c:488:5: note: in expansion of macro ‘DEBUG_ARG’ # 536| return; # 537| } # 538|-> slirp_set_nonblock(s); # 539| so->slirp->cb->register_poll_fd(s, so->slirp->opaque); # 540| slirp_socket_set_fast_reuse(s); Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/tftp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/udp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): libslirp-4.7.0-build/libslirp-4.7.0/src/udp.c: scope_hint: In function ‘udpx_listen’ libslirp-4.7.0-build/libslirp-4.7.0/src/udp.c:389:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.s’ # 387| slirp_insque(so, &slirp->udb); # 388| # 389|-> if (bind(so->s, haddr, haddrlen) < 0) { # 390| save_errno = errno; # 391| udp_detach(so); Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/udp6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libslirp-4.7.0-build/libslirp-4.7.0/src/vmstate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libslirp-4.7.0-build/libslirp-4.7.0/src/vmstate.c: scope_hint: In function ‘slirp_vmstate_load_state’ libslirp-4.7.0-build/libslirp-4.7.0/src/vmstate.c:412:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curr_elem’ libslirp-4.7.0-build/libslirp-4.7.0/src/util.h:31: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/slirp.h:39: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/vmstate.h:45: included_from: Included from here. libslirp-4.7.0-build/libslirp-4.7.0/src/vmstate.c:46: included_from: Included from here. # 410| # 411| if (field->flags & VMS_ARRAY_OF_POINTER) { # 412|-> curr_elem = *(void **)curr_elem; # 413| } # 414| if (!curr_elem && size) { Error: GCC_ANALYZER_WARNING (CWE-476): libslirp-4.7.0-build/libslirp-4.7.0/test/pingtest.c: scope_hint: In function ‘timer_new_opaque’ libslirp-4.7.0-build/libslirp-4.7.0/test/pingtest.c:209:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_timer’ # 207| static void *timer_new_opaque(SlirpTimerId id, void *cb_opaque, void *opaque) { # 208| struct timer *new_timer = malloc(sizeof(*new_timer)); # 209|-> new_timer->id = id; # 210| new_timer->cb_opaque = cb_opaque; # 211| new_timer->next = NULL;