libslirp-4.7.0-6.fc40

List of Defects

Error: CPPCHECK_WARNING: [#def1]
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: [#def2]
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: [#def3]
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: [#def4]
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: [#def5]
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: [#def6]
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: [#def7]
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: [#def8]
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: [#def9]
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: [#def10]
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: [#def11]
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: [#def12]
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): [#def13]
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): [#def14]
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): [#def15]
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: [#def16]
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: [#def17]
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: [#def18]
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: [#def19]
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: [#def20]
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: [#def21]
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: [#def22]
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): [#def23]
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): [#def24]
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): [#def25]
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: [#def26]
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: [#def27]
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): [#def28]
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: [#def29]
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: [#def30]
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): [#def31]
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): [#def32]
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;

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.7.0-6.fc40
store-results-to/tmp/tmpk_k8bhvj/libslirp-4.7.0-6.fc40.tar.xz
time-created2024-07-03 15:50:28
time-finished2024-07-03 15:51:57
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpk_k8bhvj/libslirp-4.7.0-6.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpk_k8bhvj/libslirp-4.7.0-6.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9