Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function ‘nm_utils_buf_utf8safe_escape_strv’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:3059:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_strv’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:3043:5: note: in expansion of macro ‘g_return_val_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:3044:5: note: in expansion of macro ‘g_return_val_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:3044:5: note: in expansion of macro ‘g_return_val_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:2918:5: note: in expansion of macro ‘g_return_val_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:542:5: note: in expansion of macro ‘NM_SET_OUT’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:1901:45: note: in expansion of macro ‘nm_strv_dup_full’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:3056:28: note: in expansion of macro ‘nm_strv_dup’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:1901:45: note: in expansion of macro ‘nm_strv_dup_full’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:3056:28: note: in expansion of macro ‘nm_strv_dup’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:1901:45: note: in expansion of macro ‘nm_strv_dup_full’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:3056:28: note: in expansion of macro ‘nm_strv_dup’ # 3057| } # 3058| # 3059|-> g_free(new_strv[i]); # 3060| new_strv[i] = to_free_str; # 3061| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-plobj.h:203:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addr_without_acd_info’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c: scope_hint: In function ‘_ipv4ll_platform_find_addr’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-default-daemon.h:11: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:3: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:667:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:12: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro ‘g_return_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘_ipv4ll_platform_find_addr’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:667:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:667:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘_ipv4ll_platform_find_addr’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro ‘g_return_val_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:667:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro ‘NM_SET_OUT’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro ‘NM_SET_OUT’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c: scope_hint: In function ‘_ipv4ll_platform_find_addr’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:614:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:668:16: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’ # 201| nm_assert(a); # 202| # 203|-> return nm_ip4_addr_is_link_local(a->address) && a->plen == NM_IPV4LL_PREFIXLEN # 204| && a->address == a->peer_address; # 205| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-plobj.h:203:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addr’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c: scope_hint: In function ‘nm_l3_config_data_add_address_full’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:10: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3059:9: note: in expansion of macro ‘nmp_cache_iter_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:6: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-default-daemon.h:11: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro ‘g_return_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here. NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘nm_l3_config_data_add_address_full’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3059:9: note: in expansion of macro ‘nmp_cache_iter_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3059:9: note: in expansion of macro ‘nmp_cache_iter_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘nm_l3_config_data_add_address_full’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/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.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro ‘g_return_val_if_fail’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3059:9: note: in expansion of macro ‘nmp_cache_iter_for_each’ NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c: scope_hint: In function ‘nm_l3_config_data_add_address_full’ # 201| nm_assert(a); # 202| # 203|-> return nm_ip4_addr_is_link_local(a->address) && a->plen == NM_IPV4LL_PREFIXLEN # 204| && a->address == a->peer_address; # 205| }
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-145.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | NetworkManager-1.50.0-1.fc41 |
diffbase-store-results-to | /tmp/tmpmelk7hpk/NetworkManager-1.50.0-1.fc41.tar.xz |
diffbase-time-created | 2024-11-12 23:08:28 |
diffbase-time-finished | 2024-11-12 23:26:46 |
diffbase-tool | csmock |
diffbase-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' |
diffbase-tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-145.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | NetworkManager-1.51.2-2.fc42 |
store-results-to | /tmp/tmp0yse99t8/NetworkManager-1.51.2-2.fc42.tar.xz |
time-created | 2024-11-12 23:27:00 |
time-finished | 2024-11-12 23:44:45 |
title | Newly introduced findings |
tool | csmock |
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' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |