libslirp-4.8.0-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libslirp-4.8.0-build/libslirp-4.8.0/src/arp_table.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libslirp-4.8.0-build/libslirp-4.8.0/src/bootp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libslirp-4.8.0-build/libslirp-4.8.0/src/cksum.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libslirp-4.8.0-build/libslirp-4.8.0/src/dhcpv6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libslirp-4.8.0-build/libslirp-4.8.0/src/dnssearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libslirp-4.8.0-build/libslirp-4.8.0/src/if.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
libslirp-4.8.0-build/libslirp-4.8.0/src/ip6_icmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
libslirp-4.8.0-build/libslirp-4.8.0/src/ip6_output.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libslirp-4.8.0-build/libslirp-4.8.0/src/ip_icmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libslirp-4.8.0-build/libslirp-4.8.0/src/ip_input.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libslirp-4.8.0-build/libslirp-4.8.0/src/ip_output.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libslirp-4.8.0-build/libslirp-4.8.0/src/mbuf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def13]
libslirp-4.8.0-build/libslirp-4.8.0/src/mbuf.c:41:9: warning[deadcode.DeadStores]: Value stored to 'last' is never read
#   39|           next = m->m_next;
#   40|   
#   41|->         last = false;
#   42|           while (1) {
#   43|               next2 = m->m_nextpkt;

Error: CPPCHECK_WARNING: [#def14]
libslirp-4.8.0-build/libslirp-4.8.0/src/misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
libslirp-4.8.0-build/libslirp-4.8.0/src/misc.c: scope_hint: In function ‘slirp_socketpair_with_oob’
libslirp-4.8.0-build/libslirp-4.8.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): [#def16]
libslirp-4.8.0-build/libslirp-4.8.0/src/misc.c: scope_hint: In function ‘fork_exec’
libslirp-4.8.0-build/libslirp-4.8.0/src/misc.c:219:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sp[0]’
libslirp-4.8.0-build/libslirp-4.8.0/src/slirp.h:39: included_from: Included from here.
libslirp-4.8.0-build/libslirp-4.8.0/src/misc.c:6: included_from: Included from here.
libslirp-4.8.0-build/libslirp-4.8.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.8.0-build/libslirp-4.8.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’
#  217|   
#  218|       if (slirp_socketpair_with_oob(sp) < 0) {
#  219|->         return 0;
#  220|       }
#  221|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
libslirp-4.8.0-build/libslirp-4.8.0/src/misc.c: scope_hint: In function ‘slirp_bind_outbound’
libslirp-4.8.0-build/libslirp-4.8.0/src/misc.c:445:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*so.s’
#  443|   
#  444|       if (addr != NULL) {
#  445|->         ret = bind(so->s, addr, addr_size);
#  446|       }
#  447|       return ret;

Error: CPPCHECK_WARNING: [#def18]
libslirp-4.8.0-build/libslirp-4.8.0/src/ndp_table.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libslirp-4.8.0-build/libslirp-4.8.0/src/sbuf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libslirp-4.8.0-build/libslirp-4.8.0/src/slirp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libslirp-4.8.0-build/libslirp-4.8.0/src/socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_input.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_output.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libslirp-4.8.0-build/libslirp-4.8.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): [#def25]
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_subr.c: scope_hint: In function ‘tcp_fconnect’
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_subr.c:420:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
#  418|            * without clearing SS_NOFDREF
#  419|            */
#  420|->         soisfconnecting(so);
#  421|       }
#  422|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_subr.c: scope_hint: In function ‘tcp_connect’
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_subr.c:508: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.8.0-build/libslirp-4.8.0/src/util.h:27: included_from: Included from here.
libslirp-4.8.0-build/libslirp-4.8.0/src/slirp.h:39: included_from: Included from here.
libslirp-4.8.0-build/libslirp-4.8.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.8.0-build/libslirp-4.8.0/src/tcp_subr.c:461: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.8.0-build/libslirp-4.8.0/src/debug.h:40:13: note: in expansion of macro ‘G_UNLIKELY’
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_subr.c:462:5: note: in expansion of macro ‘DEBUG_ARG’
#  506|       addrlen = sizeof(addr);
#  507|       s = accept(inso->s, (struct sockaddr *)&addr, &addrlen);
#  508|->     if (s < 0) {
#  509|           tcp_close(sototcpcb(so)); /* This will sofree() as well */
#  510|           return;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_subr.c:512: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.8.0-build/libslirp-4.8.0/src/tcp_subr.c:461: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.8.0-build/libslirp-4.8.0/src/debug.h:40:13: note: in expansion of macro ‘G_UNLIKELY’
libslirp-4.8.0-build/libslirp-4.8.0/src/tcp_subr.c:462:5: note: in expansion of macro ‘DEBUG_ARG’
#  510|           return;
#  511|       }
#  512|->     slirp_set_nonblock(s);
#  513|       so->slirp->cb->register_poll_fd(s, so->slirp->opaque);
#  514|       slirp_socket_set_fast_reuse(s);

Error: CPPCHECK_WARNING: [#def28]
libslirp-4.8.0-build/libslirp-4.8.0/src/tftp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
libslirp-4.8.0-build/libslirp-4.8.0/src/udp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
libslirp-4.8.0-build/libslirp-4.8.0/src/udp.c: scope_hint: In function ‘udpx_listen’
libslirp-4.8.0-build/libslirp-4.8.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: [#def31]
libslirp-4.8.0-build/libslirp-4.8.0/src/udp6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
libslirp-4.8.0-build/libslirp-4.8.0/src/vmstate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
libslirp-4.8.0-build/libslirp-4.8.0/src/vmstate.c: scope_hint: In function ‘slirp_vmstate_load_state’
libslirp-4.8.0-build/libslirp-4.8.0/src/vmstate.c:413:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curr_elem’
libslirp-4.8.0-build/libslirp-4.8.0/src/util.h:31: included_from: Included from here.
libslirp-4.8.0-build/libslirp-4.8.0/src/slirp.h:39: included_from: Included from here.
libslirp-4.8.0-build/libslirp-4.8.0/src/vmstate.h:44: included_from: Included from here.
libslirp-4.8.0-build/libslirp-4.8.0/src/vmstate.c:46: included_from: Included from here.
#  411|   
#  412|                   if (field->flags & VMS_ARRAY_OF_POINTER) {
#  413|->                     curr_elem = *(void **)curr_elem;
#  414|                   }
#  415|                   if (!curr_elem && size) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
libslirp-4.8.0-build/libslirp-4.8.0/test/pingtest.c: scope_hint: In function ‘timer_new_opaque’
libslirp-4.8.0-build/libslirp-4.8.0/test/pingtest.c:211:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_timer’
#  209|   static void *timer_new_opaque(SlirpTimerId id, void *cb_opaque, void *opaque) {
#  210|       struct timer *new_timer = malloc(sizeof(*new_timer));
#  211|->     new_timer->id = id;
#  212|       new_timer->cb_opaque = cb_opaque;
#  213|       new_timer->next = NULL;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-249.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibslirp-4.8.0-1.fc41
store-results-to/tmp/tmp9z_t6pz1/libslirp-4.8.0-1.fc41.tar.xz
time-created2024-07-03 15:52:10
time-finished2024-07-03 15:53:17
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp9z_t6pz1/libslirp-4.8.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp9z_t6pz1/libslirp-4.8.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9