Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:293:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addr_without_acd_info’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c: scope_hint: In function ‘_ipv4ll_platform_find_addr’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.h:6: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:5: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:3: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-platform/nmp-object.h:13: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3cfg.h:6: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘_ipv4ll_platform_find_addr’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘_ipv4ll_platform_find_addr’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro ‘g_return_val_if_fail’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro ‘NM_SET_OUT’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro ‘NM_SET_OUT’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c: scope_hint: In function ‘_ipv4ll_platform_find_addr’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/libnm-platform/nmp-object.h:606:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.50.0-build/NetworkManager-1.50.0/src/core/nm-l3-ipv4ll.c:679:16: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
#  291|       nm_assert(a);
#  292|   
#  293|->     return nm_ip4_addr_is_link_local(a->address) && a->plen == ADDR_IPV4LL_PREFIX_LEN
#  294|              && a->address == a->peer_address;
#  295|   }

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-145.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameNetworkManager-1.51.2-2.fc42
diffbase-store-results-to/tmp/tmp0yse99t8/NetworkManager-1.51.2-2.fc42.tar.xz
diffbase-time-created2024-11-12 23:27:00
diffbase-time-finished2024-11-12 23:44:45
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp0yse99t8/NetworkManager-1.51.2-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp0yse99t8/NetworkManager-1.51.2-2.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-145.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameNetworkManager-1.50.0-1.fc41
store-results-to/tmp/tmpmelk7hpk/NetworkManager-1.50.0-1.fc41.tar.xz
time-created2024-11-12 23:08:28
time-finished2024-11-12 23:26:46
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpmelk7hpk/NetworkManager-1.50.0-1.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpmelk7hpk/NetworkManager-1.50.0-1.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9