NetworkManager-1.51.2-2.fc42

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/redhat-linux-build/libnm-scan.c: scope_hint: In function ‘main’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/redhat-linux-build/libnm-scan.c:541:3: warning[-Wunused-value]: statement with no effect
#  541 |   "g_type_init();";
#      |   ^~~~~~~~~~~~~~~~

Error: GCC_ANALYZER_WARNING (CWE-416): [#def2]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-list/src/c-list.h:116:28: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘node’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd-private.h:91:31: note: in expansion of macro ‘C_LIST_INIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:344:22: note: in expansion of macro ‘N_ACD_NULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:150:29: note: in definition of macro ‘_c_internal_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro ‘_c_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro ‘_c_internal_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:353:16: note: in expansion of macro ‘_c_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:768:17: note: in definition of macro ‘C_DEFINE_DIRECT_CLEANUP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-list/src/c-list.h:107:37: note: in definition of macro ‘c_list_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro ‘c_list_for_each_entry_safe’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro ‘c_list_for_each_entry_safe’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-list/src/c-list.h: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro ‘c_list_for_each_entry_safe’
#  114|    */
#  115|   static inline _Bool c_list_is_linked(const CList *what) {
#  116|->         return what && what->next != what;
#  117|   }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-list/src/c-list.h:194:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prev’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd-private.h:91:31: note: in expansion of macro ‘C_LIST_INIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:344:22: note: in expansion of macro ‘N_ACD_NULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:150:29: note: in definition of macro ‘_c_internal_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro ‘_c_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro ‘_c_internal_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:353:16: note: in expansion of macro ‘_c_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:768:17: note: in definition of macro ‘C_DEFINE_DIRECT_CLEANUP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_event_node_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-list/src/c-list.h:107:37: note: in definition of macro ‘c_list_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro ‘c_list_for_each_entry_safe’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro ‘c_list_for_each_entry_safe’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-list/src/c-list.h: scope_hint: In function ‘n_acd_event_node_free’
#  192|   
#  193|           next->prev = prev;
#  194|->         prev->next = next;
#  195|   }
#  196|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c:400:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c: scope_hint: In function ‘c_rbnode_unlink_stale’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux.h:43: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c:28: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:134:30: note: in expansion of macro ‘_c_internal_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro ‘_c_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro ‘_c_internal_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:327:17: note: in expansion of macro ‘_c_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c:1016:9: note: in expansion of macro ‘c_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:150:29: note: in definition of macro ‘_c_internal_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro ‘_c_boolean_expr_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro ‘_c_internal_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-stdaux/src/c-stdaux-generic.h:327:17: note: in expansion of macro ‘_c_likely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c:1017:9: note: in expansion of macro ‘c_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c:31: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c: scope_hint: In function ‘c_rbnode_unlink_stale’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c: scope_hint: In function ‘c_rbnode_unlink_stale’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-rbtree/src/c-rbtree.c: scope_hint: In function ‘c_rbnode_unlink_stale’
#  398|            * undefined behavior.
#  399|            */
#  400|->         *(volatile CRBNode **)ptr = addr;
#  401|   }
#  402|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c: scope_hint: In function ‘nm_utils_qdiscs_from_tc_setting’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1303:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:28: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:625:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1301:36: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
# 1301|           NMPlatformQdisc *qdisc   = NMP_OBJECT_CAST_QDISC(q);
# 1302|   
# 1303|->         qdisc->ifindex = ip_ifindex;
# 1304|           qdisc->kind    = nm_tc_qdisc_get_kind(s_qdisc);
# 1305|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c: scope_hint: In function ‘nm_utils_tfilters_from_tc_setting’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1378:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:626:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1376:38: note: in expansion of macro ‘NMP_OBJECT_CAST_TFILTER’
# 1376|           NMPlatformTfilter *tfilter = NMP_OBJECT_CAST_TFILTER(t);
# 1377|   
# 1378|->         tfilter->ifindex     = ip_ifindex;
# 1379|           tfilter->kind        = nm_tc_tfilter_get_kind(s_tfilter);
# 1380|           tfilter->addr_family = AF_UNSPEC;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c: scope_hint: In function ‘process_lldp_neighbor’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:805:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:65:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:833:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘process_lldp_neighbor’
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/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:65:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:833:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c: scope_hint: In function ‘process_lldp_neighbor’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:833:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:68:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:833:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:68:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:833:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:68:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-lldp-listener.c:833:5: note: in expansion of macro ‘_LOGD’
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/core/devices/nm-lldp-listener.c:797:5: note: in expansion of macro ‘g_return_if_fail’
#  803|       }
#  804|   
#  805|->     neigh_old = g_hash_table_lookup(self->lldp_neighbors, neigh);
#  806|   
#  807|       if (remove) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/tests/test-lldp.c: scope_hint: In function ‘_test_recv_fixture_setup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/tests/test-lldp.c:793:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/net/tun", 524290)’
#  791|       nm_auto_close int     fd = -1;
#  792|   
#  793|->     fd = open("/dev/net/tun", O_RDWR | O_CLOEXEC);
#  794|       if (fd == -1) {
#  795|           g_test_skip("Unable to open /dev/net/tun");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c: scope_hint: In function ‘try_create_connect_properties’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:512:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:114:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘try_create_connect_properties’
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/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:114:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c: scope_hint: In function ‘try_create_connect_properties’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:119:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:133:35: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:119:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:119:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro ‘_LOGD’
#  510|   {
#  511|       NMModemBroadbandPrivate *priv = NM_MODEM_BROADBAND_GET_PRIVATE(self);
#  512|->     ConnectContext          *ctx  = priv->ctx;
#  513|   
#  514|       if (MODEM_CAPS_3GPP(ctx->caps)) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem.c: scope_hint: In function ‘port_speed_is_zero’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/wwan/nm-modem.c:728:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(port, 526594)’
#  726|       }
#  727|   
#  728|->     fd = open(port, O_RDWR | O_NONBLOCK | O_NOCTTY | O_CLOEXEC);
#  729|       if (fd < 0)
#  730|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/nm-dhcp-client.c: scope_hint: In function ‘config_init’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/nm-dhcp-client.c:1868:32: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: 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/dhcp/nm-dhcp-client.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/nm-dhcp-client.c:1867:32: note: in expansion of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/nm-dhcp-client.c: scope_hint: In function ‘config_init’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 1866|   
# 1867|                   hostname_tmp = g_strdup(hostname);
# 1868|->                 dot          = strchr(hostname_tmp, '.');
# 1869|                   if (dot)
# 1870|                       *dot = '\0';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
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/dhcp/tests/test-dhcp-utils.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
#   97|       address = nmtst_l3_config_data_get_address_at_4(l3cd, 0);
#   98|       g_assert(inet_pton(AF_INET, expected_addr, &tmp) > 0);
#   99|->     g_assert(address->address == tmp);
#  100|       g_assert(address->peer_address == tmp);
#  101|       g_assert_cmpint(address->plen, ==, 24);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:107:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:108:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
#  124|       route = nmtst_l3_config_data_get_route_at_4(l3cd, 0);
#  125|       g_assert(inet_pton(AF_INET, expected_route1_dest, &tmp) > 0);
#  126|->     g_assert(route->network == tmp);
#  127|       g_assert(inet_pton(AF_INET, expected_route1_gw, &tmp) > 0);
#  128|       g_assert(route->gateway == tmp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:133:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:107:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:108:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
#  131|   
#  132|       route = nmtst_l3_config_data_get_route_at_4(l3cd, 1);
#  133|->     g_assert(route->network == nmtst_inet4_from_string(expected_route2_dest));
#  134|       g_assert(route->gateway == nmtst_inet4_from_string(expected_route2_gw));
#  135|       g_assert_cmpint(route->plen, ==, 32);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:139:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:139:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:107:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:108:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:139:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:139:5: note: in expansion of macro ‘g_assert’
#  137|   
#  138|       route = nmtst_l3_config_data_get_route_at_4(l3cd, 2);
#  139|->     g_assert(route->network == nmtst_inet4_from_string("0.0.0.0"));
#  140|       g_assert(route->gateway == nmtst_inet4_from_string("192.168.1.1"));
#  141|       g_assert_cmpint(route->plen, ==, 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘ip4_test_route’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:258:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:258:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:254:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:602:29: note: in definition of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:340:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘ip4_test_route’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:257:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:257:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:258:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:258:5: note: in expansion of macro ‘g_assert’
#  256|       route = nmtst_l3_config_data_get_route_at_4(l3cd, route_num);
#  257|       g_assert(inet_pton(AF_INET, expected_dest, &tmp) > 0);
#  258|->     g_assert(route->network == tmp);
#  259|       g_assert(inet_pton(AF_INET, expected_gw, &tmp) > 0);
#  260|       g_assert(route->gateway == tmp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/ndisc/tests/test-ndisc-linux.c: scope_hint: In function ‘main’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/ndisc/tests/test-ndisc-linux.c:81:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘main’
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/ndisc/tests/test-ndisc-linux.c:6: 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:484:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:486:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:486:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:488:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:488:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:587:18: note: in expansion of macro ‘g_test_initialized’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:770:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:91:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘main’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/ndisc/tests/test-ndisc-linux.c: scope_hint: In function ‘main’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/ndisc/tests/test-ndisc-linux.c:15: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/ndisc/tests/test-ndisc-linux.c: scope_hint: In function ‘main’
#   79|       ndisc = nm_lndp_ndisc_new(&config);
#   80|       if (!ndisc) {
#   81|->         g_print("Failed to create NMNDisc instance: %s\n", error->message);
#   82|           g_error_free(error);
#   83|           return EXIT_FAILURE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.c: scope_hint: In function ‘build_message’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.c:140:29: warning[-Wanalyzer-malloc-leak]: leak of ‘audit_encode_nv_string(*field.name,  str, 0)’
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-audit-manager.c:6: 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/core/nm-audit-manager.c:351:5: note: in expansion of macro ‘g_return_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:651:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.c:352:5: note: in expansion of macro ‘g_return_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:651:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.c:352:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.c:17: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/core/nm-audit-manager.c:182:5: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.h:18:43: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.c:182:22: note: in expansion of macro ‘NM_IS_AUDIT_MANAGER’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/core/nm-audit-manager.c:182:5: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.h:18:43: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-audit-manager.c:182:22: note: in expansion of macro ‘NM_IS_AUDIT_MANAGER’
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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro ‘G_UNLIKELY’
#  138|                       nm_auto_free char *value = NULL;
#  139|   
#  140|->                     value = audit_encode_nv_string(field->name, str, 0);
#  141|                       if (value)
#  142|                           nm_str_buf_append(strbuf, value);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c: scope_hint: In function ‘check_platform_config’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c:999:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c:19: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c:997:9: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c:997:9: note: in expansion of macro ‘nmp_cache_iter_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-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-connectivity.c:8: 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/core/nm-connectivity.c:17: 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 ‘check_platform_config’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c:997:9: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c:997: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 ‘check_platform_config’
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-connectivity.c:997:9: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c: scope_hint: In function ‘check_platform_config’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-connectivity.c:998:21: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
#  997|           nmp_cache_iter_for_each (&iter, routes, &plobj) {
#  998|               route = NMP_OBJECT_CAST_IP4_ROUTE(plobj);
#  999|->             if (nm_platform_route_scope_inv(route->scope_inv) == RT_SCOPE_UNIVERSE) {
# 1000|                   found_global = TRUE;
# 1001|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c: scope_hint: In function ‘_l3_config_data_add_obj’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:1108:78: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘r’
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-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-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘_l3_config_data_add_obj’
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 ‘_l3_config_data_add_obj’
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 ‘_l3_config_data_add_obj’
# 1106|           r = obj_new ? NMP_OBJECT_CAST_IP_ROUTE(obj_new) : (NMPlatformIPRoute *) pl_new;
# 1107|   
# 1108|->         if (nm_platform_route_type_is_nodev(nm_platform_route_type_uncoerce(r->type_coerced))) {
# 1109|               /* such routes don't have a device/next-hop. We track them without ifindex. */
# 1110|               ifindex = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:1164:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3080:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
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-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘_l3_config_data_add_obj’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3080:5: 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:3080:5: 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 ‘_l3_config_data_add_obj’
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:3080:5: 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 ‘_l3_config_data_add_obj’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c: scope_hint: In function ‘_l3_config_data_add_obj’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:969:6: note: in expansion of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:1148:13: note: in expansion of macro ‘NM_FLAGS_HAS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:610:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:1159:58: note: in expansion of macro ‘NMP_OBJECT_CAST_IP_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:610:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:1164:25: note: in expansion of macro ‘NMP_OBJECT_CAST_IP_ADDRESS’
# 1162|                       obj_new = nmp_object_stackinit_obj(&obj_new_stackinit, obj_new);
# 1163|                       obj_new_stackinit.ip_address.timestamp =
# 1164|->                         NMP_OBJECT_CAST_IP_ADDRESS(obj_old)->timestamp;
# 1165|                       obj_new_stackinit.ip_address.lifetime =
# 1166|                           NMP_OBJECT_CAST_IP_ADDRESS(obj_old)->lifetime;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c: scope_hint: In function ‘nm_l3_config_data_merge’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3289:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
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-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘nm_l3_config_data_merge’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_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 ‘nm_l3_config_data_merge’
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:3261:9: note: in expansion of macro ‘nm_l3_config_data_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-config-data.c: scope_hint: In function ‘nm_l3_config_data_merge’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:610:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3265:48: note: in expansion of macro ‘NMP_OBJECT_CAST_IP_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3287:13: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3287:13: note: in expansion of macro ‘nm_assert’
# 3287|               nm_assert(IS_IPv4 || hook_result.ip4acd_not_ready == NM_OPTION_BOOL_DEFAULT);
# 3288|   
# 3289|->             if (a_src->ifindex != self->ifindex) {
# 3290|                   _ensure_a();
# 3291|                   a.ax.ifindex = self->ifindex;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3340:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
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/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_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 ‘nm_l3_config_data_merge’
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:3261:9: note: in expansion of macro ‘nm_l3_config_data_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/core/nm-l3-config-data.c: scope_hint: In function ‘nm_l3_config_data_merge’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
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-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘nm_l3_config_data_merge’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3312:13: note: in expansion of macro ‘nm_l3_config_data_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 ‘nm_l3_config_data_merge’
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:3312:13: note: in expansion of macro ‘nm_l3_config_data_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-config-data.c: scope_hint: In function ‘nm_l3_config_data_merge’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:618:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3316:51: note: in expansion of macro ‘NMP_OBJECT_CAST_IP_ROUTE’
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’
# 3338|                   nm_assert(hook_result.ip4acd_not_ready == NM_OPTION_BOOL_DEFAULT);
# 3339|   
# 3340|->                 if (r_src->ifindex != self->ifindex) {
# 3341|                       _ensure_r();
# 3342|                       r.rx.ifindex = self->ifindex;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3398:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
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/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.c:3261:9: note: in expansion of macro ‘nm_l3_config_data_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 ‘nm_l3_config_data_merge’
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:3261:9: note: in expansion of macro ‘nm_l3_config_data_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/core/nm-l3-config-data.c: scope_hint: In function ‘nm_l3_config_data_merge’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro ‘NM_FLAGS_ANY’
# 3396|   
# 3397|           if (!NM_FLAGS_ANY(self->flags, has_dns_priority_flag)
# 3398|->             && NM_FLAGS_ANY(src->flags, has_dns_priority_flag)) {
# 3399|               int p = src->dns_priority_x[IS_IPv4];
# 3400|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c: scope_hint: In function ‘_l3cd_config_get_addr’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:349:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-l3cfg.h:7: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c: scope_hint: In function ‘_l3cd_config_get_addr’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
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-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘_l3cd_config_get_addr’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1260:13: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1284:5: note: in expansion of macro ‘_nm_platform_dedup_multi_iter_next’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:275:10: note: in expansion of macro ‘nm_platform_dedup_multi_iter_next_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
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/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1260:13: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1284:5: note: in expansion of macro ‘_nm_platform_dedup_multi_iter_next’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:275:10: note: in expansion of macro ‘nm_platform_dedup_multi_iter_next_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
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’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1260:13: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1284:5: note: in expansion of macro ‘_nm_platform_dedup_multi_iter_next’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:275:10: note: in expansion of macro ‘nm_platform_dedup_multi_iter_next_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:602:29: note: in definition of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1284:5: note: in expansion of macro ‘_nm_platform_dedup_multi_iter_next’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:275:10: note: in expansion of macro ‘nm_platform_dedup_multi_iter_next_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1262:29: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1284:5: note: in expansion of macro ‘_nm_platform_dedup_multi_iter_next’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-config-data.h:275:10: note: in expansion of macro ‘nm_platform_dedup_multi_iter_next_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv4ll.c:348:5: note: in expansion of macro ‘nm_l3_config_data_iter_ip4_address_for_each’
#  347|   
#  348|       nm_l3_config_data_iter_ip4_address_for_each (&iter, l3cd, &pladdr) {
#  349|->         const in_addr_t addr = pladdr->address;
#  350|   
#  351|           nm_assert(nm_platform_ip4_address_is_link_local(pladdr));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.c:269:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pladdr_tentative’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.c: scope_hint: In function ‘_pladdr_find_ll’
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-std-aux/nm-std-aux.h:168:49: note: in definition of macro ‘NM_PASTE_ARGS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro ‘NM_PASTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:958:14: note: in expansion of macro ‘NM_UNIQ_T’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:969:27: note: in expansion of macro ‘_NM_IN_SET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.c:343:10: note: in expansion of macro ‘NM_IN_SET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.h:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.h:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.c:5: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.c:350: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 ‘_pladdr_find_ll’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.c:350: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-ipv6ll.c:350: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 ‘_pladdr_find_ll’
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-ipv6ll.c:350: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-ipv6ll.c: scope_hint: In function ‘_pladdr_find_ll’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:616:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3-ipv6ll.c:351:46: note: in expansion of macro ‘NMP_OBJECT_CAST_IP6_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:9: included_from: Included from here.
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-macros-internal.h:971:39: note: in definition of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro ‘NM_FLAGS_ANY’
#  267|       nm_assert(IN6_IS_ADDR_LINKLOCAL(&addr->address));
#  268|   
#  269|->     return NM_FLAGS_ANY(addr->n_ifa_flags, IFA_F_DADFAILED | IFA_F_DEPRECATED);
#  270|   }
#  271|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c: scope_hint: In function ‘_l3cfg_update_combined_config’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c:3936:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_ptr’
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-l3cfg.c:3: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c:3912:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c:3914:5: note: in expansion of macro ‘NM_SET_OUT’
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’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:1357:13: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c:3932:27: note: in expansion of macro ‘nm_malloc_maybe_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c:3932:27: note: in expansion of macro ‘nm_malloc_maybe_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c:3932:27: note: in expansion of macro ‘nm_malloc_maybe_a’
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:2021:40: note: in definition of macro ‘nm_g_array_index’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-l3cfg.c:3936:34: note: in expansion of macro ‘_l3_config_datas_at’
# 3934|                                               &l3_config_datas_free);
# 3935|       for (i = 0; i < l3_config_datas_len; i++)
# 3936|->         l3_config_datas_arr[i] = _l3_config_datas_at(self->priv.p->l3_config_datas, i);
# 3937|   
# 3938|       if (l3_config_datas_len > 1) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
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-netns.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c: scope_hint: In function ‘_ecmp_track_sort_lst_cmp’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:202:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-l3cfg.h:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:17: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:199:45: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:200:45: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:200:45: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
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/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’
#  200|       const NMPlatformIP4Route *route_b     = NMP_OBJECT_CAST_IP4_ROUTE(track_obj_b->obj);
#  201|   
#  202|->     nm_assert(route_a->ifindex > 0);
#  203|       nm_assert(route_a->n_nexthops <= 1);
#  204|       nm_assert(route_b->ifindex > 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:204:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:199:45: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:199:45: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:200:45: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
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/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’
#  202|       nm_assert(route_a->ifindex > 0);
#  203|       nm_assert(route_a->n_nexthops <= 1);
#  204|->     nm_assert(route_b->ifindex > 0);
#  205|       nm_assert(route_b->n_nexthops <= 1);
#  206|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c: scope_hint: In function ‘_ecmp_track_init_merged_obj’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:278:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/core/nm-netns.c:12: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:272:5: note: in expansion of macro ‘c_list_for_each_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:272:5: note: in expansion of macro ‘c_list_for_each_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:274:44: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
#  276|   
#  277|               *nh = (NMPlatformIP4RtNextHop){
#  278|->                 .ifindex = r->ifindex,
#  279|                   .gateway = r->gateway,
#  280|                   .weight  = r->weight,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c: scope_hint: In function ‘nm_netns_ip_route_ecmp_register’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:690:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/libnm-platform/nmp-object.h:621:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-netns.c:688:13: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
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/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’
#  688|       route = NMP_OBJECT_CAST_IP4_ROUTE(obj);
#  689|   
#  690|->     nm_assert(route->ifindex > 0);
#  691|       nm_assert(route->ifindex == nm_l3cfg_get_ifindex(l3cfg));
#  692|       nm_assert(route->n_nexthops <= 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c: scope_hint: In function ‘link_add_pre’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:250:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/platform/nm-fake-platform.c:6: 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro ‘g_assert’
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/core/platform/nm-fake-platform.c:239:15: note: in expansion of macro ‘nm_g_array_append_new’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform-private.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:17: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:608:35: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:245:12: note: in expansion of macro ‘NMP_OBJECT_CAST_LINK’
#  248|           ifindex > 0 ? g_strdup_printf("fe80::fa1e:%0x:%0x", ifindex / 256, ifindex % 256) : NULL;
#  249|   
#  250|->     link->ifindex     = name ? ifindex : 0;
#  251|       link->type        = type;
#  252|       link->kind        = g_intern_string(nm_link_type_to_string(type));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c: scope_hint: In function ‘ipx_address_delete’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1092:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:239:15: note: in expansion of macro ‘nm_g_array_append_new’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:608:35: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:245:12: note: in expansion of macro ‘NMP_OBJECT_CAST_LINK’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:608:35: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:245:12: note: in expansion of macro ‘NMP_OBJECT_CAST_LINK’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:273:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:273:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-test-utils-core.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:20: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:79:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c: scope_hint: In function ‘ipx_address_delete’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:331:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:331:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:333:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:333:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:378:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:194:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:391:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-platform/nmp-object.h:659: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-platform/nmp-object.h:659: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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:568:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:570:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:570:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c: scope_hint: In function ‘ipx_address_delete’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1066:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro ‘nmp_cache_iter_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 ‘ipx_address_delete’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1070:5: 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 ‘ipx_address_delete’
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/platform/nm-fake-platform.c:1070:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c: scope_hint: In function ‘ipx_address_delete’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:616:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1089:51: note: in expansion of macro ‘NMP_OBJECT_CAST_IP6_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:616:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1089:51: note: in expansion of macro ‘NMP_OBJECT_CAST_IP6_ADDRESS’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1091:13: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/nm-fake-platform.c:1091:13: note: in expansion of macro ‘g_assert’
# 1090|   
# 1091|               g_assert(!peer_addr);
# 1092|->             if (address->ifindex != ifindex
# 1093|                   || (addr && !IN6_ARE_ADDR_EQUAL(&address->address, addr))
# 1094|                   || (plen && address->plen != *plen))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: 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/platform/tests/test-tc.c:3: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c: scope_hint: In function ‘test_qdisc1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:68:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
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-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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:61:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:63:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:8: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:625:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:67:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
#   66|       obj   = plat->pdata[0];
#   67|       qdisc = NMP_OBJECT_CAST_QDISC(obj);
#   68|->     g_assert_cmpint(qdisc->parent, ==, TC_H_ROOT);
#   69|       g_assert_cmpstr(qdisc->kind, ==, "fq_codel");
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:73:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:73:5: note: in expansion of macro ‘g_assert_cmpint’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:61:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:63:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:625:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:67:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:625:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:67:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:625:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:72:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:73:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/platform/tests/test-tc.c:73:5: note: in expansion of macro ‘g_assert_cmpint’
#   71|       obj   = plat->pdata[1];
#   72|       qdisc = NMP_OBJECT_CAST_QDISC(obj);
#   73|->     g_assert_cmpint(qdisc->parent, ==, TC_H_INGRESS);
#   74|       g_assert_cmpstr(qdisc->kind, ==, "ingress");
#   75|   }

Error: GCC_ANALYZER_WARNING (CWE-835): [#def36]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-utils.c: scope_hint: In function ‘nm_sett_util_storage_by_uuid_head_destroy’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-utils.c:72:20: warning[-Wanalyzer-infinite-loop]: infinite loop
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-utils.h:9: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-utils.c:8: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-utils.c: scope_hint: In function ‘nm_sett_util_storage_by_uuid_head_destroy’
#   70|       CList *iter;
#   71|   
#   72|->     while ((iter = c_list_first(&sbuh->_storage_by_uuid_lst_head)))
#   73|           c_list_unlink(iter);
#   74|       g_free(sbuh);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def37]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c: scope_hint: In function ‘_load_file_from_path’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:415:18: warning[-Wanalyzer-null-argument]: use of NULL ‘full_filename’ where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/c-list/src/c-list.h:107:37: note: in definition of macro ‘c_list_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:708:9: note: in expansion of macro ‘c_list_for_each_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:708:9: note: in expansion of macro ‘c_list_for_each_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c: scope_hint: In function ‘_load_file_from_path’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:413:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:413:5: note: in expansion of macro ‘nm_assert’
/usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null
#  413|       nm_assert(full_filename && full_filename[0] == '/');
#  414|   
#  415|->     f_filename = strrchr(full_filename, '/');
#  416|       f_dirname  = nm_strndup_a(300, full_filename, f_filename - full_filename, &f_dirname_free);
#  417|       f_filename++;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c: scope_hint: In function ‘delete_connection’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:1057:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:10: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of ‘unlink’ must be non-null
# 1055|           success           = FALSE;
# 1056|           operation_message = "dropped readonly file from memory";
# 1057|->     } else if (unlink(previous_filename) != 0) {
# 1058|           int errsv;
# 1059|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘_log_pretty_object_path’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:189:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:7: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘_log_pretty_object_path’
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/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘_log_pretty_object_path’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:215:25: note: in expansion of macro ‘nm_sprintf_buf’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:215:25: note: in expansion of macro ‘nm_sprintf_buf’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:215:25: note: in expansion of macro ‘nm_sprintf_buf’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
#  187|       nm_assert(NM_IS_REF_STRING(priv->object_path));
#  188|   
#  189|->     s = priv->object_path->str;
#  190|       if (NM_STR_HAS_PREFIX(s, "/fi/w1/wpa_supplicant1/Interfaces/")) {
#  191|           s += NM_STRLEN("/fi/w1/wpa_supplicant1/Interfaces/");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘_wps_handle_set_pc_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1707:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*self._priv’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘_wps_handle_set_pc_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘_wps_handle_set_pc_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro ‘_LOGT’
# 1705|                                                                NM_WPAS_DBUS_IFACE_INTERFACE_WPS,
# 1706|                                                                "Credentials",
# 1707|->                                                              priv->object_path->str,
# 1708|                                                                NULL,
# 1709|                                                                G_DBUS_SIGNAL_FLAGS_NONE,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘assoc_set_ap_scan_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2456:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘assoc_set_ap_scan_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘assoc_set_ap_scan_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
# 2454|       _LOGT("assoc[" NM_HASH_OBFUSCATE_PTR_FMT "]: interface ap_scan set to %d",
# 2455|             NM_HASH_OBFUSCATE_PTR(priv->assoc_data),
# 2456|->           nm_supplicant_config_get_ap_scan(priv->assoc_data->cfg));
# 2457|   
# 2458|       nm_assert(priv->assoc_data->calls_left > 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2458:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
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/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘assoc_set_ap_scan_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘assoc_set_ap_scan_cb.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro ‘_LOGT’
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/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’
# 2456|             nm_supplicant_config_get_ap_scan(priv->assoc_data->cfg));
# 2457|   
# 2458|->     nm_assert(priv->assoc_data->calls_left > 0);
# 2459|       if (--priv->assoc_data->calls_left == 0)
# 2460|           add_network(self);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘assoc_set_pmk_lifetime.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2481:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2481:11: note: in expansion of macro ‘NM_HASH_OBFUSCATE_PTR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘assoc_set_pmk_lifetime.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘assoc_set_pmk_lifetime.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2481:11: note: in expansion of macro ‘NM_HASH_OBFUSCATE_PTR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2481:11: note: in expansion of macro ‘NM_HASH_OBFUSCATE_PTR’
# 2479|   
# 2480|       _LOGT("assoc[" NM_HASH_OBFUSCATE_PTR_FMT "]: interface PMK lifetime set to %u",
# 2481|->           NM_HASH_OBFUSCATE_PTR(priv->assoc_data),
# 2482|             PMK_LIFETIME_SEC);
# 2483|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2484:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
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/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘assoc_set_pmk_lifetime.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function ‘assoc_set_pmk_lifetime.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro ‘_LOGT’
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/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’
# 2482|             PMK_LIFETIME_SEC);
# 2483|   
# 2484|->     nm_assert(priv->assoc_data->calls_left > 0);
# 2485|       if (--priv->assoc_data->calls_left == 0)
# 2486|           add_network(self);

Error: GCC_ANALYZER_WARNING (CWE-787): [#def45]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c: scope_hint: In function ‘_remove_at_indexes_init_random_idx’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:497:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-test-utils-core.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:16: 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/tests/test-core-with-expect.c:6: 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:469:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:470:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:470:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:471:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:471:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:473:12: note: in expansion of macro ‘g_new0’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:486:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:487:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:487:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:491:13: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-core-with-expect.c:491:13: note: in expansion of macro ‘g_assert’
#  495|               else {
#  496|                   max_test_idx--;
#  497|->                 while (max_test_idx > 0 && mask[max_test_idx])
#  498|                       max_test_idx--;
#  499|                   if (mask[max_test_idx])

Error: GCC_ANALYZER_WARNING (CWE-121): [#def46]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c: scope_hint: In function ‘test_sd_event’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:75:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:11: 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-systemd-core/nm-default-systemd-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:6: 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:56:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:65:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:71:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:75:29: note: write of 8 bytes to beyond the end of ‘other_events’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:75:29: note: valid subscripts for ‘other_events’ are ‘[0]’ to ‘[2]’
#   73|           event = sd_event_unref(event);
#   74|           for (i = 0, n = (nmtst_get_rand_uint32() % (G_N_ELEMENTS(other_events) + 1)); i < n; i++)
#   75|->             other_events[i] = sd_event_unref(other_events[i]);
#   76|           nm_clear_g_source(&sd_id);
#   77|           for (i = 0, n = G_N_ELEMENTS(other_events); i < n; i++)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def47]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:75:31: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:56:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:65:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:71:9: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:75:31: note: read of 8 bytes from after the end of ‘other_events’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/tests/test-systemd.c:75:31: note: valid subscripts for ‘other_events’ are ‘[0]’ to ‘[2]’
#   73|           event = sd_event_unref(event);
#   74|           for (i = 0, n = (nmtst_get_rand_uint32() % (G_N_ELEMENTS(other_events) + 1)); i < n; i++)
#   75|->             other_events[i] = sd_event_unref(other_events[i]);
#   76|           nm_clear_g_source(&sd_id);
#   77|           for (i = 0, n = G_N_ELEMENTS(other_events); i < n; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function ‘_nml_dbus_log_file_init’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:73:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-default-libnm.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:7: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function ‘_nml_dbus_log_file_init’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h: scope_hint: In function ‘_nml_dbus_log_file_init’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro ‘g_strdup’
#   71|   
#   72|       if (!g_atomic_pointer_compare_and_exchange(&_nml_dbus_log_file, NULL, s)) {
#   73|->         if (s[0] != '\0')
#   74|               g_free((gpointer) s);
#   75|           s = g_atomic_pointer_get(&_nml_dbus_log_file);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function ‘_nml_dbus_log_file_fd_init’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:89:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_l’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro ‘nml_dbus_log_file’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:42: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:85:14: note: in expansion of macro ‘g_atomic_pointer_get’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro ‘nml_dbus_log_file’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-glib.h:250:12: note: in expansion of macro ‘g_atomic_pointer_get’
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-client-impl/nm-libnm-utils.c: scope_hint: In function ‘_nml_dbus_log_file_fd_init’
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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:86:13: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro ‘nml_dbus_log_file’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro ‘nml_dbus_log_file’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro ‘nml_dbus_log_file’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function ‘_nml_dbus_log_file_fd_init’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h: scope_hint: In function ‘_nml_dbus_log_file_fd_init’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro ‘nml_dbus_log_file’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro ‘nml_dbus_log_file’
#   87|               _l = _nml_dbus_log_file_init();             \
#   88|                                                           \
#   89|->         _l[0] ? _l : NULL;                              \
#   90|       })
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def50]
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/nm-default-libnm.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c: scope_hint: In function ‘test_make_invisible’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:169:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:120:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:120:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/gobject/gobject.h:30: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:15: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:123:5: note: in expansion of macro ‘g_signal_connect’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:132:13: note: in expansion of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c: scope_hint: In function ‘test_make_invisible’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:141:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-test/nm-test-libnm-utils.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1503:14: note: in expansion of macro ‘nmtst_main_context_iterate_until_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1512:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1102:24: note: in definition of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:1458:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:1458:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1503:14: note: in expansion of macro ‘nmtst_main_context_iterate_until_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1512:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1512:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert’
/usr/include/glib-2.0/gobject/gsignal.h:590:44: note: in definition of macro ‘g_signal_handlers_disconnect_by_func’
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-connection.h:20:32: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:166:35: note: in expansion of macro ‘NM_CONNECTION’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:168:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  167|   
#  168|           g_assert((gpointer) gl.remote != (gpointer) candidate);
#  169|->         g_assert(strcmp(path, nm_connection_get_path(candidate)) != 0);
#  170|       }
#  171|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c: scope_hint: In function ‘nm_connection_for_each_setting_value’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:2882:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:7: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-connection.c:2875:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:2875:22: note: in expansion of macro ‘NM_IS_CONNECTION’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-connection.c:2875:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-private.h:66:14: note: in expansion of macro ‘NM_IS_SIMPLE_CONNECTION’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:2875:22: note: in expansion of macro ‘NM_IS_CONNECTION’
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-core-impl/nm-connection.c:2876:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-connection.c:2828:5: note: in expansion of macro ‘g_return_val_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:2828:26: note: in expansion of macro ‘NM_IS_CONNECTION’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-connection.c:2828:5: note: in expansion of macro ‘g_return_val_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-private.h:66:14: note: in expansion of macro ‘NM_IS_SIMPLE_CONNECTION’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:2828:26: note: in expansion of macro ‘NM_IS_CONNECTION’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:2838:5: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-connection.c:2838:5: note: in expansion of macro ‘NM_SET_OUT’
# 2880|           g_object_ref(settings[i]);
# 2881|       for (i = 0; i < length; i++)
# 2882|->         nm_setting_enumerate_values(settings[i], func, user_data);
# 2883|       for (i = 1; i < length; i++)
# 2884|           g_object_unref(settings[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c: scope_hint: In function ‘read_one_setting_value’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3363:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘setting_info’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3277:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3277:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3277:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3278:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3279:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3279:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:3279:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c: scope_hint: In function ‘read_one_setting_value’
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’
# 3361|        */
# 3362|       if ((!pip || !pip->parser_no_check_key)
# 3363|->         && !nm_keyfile_plugin_kf_has_key(keyfile, setting_info->setting_name, key, &err)) {
# 3364|           /* Key doesn't exist or an error occurred, thus nothing to do. */
# 3365|           if (err) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c: scope_hint: In function ‘nm_keyfile_utils_create_filename’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-keyfile.c:4535:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
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/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-core-impl/nm-keyfile.c:4504: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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro ‘G_UNLIKELY’
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-std-aux/nm-std-aux.h:307:38: note: in definition of macro ‘nm_assert’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 4533|   
# 4534|       /* nm_keyfile_utils_create_filename() must mirror ignore_filename() */
# 4535|->     nm_assert(!strchr(p, '/'));
# 4536|       nm_assert(!nm_keyfile_utils_ignore_filename(p, with_extension));
# 4537|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-8021x.c: scope_hint: In function ‘_cert_verify_property’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-8021x.c:690:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
#  688|       scheme = _nm_setting_802_1x_cert_get_scheme(bytes, &local);
#  689|       if (scheme == NM_SETTING_802_1X_CK_SCHEME_UNKNOWN) {
#  690|->         g_set_error(error,
#  691|                       NM_CONNECTION_ERROR,
#  692|                       NM_CONNECTION_ERROR_INVALID_PROPERTY,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bond.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bond.c: scope_hint: In function ‘_nm_setting_bond_opt_value_as_u32’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bond.c:810:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro ‘_opt_value_as_u64’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro ‘_opt_value_as_u64’
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’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2894:13: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2931:5: note: in expansion of macro ‘_NM_UTILS_STRING_TABLE_LOOKUP_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bond.c:173:8: note: in expansion of macro ‘NM_UTILS_STRING_TABLE_LOOKUP_STRUCT_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bond.c: scope_hint: In function ‘_nm_setting_bond_opt_value_as_u32’
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/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro ‘_opt_value_as_u64’
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/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro ‘_opt_value_as_u64’
#  808|                                                                                            \
#  809|           nm_assert(_meta);                                                                \
#  810|->         nm_assert(_meta->opt_type == NM_BOND_OPTION_TYPE_INT);                           \
#  811|           nm_assert(_meta->min < _meta->max);                                              \
#  812|           nm_assert(_meta->max <= _v_max);                                                 \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bridge.c: scope_hint: In function ‘nm_bridge_vlan_new_clone’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bridge.c:416:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-bridge.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting-bridge.c:413: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:191:13: note: in definition 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-core-impl/nm-setting-bridge.c:413: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-core-impl/nm-setting-bridge.c:413:5: note: in expansion of macro ‘g_return_val_if_fail’
#  414|   
#  415|       copy           = nm_bridge_vlan_new(vlan->vid_start, vlan->vid_end);
#  416|->     copy->untagged = vlan->untagged;
#  417|       copy->pvid     = vlan->pvid;
#  418|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3772:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:7: 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:664:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3401: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-macros-internal.h:969:6: note: in expansion of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3341:9: note: in expansion of macro ‘NM_FLAGS_HAS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3458:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3458:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3466:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3474:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:822:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_4’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:821:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:822:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_3’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_4’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:821:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:822:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_3’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_4’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:820:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:821:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:822:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_3’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_4’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3490:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:820:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3490:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3508:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:820:133: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3508:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3518:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3528:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3537:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3546:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro ‘_NM_IN_STRSET_EVAL_OP_STREQ’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro ‘_NM_MACRO_CALL2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘_NM_VA_ARGS_FOREACH_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro ‘NM_VA_ARGS_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3565:13: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘nm_ip_routing_rule_from_string’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3672:10: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3672:10: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3688:10: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3688:10: note: in expansion of macro ‘NM_IN_STRSET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:168:49: note: in definition of macro ‘NM_PASTE_ARGS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro ‘NM_PASTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:958:14: note: in expansion of macro ‘NM_UNIQ_T’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:969:27: note: in expansion of macro ‘_NM_IN_SET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3704:10: note: in expansion of macro ‘NM_IN_SET’
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-core-impl/nm-setting-ip-config.c:1655:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:82: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:1657:13: note: in expansion of macro ‘g_slice_new’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting-ip-config.c:2388:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting-ip-config.c:2388:5: note: in expansion of macro ‘g_return_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:651:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:2388:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:969:6: note: in expansion of macro ‘NM_FLAGS_ANY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:3768:9: note: in expansion of macro ‘NM_FLAGS_HAS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting-ip-config.c:2723: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:191:13: note: in definition 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-core-impl/nm-setting-ip-config.c:2723:5: note: in expansion of macro ‘g_return_val_if_fail’
# 3770|   
# 3771|           if (!nm_ip_routing_rule_validate(self, &local)) {
# 3772|->             g_set_error(error,
# 3773|                           NM_CONNECTION_ERROR,
# 3774|                           NM_CONNECTION_ERROR_FAILED,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function ‘verify’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-ip-config.c:5684:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
# 5682|               }
# 5683|               if (!nm_ip_routing_rule_validate(rule, &local)) {
# 5684|->                 g_set_error(error,
# 5685|                               NM_CONNECTION_ERROR,
# 5686|                               NM_CONNECTION_ERROR_INVALID_PROPERTY,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-sriov.c: scope_hint: In function ‘verify’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-sriov.c:1114:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-sriov.c:6: 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:664:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-sriov.c:455: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:191:13: note: in definition 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-core-impl/nm-setting-sriov.c:456:5: note: in expansion of macro ‘g_return_val_if_fail’
# 1112|   
# 1113|               if (!_nm_sriov_vf_attribute_validate_all(vf, &local)) {
# 1114|->                 g_set_error(error,
# 1115|                               NM_CONNECTION_ERROR,
# 1116|                               NM_CONNECTION_ERROR_INVALID_PROPERTY,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c: scope_hint: In function ‘_action_to_variant’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:1510:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-core-impl/nm-setting-tc-config.c:595: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-core-impl/nm-setting-tc-config.c:574:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:574:5: note: in expansion of macro ‘g_return_val_if_fail’
# 1508|                             g_variant_new_string(nm_tc_action_get_kind(action)));
# 1509|   
# 1510|->     for (i = 0; attrs[i]; i++) {
# 1511|           g_variant_builder_add(&builder,
# 1512|                                 "{sv}",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-team.c:7: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-team.c: scope_hint: In function ‘nm_team_link_watchers_cmp’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-team.c:477:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro ‘NM_CMP_RETURN’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-team.c:471:13: note: in expansion of macro ‘nm_memdup_maybe_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-team.c:471:13: note: in expansion of macro ‘nm_memdup_maybe_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-team.c:472:13: note: in expansion of macro ‘nm_memdup_maybe_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-team.c:472:13: note: in expansion of macro ‘nm_memdup_maybe_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro ‘NM_CMP_RETURN’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro ‘NM_CMP_RETURN’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro ‘NM_CMP_RETURN’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro ‘NM_CMP_RETURN’
#  475|       }
#  476|       for (i = 0; i < len; i++) {
#  477|->         NM_CMP_RETURN(nm_team_link_watcher_cmp(a[i], b[i]));
#  478|       }
#  479|       return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c: scope_hint: In function ‘set_secret_flags’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:2156:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:2143:9: note: in expansion of macro ‘NM_STR_HAS_PREFIX’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:950:17: note: in expansion of macro ‘NM_STR_HAS_SUFFIX’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:2150:22: note: in expansion of macro ‘peers_psk_get_secret_parse_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:952:21: note: in expansion of macro ‘nm_strndup_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:2150:22: note: in expansion of macro ‘peers_psk_get_secret_parse_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:952:21: note: in expansion of macro ‘nm_strndup_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:2150:22: note: in expansion of macro ‘peers_psk_get_secret_parse_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:79:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c: scope_hint: In function ‘set_secret_flags’
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-core-impl/nm-setting-wireguard.c:405: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-core-impl/nm-setting-wireguard.c:104: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-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-wireguard.c:104:5: note: in expansion of macro ‘g_return_val_if_fail’
# 2154|   
# 2155|                   peer                      = nm_wireguard_peer_new_clone(pd->peer, TRUE);
# 2156|->                 peer->preshared_key_flags = flags;
# 2157|                   if (_peers_set(priv, peer, pd->idx, FALSE))
# 2158|                       _peers_notify(self);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘_init_direct’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:1049:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:15: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:7: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro ‘_G_TYPE_CCT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:501:10: note: in expansion of macro ‘NM_IS_SETTING_CLASS’
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro ‘_G_TYPE_CCT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:501:10: note: in expansion of macro ‘NM_IS_SETTING_CLASS’
# 1047|       nm_assert(sett_info);
# 1048|   
# 1049|->     for (i = 0; i < sett_info->property_infos_len; i++) {
# 1050|           const NMSettInfoProperty *property_info = &sett_info->property_infos[i];
# 1051|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘_finalize_direct’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:1165:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1163|       nm_assert(sett_info);
# 1164|   
# 1165|->     for (i = 0; i < sett_info->property_infos_len; i++) {
# 1166|           const NMSettInfoProperty *property_info = &sett_info->property_infos[i];
# 1167|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘_nm_setting_to_dbus’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:1979:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:1964:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:1964:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:1964:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:1964:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:4016:5: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:4016:5: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:4017:5: note: in expansion of macro ‘NM_SET_OUT’
/usr/include/glib-2.0/gobject/gtype.h:571:66: note: in expansion of macro ‘_G_TYPE_IGC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:24:6: note: in expansion of macro ‘G_TYPE_INSTANCE_GET_CLASS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:1978:49: note: in expansion of macro ‘NM_SETTING_GET_CLASS’
# 1977|   
# 1978|       sett_info = _nm_setting_class_get_sett_info(NM_SETTING_GET_CLASS(setting));
# 1979|->     for (j = 0; j < sett_info->property_infos_len; j++) {
# 1980|           const NMSettInfoProperty  *property_info = &sett_info->property_infos[j];
# 1981|           gs_unref_variant GVariant *dbus_value    = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘init_from_dbus’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2210:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_FULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:60:1: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘init_from_dbus’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_FULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:60:1: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_FULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:60:1: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_FULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:60:1: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_FULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:60:1: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_FULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:60:1: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE_FULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:60:1: note: in expansion of macro ‘NM_GOBJECT_PROPERTIES_DEFINE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘init_from_dbus’
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’
# 2208|            * to handle this case differently. */
# 2209|           nm_assert(nm_streq(G_OBJECT_TYPE_NAME(setting), "NMSettingEthtool"));
# 2210|->         nm_assert(sett_info->property_infos_len == 1);
# 2211|   
# 2212|           return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2215:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2213|       }
# 2214|   
# 2215|->     for (i = 0; i < sett_info->property_infos_len; i++) {
# 2216|           const NMSettInfoProperty  *property_info = &sett_info->property_infos[i];
# 2217|           gs_unref_variant GVariant *value         = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘_nm_setting_compare’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2918:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:2896:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2896:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:2896:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2896:26: note: in expansion of macro ‘NM_IS_SETTING’
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-core-impl/nm-setting.c:2896: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:191:13: note: in definition 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-core-impl/nm-setting.c:2897:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:71: note: in expansion of macro ‘NM_TYPE_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2897:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:2897:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2897:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:2897:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2897:26: note: in expansion of macro ‘NM_IS_SETTING’
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-core-impl/nm-setting.c:2897:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:657:82: note: in definition of macro ‘G_TYPE_FROM_CLASS’
/usr/include/glib-2.0/gobject/gobject.h:98:38: note: in expansion of macro ‘G_TYPE_FROM_INSTANCE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2903:9: note: in expansion of macro ‘G_OBJECT_TYPE’
# 2916|       }
# 2917|   
# 2918|->     for (i = 0; i < sett_info->property_infos_len; i++) {
# 2919|           if (_compare_property(sett_info, &sett_info->property_infos[i], con_a, a, con_b, b, flags)
# 2920|               == NM_TERNARY_FALSE)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘_nm_setting_diff’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3075:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-core-impl/nm-setting.c:2994: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:191:13: note: in definition 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-core-impl/nm-setting.c:2995:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:71: note: in expansion of macro ‘NM_TYPE_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2995:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:2995:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2995:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:2995:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:2995:26: note: in expansion of macro ‘NM_IS_SETTING’
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-core-impl/nm-setting.c:2995:5: note: in expansion of macro ‘g_return_val_if_fail’
# 3073|           }
# 3074|       } else {
# 3075|->         for (i = 0; i < sett_info->property_infos_len; i++) {
# 3076|               NMSettingDiffResult       r             = NM_SETTING_DIFF_RESULT_UNKNOWN;
# 3077|               const NMSettInfoProperty *property_info = &sett_info->property_infos[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘nm_setting_enumerate_values’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3268:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:3231:5: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3231:22: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:3231:5: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3231:22: note: in expansion of macro ‘NM_IS_SETTING’
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-core-impl/nm-setting.c:3231:5: note: in expansion of macro ‘g_return_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:651:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3232:5: note: in expansion of macro ‘g_return_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:651:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3232:5: note: in expansion of macro ‘g_return_if_fail’
# 3266|       }
# 3267|   
# 3268|->     for (j = 0; j < sett_info->property_infos_len; j++) {
# 3269|           NM_SETTING_GET_CLASS(setting)->enumerate_values(
# 3270|               _nm_sett_info_property_info_get_sorted(sett_info, j),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘aggregate’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3289:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 3287|   
# 3288|       sett_info = _nm_setting_class_get_sett_info(NM_SETTING_GET_CLASS(setting));
# 3289|->     for (i = 0; i < sett_info->property_infos_len; i++) {
# 3290|           const NMSettInfoProperty   *property_info = &sett_info->property_infos[i];
# 3291|           GParamSpec                 *prop_spec     = property_info->param_spec;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘_nm_setting_clear_secrets’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3420:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:3415:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3415:26: note: in expansion of macro ‘NM_IS_SETTING’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:3415:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:3415:26: note: in expansion of macro ‘NM_IS_SETTING’
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-core-impl/nm-setting.c:3415:5: note: in expansion of macro ‘g_return_val_if_fail’
# 3418|   
# 3419|       sett_info = _nm_setting_class_get_sett_info(NM_SETTING_GET_CLASS(setting));
# 3420|->     for (i = 0; i < sett_info->property_infos_len; i++) {
# 3421|           changed |= klass->clear_secrets(sett_info,
# 3422|                                           &sett_info->property_infos[i],

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c: scope_hint: In function ‘nm_setting_get_enum_property_type’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:4573:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:4570:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro ‘_G_TYPE_CCT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:4570:26: note: in expansion of macro ‘NM_IS_SETTING_CLASS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-setting.c:4570:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro ‘_G_TYPE_CCT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:4570:26: note: in expansion of macro ‘NM_IS_SETTING_CLASS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:13: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro ‘_G_TYPE_CCT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:501:10: note: in expansion of macro ‘NM_IS_SETTING_CLASS’
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro ‘_G_TYPE_CCT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting.c:501:10: note: in expansion of macro ‘NM_IS_SETTING_CLASS’
# 4571|   
# 4572|       property_info = _nm_setting_class_get_property_info(setting_class, property_name);
# 4573|->     spec          = property_info->param_spec;
# 4574|   
# 4575|       if (spec && (G_TYPE_IS_ENUM(spec->value_type) || G_TYPE_IS_FLAGS(spec->value_type)))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c: scope_hint: In function ‘_nm_utils_parse_tc_handle’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:2645:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_str_sls’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:2643:11: note: in expansion of macro ‘nm_str_skip_leading_spaces’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:2643:11: note: in expansion of macro ‘nm_str_skip_leading_spaces’
# 2643|       sep = nm_str_skip_leading_spaces(sep);
# 2644|   
# 2645|->     if (sep[0] == ':') {
# 2646|           const char *str2 = &sep[1];
# 2647|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:2650:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_str_sls’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:2643:11: note: in expansion of macro ‘nm_str_skip_leading_spaces’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:2643:11: note: in expansion of macro ‘nm_str_skip_leading_spaces’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:2649:15: note: in expansion of macro ‘nm_str_skip_leading_spaces’
# 2648|           min = nm_g_ascii_strtoll(str2, (char **) &sep, 0x10);
# 2649|           sep = nm_str_skip_leading_spaces(sep);
# 2650|->         if (sep[0] != '\0')
# 2651|               goto fail;
# 2652|       } else if (sep[0] != '\0')

Error: GCC_ANALYZER_WARNING (CWE-688): [#def76]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function ‘nm_vpn_plugin_info_list_add’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:454:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:6: 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:664:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:446: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:191:13: note: in definition 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-core-impl/nm-vpn-plugin-info.c:447:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-vpn-plugin-info.h:22:71: note: in expansion of macro ‘NM_TYPE_VPN_PLUGIN_INFO’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:447:26: note: in expansion of macro ‘NM_IS_VPN_PLUGIN_INFO’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-vpn-plugin-info.c:447:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:447:26: note: in expansion of macro ‘NM_IS_VPN_PLUGIN_INFO’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-vpn-plugin-info.c:447:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:447:26: note: in expansion of macro ‘NM_IS_VPN_PLUGIN_INFO’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-vpn-plugin-info.c:779:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:779:26: note: in expansion of macro ‘NM_IS_VPN_PLUGIN_INFO’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-core-impl/nm-vpn-plugin-info.c:779:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:779:26: note: in expansion of macro ‘NM_IS_VPN_PLUGIN_INFO’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  452|               return TRUE;
#  453|   
#  454|->         if (strcmp(nm_vpn_plugin_info_get_name(iter->data), name) == 0) {
#  455|               g_set_error(error,
#  456|                           NM_VPN_PLUGIN_ERROR,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def77]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function ‘nm_vpn_plugin_info_list_find_by_name’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:516:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  514|   
#  515|       for (iter = list; iter; iter = iter->next) {
#  516|->         if (strcmp(nm_vpn_plugin_info_get_name(iter->data), name) == 0)
#  517|               return iter->data;
#  518|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function ‘_service_type_get_default_abbreviation’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:664:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘service_type’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:608:8: note: in expansion of macro ‘NM_GOBJECT_CAST_NON_NULL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:58:5: note: in expansion of macro ‘_NM_GET_PRIVATE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:700:40: note: in expansion of macro ‘NM_VPN_PLUGIN_INFO_GET_PRIVATE’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:702:28: note: in expansion of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function ‘_service_type_get_default_abbreviation’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:709:32: note: in expansion of macro ‘g_strdup’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function ‘_service_type_get_default_abbreviation’
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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:661:10: note: in expansion of macro ‘g_str_has_prefix’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-vpn-plugin-info.c:661:10: note: in expansion of macro ‘g_str_has_prefix’
#  662|           return NULL;
#  663|       service_type += NM_STRLEN(NM_DBUS_INTERFACE);
#  664|->     if (service_type[0] != '.')
#  665|           return NULL;
#  666|       service_type++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-enum-utils.c: scope_hint: In function ‘_nm_utils_enum_get_values’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-enum-utils.c:325:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  323|       int        i;
#  324|       GArray    *values_full = _nm_utils_enum_get_values_full(type, from, to, NULL);
#  325|->     GPtrArray *values      = g_ptr_array_sized_new(values_full->len + 1);
#  326|   
#  327|       for (i = 0; i < values_full->len; i++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:42: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: 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/devices/nm-device-macsec.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c: scope_hint: In function ‘supplicant_interface_release’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-glib.h:56:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
/usr/include/glib-2.0/gobject/gobject.h:695:36: note: in expansion of macro ‘g_clear_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:253:9: note: in expansion of macro ‘g_clear_object’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:176:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:464:5: note: in expansion of macro ‘_LOGI’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘supplicant_interface_release’
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-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:176:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:464:5: note: in expansion of macro ‘_LOGI’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c: scope_hint: In function ‘supplicant_interface_release’
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/core/devices/nm-device-macsec.c:198: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/core/devices/nm-device-macsec.c:208:5: note: in expansion of macro ‘g_return_val_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro ‘_LOGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘supplicant_interface_release’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro ‘_LOGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:25: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c: scope_hint: In function ‘supplicant_interface_release’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro ‘_LOGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro ‘_LOGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c: scope_hint: In function ‘supplicant_interface_release’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro ‘_LOGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro ‘nm_log_ptr’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro ‘nm_log_obj’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro ‘_LOGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘supplicant_interface_release’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro ‘nm_log_ptr’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro ‘nm_log_obj’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro ‘_LOGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c: scope_hint: In function ‘supplicant_interface_release’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:244:5: note: in expansion of macro ‘nm_clear_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:244:5: note: in expansion of macro ‘nm_clear_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:244:5: note: in expansion of macro ‘nm_clear_pointer’
/usr/include/glib-2.0/gobject/gobject.h:695:36: note: in expansion of macro ‘g_clear_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/devices/nm-device-macsec.c:253:9: note: in expansion of macro ‘g_clear_object’
#   54|       {                                                      \
#   55|           typeof((pp)) _pp  = (pp);                          \
#   56|->         typeof(*_pp) _ptr = *_pp;                          \
#   57|                                                              \
#   58|           G_STATIC_ASSERT(sizeof *(pp) == sizeof(gpointer)); \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-inet-utils.c: scope_hint: In function ‘_parse_legacy_addr4’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-inet-utils.c:398:13: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-inet-utils.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’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:1357:13: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:1400:23: note: in expansion of macro ‘nm_malloc_maybe_a’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-inet-utils.c:392:9: note: in expansion of macro ‘nm_memdup_maybe_a’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#  396|           gint32 v;
#  397|   
#  398|->         s = strchr(s, '.');
#  399|           if (s) {
#  400|               s[0] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c:21: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-json-aux.h: scope_hint: In function ‘_nm_auto_decref_json.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-json-aux.h:160:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  158|   {
#  159|       if (*p_json && (*p_json)->refcount != (size_t) -1 && --(*p_json)->refcount == 0)
#  160|->         nm_json_vt()->nm_json_delete(*p_json);
#  161|   }
#  162|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:15: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c: scope_hint: In function ‘_netns_stack_get_impl’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:78:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:166:9: note: in expansion of macro ‘_LOGD’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:6: 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:180:13: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:601:27: note: in expansion of macro ‘_netns_stack_get’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:601:27: note: in expansion of macro ‘_netns_stack_get’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:601:27: note: in expansion of macro ‘_netns_stack_get’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:74:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:166:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c: scope_hint: In function ‘_netns_stack_get_impl’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:166:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:78:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:88:35: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:166:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:78:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro ‘__NM_UTILS_MACRO_REST_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro ‘_NM_MACRO_CALL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:88:35: note: in expansion of macro ‘_NM_UTILS_MACRO_REST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:166:9: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:78:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:166:9: note: in expansion of macro ‘_LOGD’
#  104|                     ...) _nm_printf(10, 11);
#  105|   
#  106|-> #define _nm_log_full(...) _nm_log_impl(__VA_ARGS__)
#  107|   
#  108|   static inline NMLogLevel

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:66: 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-active-connection.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c: scope_hint: In function ‘nm_active_connection_get_state’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:615:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:360:66: note: in definition of macro ‘NM_PROPAGATE_CONST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:102:5: note: in expansion of macro ‘_NM_GET_PRIVATE_PTR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:228:12: note: in expansion of macro ‘NM_ACTIVE_CONNECTION_GET_PRIVATE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:360:66: note: in definition of macro ‘NM_PROPAGATE_CONST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:102:5: note: in expansion of macro ‘_NM_GET_PRIVATE_PTR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:228:12: note: in expansion of macro ‘NM_ACTIVE_CONNECTION_GET_PRIVATE’
#  613|               NM_GOBJECT_CAST_NON_NULL(type, (self), is_check, ##__VA_ARGS__); \
#  614|                                                                                \
#  615|->         NM_PROPAGATE_CONST(_self_get_private, _self_get_private->_priv);     \
#  616|       })
#  617|   #else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
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): [#def86]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function ‘_nm_utils_is_empty_ssid_arr.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:6174:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ssid’
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’
# 6172|   
# 6173|       /* Single white space is for Linksys APs */
# 6174|->     if (len == 1 && ssid[0] == ' ')
# 6175|           return TRUE;
# 6176|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
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-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c: scope_hint: In function ‘_qdiscs_to_variant’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:1779:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘qdisc’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:1788:5: note: in expansion of macro ‘nm_utils_named_values_from_strdict_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:1398:21: note: in expansion of macro ‘nm_utils_named_values_from_strdict’
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-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-core-impl/nm-setting-tc-config.c:249: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-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:249: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-core-impl/nm-setting-tc-config.c:266:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:266: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-core-impl/nm-setting-tc-config.c:301:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:301: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-shared-utils.h:1788:5: note: in expansion of macro ‘nm_utils_named_values_from_strdict_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-setting-tc-config.c:1398:21: note: in expansion of macro ‘nm_utils_named_values_from_strdict’
# 1777|                                                   provided_buffer_len,  \
# 1778|                                                   out_allocated_buffer) \
# 1779|->     nm_utils_hash_to_array_full((hash),                               \
# 1780|                                   (out_len),                            \
# 1781|                                   (compare_func),                       \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:200:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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’
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:225:49: note: in expansion of macro ‘_nm_str_buf_append_c_n2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro ‘_nm_str_buf_append_c_n1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro ‘nm_str_buf_append_c’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro ‘_nm_str_buf_append_c_n2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro ‘_nm_str_buf_append_c_n1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro ‘nm_str_buf_append_c’
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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro ‘_nm_str_buf_append_c_n2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro ‘_nm_str_buf_append_c_n1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro ‘nm_str_buf_append_c’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:220:13: note: in expansion of macro ‘_nm_str_buf_append_c_2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro ‘_nm_str_buf_append_c_n2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro ‘_nm_str_buf_append_c_n1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro ‘nm_str_buf_append_c’
#  198|   _nm_str_buf_append_c_1(NMStrBuf *strbuf, char ch)
#  199|   {
#  200|->     strbuf->_priv_str[strbuf->_priv_len++] = ch;
#  201|   }
#  202|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def89]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h: scope_hint: In function ‘nm_str_buf_append_len.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:256:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
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:3079: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:2752: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:2753: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:2753: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: scope_hint: In function ‘nm_str_buf_append_len.part.0’
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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro ‘G_UNLIKELY’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  254|       if (len > 0) {
#  255|           nm_str_buf_maybe_expand(strbuf, len + 1, FALSE);
#  256|->         memcpy(&strbuf->_priv_str[strbuf->_priv_len], str, len);
#  257|           strbuf->_priv_len += len;
#  258|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def90]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h: scope_hint: In function ‘nm_str_buf_append_len0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:271:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
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-core-impl/nm-keyfile.c:4504: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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro ‘G_UNLIKELY’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  269|       nm_str_buf_maybe_expand(strbuf, len + 1u, FALSE);
#  270|       if (len > 0) {
#  271|->         memcpy(&strbuf->_priv_str[strbuf->_priv_len], str, len);
#  272|           strbuf->_priv_len += len;
#  273|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1841:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
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-config-data.h:326:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
# 1839|   }
# 1840|   #define nmtst_assert_ip4_address(addr, str_expected) \
# 1841|->     _nmtst_assert_ip4_address(__FILE__, __LINE__, addr, str_expected)
# 1842|   
# 1843|   static inline void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c: scope_hint: In function ‘nlmsg_alloc_convert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:411:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:1551:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:1551:5: note: in expansion of macro ‘nm_assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:1623:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:1623:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:1623:9: note: in expansion of macro ‘NM_SET_OUT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:1624:9: note: in expansion of macro ‘NM_SET_OUT’
/usr/include/sys/socket.h:33: included_from: Included from here.
/usr/include/netinet/in.h:23: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:9: included_from: Included from here.
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-std-aux/nm-std-aux.h:168:49: note: in definition of macro ‘NM_PASTE_ARGS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro ‘NM_PASTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1590:27: note: in expansion of macro ‘NM_UNIQ_T’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1596:34: note: in expansion of macro ‘_NM_CAST_ALIGN’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:1261:11: note: in expansion of macro ‘NM_CAST_ALIGN’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c: scope_hint: In function ‘nlmsg_alloc_convert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:393:9: note: in expansion of macro ‘g_return_val_if_reached’
#  409|   
#  410|       nm = nlmsg_alloc(NLMSG_ALIGN(hdr->nlmsg_len));
#  411|->     memcpy(nm->nm_nlh, hdr, hdr->nlmsg_len);
#  412|       return nm;
#  413|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c: scope_hint: In function ‘nlmsg_put’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:481:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘n’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-netlink.c:393:9: note: in expansion of macro ‘g_return_val_if_reached’
#  479|             uint16_t       flags)
#  480|   {
#  481|->     struct nlmsghdr *nlh = (struct nlmsghdr *) n->nm_nlh;
#  482|   
#  483|       nm_assert(nlh->nlmsg_len >= NLMSG_HDRLEN);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform-utils.c: scope_hint: In function ‘nmp_utils_sysctl_open_netdir’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform-utils.c:2132:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&sysdir, 589824)’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform-utils.c:6: 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:664:9: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform-utils.c:2104:5: note: in expansion of macro ‘g_return_val_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform-utils.c: scope_hint: In function ‘nmp_utils_sysctl_open_netdir’
# 2130|               nm_assert_not_reached();
# 2131|   
# 2132|->         fd_dir = open(sysdir, O_DIRECTORY | O_CLOEXEC);
# 2133|           if (fd_dir < 0)
# 2134|               continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:9: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c: scope_hint: In function ‘nm_utils_ip_routes_to_dbus’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform.h:414:81: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1770:20: note: in expansion of macro ‘NM_PLATFORM_IP_ROUTE_IS_DEFAULT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.h:11: 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/NetworkManagerUtils.c:7: 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_utils_ip_routes_to_dbus’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘nm_utils_ip_routes_to_dbus’
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/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/NetworkManagerUtils.c: scope_hint: In function ‘nm_utils_ip_routes_to_dbus’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:620:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1700:39: note: in expansion of macro ‘NMP_OBJECT_CAST_IPX_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1770:20: note: in expansion of macro ‘NM_PLATFORM_IP_ROUTE_IS_DEFAULT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1770:20: note: in expansion of macro ‘NM_PLATFORM_IP_ROUTE_IS_DEFAULT’
#  412|                    NMPlatformIP6Route)
#  413|   
#  414|-> #define NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route) (NM_PLATFORM_IP_ROUTE_CAST(route)->plen <= 0)
#  415|   
#  416|   struct _NMPlatformIP4Route {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c: scope_hint: In function ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nm-platform.h:414:81: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘best_default_route’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1898:13: note: in expansion of macro ‘NM_PLATFORM_IP_ROUTE_IS_DEFAULT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1827: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: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/core/NetworkManagerUtils.c:1827:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1827: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 ‘nm_utils_platform_capture_ip_setting’
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/NetworkManagerUtils.c:1827: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/core/NetworkManagerUtils.c: scope_hint: In function ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1888: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: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-glib-aux/nm-dedup-multi.h: scope_hint: In function ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1888:5: note: in expansion of macro ‘nm_platform_iter_obj_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1888: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 ‘nm_utils_platform_capture_ip_setting’
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/NetworkManagerUtils.c:1888: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/NetworkManagerUtils.c: scope_hint: In function ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:620:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1889:53: note: in expansion of macro ‘NMP_OBJECT_CAST_IPX_ROUTE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/NetworkManagerUtils.c:1898:13: note: in expansion of macro ‘NM_PLATFORM_IP_ROUTE_IS_DEFAULT’
#  412|                    NMPlatformIP6Route)
#  413|   
#  414|-> #define NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route) (NM_PLATFORM_IP_ROUTE_CAST(route)->plen <= 0)
#  415|   
#  416|   struct _NMPlatformIP4Route {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c: scope_hint: In function ‘nmp_global_tracker_track_rule_from_platform’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c:1137:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.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-platform/nmp-global-tracker.c:1123:5: note: in expansion of macro ‘g_return_if_fail’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c:12: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c:1134:5: note: in expansion of macro ‘nmp_cache_iter_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-platform/nmp-global-tracker.c:11: 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 ‘nmp_global_tracker_track_rule_from_platform’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c:1134:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c:1134:5: 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 ‘nmp_global_tracker_track_rule_from_platform’
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/libnm-platform/nmp-global-tracker.c:1134:5: note: in expansion of macro ‘nmp_cache_iter_for_each’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c: scope_hint: In function ‘nmp_global_tracker_track_rule_from_platform’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:624:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-global-tracker.c:1135:43: note: in expansion of macro ‘NMP_OBJECT_CAST_ROUTING_RULE’
# 1135|           const NMPlatformRoutingRule *rr = NMP_OBJECT_CAST_ROUTING_RULE(o);
# 1136|   
# 1137|->         if (addr_family != AF_UNSPEC && rr->addr_family != addr_family)
# 1138|               continue;
# 1139|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c: scope_hint: In function ‘nmp_netns_bind_to_path’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:635:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘creat(filename, 292)’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-platform/nmp-netns.c:616:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro ‘NMP_IS_NETNS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-platform/nmp-netns.c:616:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro ‘NMP_IS_NETNS’
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-platform/nmp-netns.c:617: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:191:13: note: in definition 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-platform/nmp-netns.c:487:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro ‘NMP_IS_NETNS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-platform/nmp-netns.c:487:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro ‘NMP_IS_NETNS’
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-platform/nmp-netns.c:488:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:33: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2044:10: note: in expansion of macro ‘g_array_index’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:245:17: note: in expansion of macro ‘nm_g_array_last’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c: scope_hint: In function ‘nmp_netns_bind_to_path’
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-platform/nmp-netns.c:452:5: note: in expansion of macro ‘g_return_val_if_fail’
#  633|       }
#  634|   
#  635|->     if ((fd = creat(filename, S_IRUSR | S_IRGRP | S_IROTH)) == -1) {
#  636|           errsv = errno;
#  637|           _LOGE(self, "bind: failed to create %s: %s", filename, nm_strerror_native(errsv));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:654:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 524288)’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-platform/nmp-netns.c:616:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro ‘NMP_IS_NETNS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-platform/nmp-netns.c:616:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro ‘NMP_IS_NETNS’
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-platform/nmp-netns.c:617: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:191:13: note: in definition 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-platform/nmp-netns.c:487:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro ‘NMP_IS_NETNS’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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-platform/nmp-netns.c:487:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro ‘NMP_IS_NETNS’
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-platform/nmp-netns.c:488: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-shared-utils.h:2044:10: note: in expansion of macro ‘g_array_index’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c:245:17: note: in expansion of macro ‘nm_g_array_last’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-netns.c: scope_hint: In function ‘nmp_netns_bind_to_path’
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-platform/nmp-netns.c:452:5: note: in expansion of macro ‘g_return_val_if_fail’
#  652|   
#  653|       if (out_fd) {
#  654|->         if ((fd = open(filename, O_RDONLY | O_CLOEXEC)) == -1) {
#  655|               errsv = errno;
#  656|               _LOGE(self, "bind: failed to open %s: %s", filename, nm_strerror_native(errsv));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.c: scope_hint: In function ‘nmp_cache_update_link_udev’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.c:3160:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cache’
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-platform/nmp-object.c:2202:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.c:2202:5: note: in expansion of macro ‘g_return_val_if_fail’
# 3158|           obj_new->_link.udev.device = udev_device_ref(udevice);
# 3159|   
# 3160|->         _nmp_object_fixup_link_udev_fields(&obj_new, NULL, cache->use_udev);
# 3161|   
# 3162|           _idxcache_update(cache, NULL, obj_new, FALSE, &entry_new);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
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-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h: scope_hint: In function ‘nmp_cache_reresolve_main_entry’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.h:1031:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
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/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.c:8: 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 ‘nmp_cache_reresolve_main_entry’
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/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-platform/nmp-object.c:2191: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-platform/nmp-object.c:2192: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-platform/nmp-object.c:2192: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-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-platform/nmp-object.c:2192: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:307:38: note: in definition of macro ‘nm_assert’
# 1029|   
# 1030|       nm_assert(main_entry);
# 1031|->     nm_assert(main_entry->obj == entry->obj);
# 1032|   
# 1033|       return main_entry;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
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): [#def103]
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|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:626:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function ‘nm_path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function ‘nm_path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function ‘nm_path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function ‘nm_path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h: scope_hint: In function ‘nm_path_find_first_component’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  624|   nm_streq(const char *s1, const char *s2)
#  625|   {
#  626|->     return strcmp(s1, s2) == 0;
#  627|   }
#  628|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def105]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:626:12: warning[-Wanalyzer-null-argument]: use of NULL ‘key’ where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-io-utils.c: scope_hint: In function ‘parse_env_file_push’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-io-utils.c:17: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro ‘_nm_str_buf_append_c_n2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro ‘_nm_str_buf_append_c_n1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-io-utils.c:908:17: note: in expansion of macro ‘nm_str_buf_append_c’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro ‘_nm_str_buf_append_c_n2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro ‘_nm_str_buf_append_c_n1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-io-utils.c:908:17: note: in expansion of macro ‘nm_str_buf_append_c’
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:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro ‘_nm_str_buf_append_c_n2’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro ‘_nm_str_buf_append_c_n1’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-io-utils.c:908:17: note: in expansion of macro ‘nm_str_buf_append_c’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h: scope_hint: In function ‘parse_env_file_push’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  624|   nm_streq(const char *s1, const char *s2)
#  625|   {
#  626|->     return strcmp(s1, s2) == 0;
#  627|   }
#  628|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def106]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:626:12: warning[-Wanalyzer-null-argument]: use of NULL ‘kind’ where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-core-impl/nm-utils.c: scope_hint: In function ‘nm_utils_tc_qdisc_from_str’
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-core-impl/nm-utils.c:5490: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-core-impl/nm-utils.c:5491: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-core-impl/nm-utils.c:5491: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-core-impl/nm-utils.c:5492: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-core-impl/nm-utils.c:5492: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-core-impl/nm-utils.c:5493: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-macros-internal.h:79:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h: scope_hint: In function ‘nm_utils_tc_qdisc_from_str’
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  624|   nm_streq(const char *s1, const char *s2)
#  625|   {
#  626|->     return strcmp(s1, s2) == 0;
#  627|   }
#  628|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def107]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1125:54: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*(void **)&arg’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1090:13: note: in definition of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nm-daemon-helper/nm-daemon-helper.c: scope_hint: In function ‘read_arg’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nm-daemon-helper/nm-daemon-helper.c:32:12: note: in expansion of macro ‘nm_steal_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1125:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nm-daemon-helper/nm-daemon-helper.c: scope_hint: In function ‘read_arg’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nm-daemon-helper/nm-daemon-helper.c: scope_hint: In function ‘read_arg’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nm-daemon-helper/nm-daemon-helper.c:32:12: note: in expansion of macro ‘nm_steal_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1125:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1090:13: note: in definition of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1090:13: note: in definition of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nm-daemon-helper/nm-daemon-helper.c: scope_hint: In function ‘read_arg’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nm-daemon-helper/nm-daemon-helper.c:32:12: note: in expansion of macro ‘nm_steal_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1125:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1090:13: note: in definition of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1090:13: note: in definition of macro ‘NM_AUTO_DEFINE_FCN_VOID0’
# 1123|    * free() or nm_auto_free.
# 1124|    */
# 1125|-> NM_AUTO_DEFINE_FCN_VOID0(void *, _nm_auto_free_impl, free);
# 1126|   #define nm_auto_free nm_auto(_nm_auto_free_impl)
# 1127|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
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/core/nm-active-connection.c: scope_hint: In function ‘dispose’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1259:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMActiveConnection)*object)._priv’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:716:29: note: in expansion of macro ‘nm_clear_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1597:5: note: in expansion of macro ‘nm_clear_g_free’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:127:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1593:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h: scope_hint: In function ‘dispose’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro ‘nm_logging_enabled’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:127:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1593:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c: scope_hint: In function ‘dispose’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:127:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1593:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:127:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-hash-utils.h:328:16: note: in expansion of macro ‘nm_sprintf_buf’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:135:16: note: in expansion of macro ‘NM_HASH_OBFUSCATE_PTR_STR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1593:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:127:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1593:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro ‘_nm_log_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro ‘_nm_log_mt’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro ‘_nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:127:9: note: in expansion of macro ‘nm_log’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro ‘_NMLOG’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1593:5: note: in expansion of macro ‘_LOGD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-macros-internal.h:716:29: note: in expansion of macro ‘nm_clear_pointer’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/nm-active-connection.c:1597:5: note: in expansion of macro ‘nm_clear_g_free’
# 1257|           int            _changed = false;                                             \
# 1258|                                                                                        \
# 1259|->         if (_pp && (_p = *_pp)) {                                                    \
# 1260|               _NM_ENSURE_POINTER(_p);                                                  \
# 1261|                                                                                        \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def109]
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/settings/plugins/keyfile/nms-keyfile-storage.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c: scope_hint: In function ‘cmp_fcn.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1405:57: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro ‘NM_CMP_RETURN_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro ‘NM_CMP_DIRECT_STRCMP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1436:5: note: in expansion of macro ‘NM_CMP_DIRECT_UNSAFE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:77:5: note: in expansion of macro ‘NM_CMP_FIELD_UNSAFE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro ‘NM_CMP_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:85:9: note: in expansion of macro ‘NM_CMP_FIELD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro ‘NM_CMP_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:85:9: note: in expansion of macro ‘NM_CMP_FIELD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro ‘NM_CMP_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:86:9: note: in expansion of macro ‘NM_CMP_FIELD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro ‘NM_CMP_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:86:9: note: in expansion of macro ‘NM_CMP_FIELD’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro ‘NM_CMP_RETURN_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro ‘NM_CMP_DIRECT_STRCMP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h: scope_hint: In function ‘cmp_fcn.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/core/settings/nm-settings-storage.h:86:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:18:38: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:86:26: note: in expansion of macro ‘NM_IS_SETTINGS_STORAGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro ‘g_return_if_fail_warning’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:86: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:1354:26: note: in definition of macro ‘NM_CMP_RETURN_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro ‘NM_CMP_DIRECT_STRCMP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c: scope_hint: In function ‘cmp_fcn.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro ‘NM_CMP_RETURN_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro ‘NM_CMP_DIRECT_STRCMP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h: scope_hint: In function ‘cmp_fcn.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/core/settings/nm-settings-storage.h:86:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:18:38: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:86:26: note: in expansion of macro ‘NM_IS_SETTINGS_STORAGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition 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/core/settings/nm-settings-storage.h:86:5: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:18:38: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/nm-settings-storage.h:86:26: note: in expansion of macro ‘NM_IS_SETTINGS_STORAGE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro ‘NM_CMP_RETURN_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro ‘NM_CMP_DIRECT_STRCMP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c: scope_hint: In function ‘cmp_fcn.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro ‘NM_CMP_RETURN_DIRECT’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro ‘NM_CMP_DIRECT_STRCMP’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 1403|   #define NM_CMP_DIRECT_MEMCMP(a, b, size) NM_CMP_RETURN(nm_memcmp((a), (b), (size)))
# 1404|   
# 1405|-> #define NM_CMP_DIRECT_STRCMP(a, b) NM_CMP_RETURN_DIRECT(strcmp((a), (b)))
# 1406|   
# 1407|   #define NM_CMP_DIRECT_STRCMP0(a, b) NM_CMP_RETURN_DIRECT(nm_strcmp0((a), (b)))

Error: GCC_ANALYZER_WARNING (CWE-416): [#def110]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:17: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘client_start_transaction’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:952:22: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘client’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:70:44: note: in definition of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:952:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:134:17: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:129:26: note: in expansion of macro ‘_ASSERT_PTR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1298:35: note: in expansion of macro ‘ASSERT_PTR’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1299:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1299:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:324:21: note: in definition of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:351:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:351:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1299:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/errno-util.h:110:16: note: in expansion of macro ‘IN_SET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘client_start_transaction’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/errno-util.h:110:16: note: in expansion of macro ‘IN_SET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘client_start_transaction’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1191:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1192:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1192:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:324:21: note: in definition of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:351:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:351:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:601:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:573:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:580:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:552:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/sd-dhcp6-client.h:139:1: note: in expansion of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘client_start_transaction’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:338:21: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:358:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:347:24: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:347:24: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1566:16: note: in expansion of macro ‘mfree’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:347:24: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘client_start_transaction’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:951:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:70:44: note: in definition of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:952:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:70:44: note: in definition of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:952:9: note: in expansion of macro ‘assert’
#  950|   
#  951|           assert(client);
#  952|->         assert(client->event);
#  953|   
#  954|           switch (state) {

Error: GCC_ANALYZER_WARNING (CWE-416): [#def111]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘sd_dhcp6_client_stop’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1419:35: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘client’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1389:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:324:21: note: in definition of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:351:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:351:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:365:9: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:601:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:573:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:580:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:552:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/sd-dhcp6-client.h:139:1: note: in expansion of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘sd_dhcp6_client_stop’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:338:21: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:358:9: note: in expansion of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:347:24: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:347:24: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1566:16: note: in expansion of macro ‘mfree’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:347:24: note: in definition of macro ‘_DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:366:9: note: in expansion of macro ‘DEFINE_TRIVIAL_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1569:1: note: in expansion of macro ‘DEFINE_TRIVIAL_REF_UNREF_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:599:9: note: in expansion of macro ‘DHCP6_CLIENT_DONT_DESTROY’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro ‘_SD_DEFINE_POINTER_CLEANUP_FUNC’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function ‘sd_dhcp6_client_stop’
# 1417|           client_stop(client, SD_DHCP6_CLIENT_EVENT_STOP);
# 1418|   
# 1419|->         client->receive_message = sd_event_source_unref(client->receive_message);
# 1420|           client->fd = safe_close(client->fd);
# 1421|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c: scope_hint: In function ‘device_add_property_aux’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:123:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:12: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:1950:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:752:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c: scope_hint: In function ‘device_add_property_aux’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c: scope_hint: In function ‘device_add_property_aux’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c: scope_hint: In function ‘device_add_property_aux’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:98:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:99:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:99:9: note: in expansion of macro ‘assert’
#  121|                           return -ENOMEM;
#  122|   
#  123|->                 old_value = ordered_hashmap_get2(*properties, key, (void**) &old_key);
#  124|   
#  125|                   /* ordered_hashmap_replace() does not fail when the hashmap already has the entry. */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_is_valid_full.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:1195:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘e’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:848:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_is_valid_full.part.0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_is_valid_full.part.0’
# 1193|                                           * *with* the trailing NUL byte) */
# 1194|                           return false;
# 1195|->                 if (*e == 0)           /* End of string? Yay! */
# 1196|                           return true;
# 1197|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/random-util.c: scope_hint: In function ‘random_bytes’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/random-util.c:113:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 524544)’
#  111|           }
#  112|   
#  113|->         fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
#  114|           if (fd >= 0 && loop_read_exact(fd, p, n, false) == 0)
#  115|                   return;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/random-util.c: scope_hint: In function ‘crypto_random_bytes’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/random-util.c:154:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 524544)’
#  152|                   int r;
#  153|   
#  154|->                 ready_fd = open("/dev/random", O_RDONLY|O_CLOEXEC|O_NOCTTY);
#  155|                   if (ready_fd < 0)
#  156|                           return -errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/random-util.c:163:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 524544)’
#  161|           }
#  162|   
#  163|->         fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
#  164|           if (fd < 0)
#  165|                   return -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function ‘string_strv_hashmap_put_internal’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c:463:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function ‘string_strv_hashmap_put_internal’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/string-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/escape.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/string-util-fundamental.h:107:9: note: in expansion of macro ‘_STRV_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c:147:9: note: in expansion of macro ‘STRV_FOREACH’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function ‘string_strv_hashmap_put_internal’
#  461|           size_t size = n ? *n : SIZE_MAX;
#  462|           if (size == SIZE_MAX)
#  463|->                 size = strv_length(*l);
#  464|   
#  465|           /* Check for overflow */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c:951:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function ‘string_strv_hashmap_put_internal’
#  949|                           return r;
#  950|   
#  951|->                 r = hashmap_put(h, t, l2);
#  952|                   if (r < 0)
#  953|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def119]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c: scope_hint: In function ‘verify_timezone’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1576:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(__builtin_alloca(max(_n_, 1)), 524288)’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c: scope_hint: In function ‘verify_timezone’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1546:13: note: in expansion of macro ‘streq’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c: scope_hint: In function ‘verify_timezone’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1574:13: note: in expansion of macro ‘strjoina’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1574:13: note: in expansion of macro ‘strjoina’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1574:13: note: in expansion of macro ‘strjoina’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:15: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:30:17: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:38:22: note: in expansion of macro ‘alloca_safe’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/string-util.h:121:29: note: in expansion of macro ‘newa’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1574:13: note: in expansion of macro ‘strjoina’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1574:13: note: in expansion of macro ‘strjoina’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/time-util.c:1574:13: note: in expansion of macro ‘strjoina’
# 1574|           t = strjoina("/usr/share/zoneinfo/", name);
# 1575|   
# 1576|->         fd = open(t, O_RDONLY|O_CLOEXEC);
# 1577|           if (fd < 0)
# 1578|                   return log_full_errno(log_level, errno, "Failed to open timezone file '%s': %m", t);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c: scope_hint: In function ‘tempfn_build’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:192:1: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:7: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:130:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:131:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:131:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/siphash24.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/stat-util.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.h:9: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:16: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:175:14: note: in expansion of macro ‘strjoin’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c: scope_hint: In function ‘tempfn_build’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/tmpfile-util.c:175:14: note: in expansion of macro ‘strjoin’
#  190|           *ret = TAKE_PTR(result);
#  191|           return 0;
#  192|-> }
#  193|   
#  194|   int tempfn_xxxxxx(const char *p, const char *extra, char **ret) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c: scope_hint: In function ‘xfopenat_regular’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:70:41: warning[-Wanalyzer-malloc-leak]: leak of ‘take_fdopen(&fd,  mode)’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:80:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:967:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:968:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:968:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:969:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:969:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:970:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:970:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:920:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:80:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:80:9: note: in expansion of macro ‘assert’
#   68|   #define _section_(x) __attribute__((__section__(x)))
#   69|   #define _sentinel_ __attribute__((__sentinel__))
#   70|-> #define _unlikely_(x) (__builtin_expect(!!(x), 0))
#   71|   #define _unused_ __attribute__((__unused__))
#   72|   #define _used_ __attribute__((__used__))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c: scope_hint: In function ‘xfopenat_unix_socket’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:70:41: warning[-Wanalyzer-malloc-leak]: leak of ‘take_fdopen(&sk, "r")’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:80:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:1000:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:1001:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:1001:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:1002:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:1002:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:80:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:80:9: note: in expansion of macro ‘assert’
#   68|   #define _section_(x) __attribute__((__section__(x)))
#   69|   #define _sentinel_ __attribute__((__sentinel__))
#   70|-> #define _unlikely_(x) (__builtin_expect(!!(x), 0))
#   71|   #define _unused_ __attribute__((__unused__))
#   72|   #define _used_ __attribute__((__used__))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:412:17: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:106:22: note: in expansion of macro ‘mfree’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c: scope_hint: In function ‘read_full_stream_full’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:598:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:193:21: note: in expansion of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:599:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:599:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:70:44: note: in definition of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:600:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:600:17: note: in expansion of macro ‘FLAGS_SET’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:600:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:70:44: note: in definition of macro ‘_unlikely_’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:601:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:601:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:276: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/memory-util.h:12: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:686:40: note: in expansion of macro ‘MALLOC_SIZEOF_SAFE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:686:40: note: in expansion of macro ‘MALLOC_SIZEOF_SAFE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:686:40: note: in expansion of macro ‘MALLOC_SIZEOF_SAFE’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/fileio.c:691:17: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:106:22: note: in expansion of macro ‘mfree’
#  410|   #define mfree(memory)                           \
#  411|           ({                                      \
#  412|->                 free(memory);                   \
#  413|                   (typeof(memory)) NULL;          \
#  414|           })

Error: GCC_ANALYZER_WARNING (CWE-688): [#def124]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/string-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/siphash24.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/stat-util.h:14: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/chase.h:7: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/string-util-fundamental.h:26:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:909:21: note: in expansion of macro ‘streq’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:12: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:848:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:892:13: note: in expansion of macro ‘streq’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:909:21: note: in expansion of macro ‘streq’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-std-aux/nm-std-aux.h:7: 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-systemd-shared/nm-default-systemd-shared.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/sd-adapt-shared/nm-sd-adapt-shared.h:9: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:3: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#   24|   #endif
#   25|   
#   26|-> #define streq(a,b) (strcmp((a),(b)) == 0)
#   27|   #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
#   28|   #define strcaseeq(a,b) (strcasecmp((a),(b)) == 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def125]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/fundamental/string-util-fundamental.h:26:21: warning[-Wanalyzer-null-argument]: use of NULL ‘next’ where non-null expected
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:909:21: note: in expansion of macro ‘streq’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/macro.h:210:22: note: in expansion of macro ‘assert_message_se’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:848:9: note: in expansion of macro ‘assert’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function ‘path_find_first_component’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:892:13: note: in expansion of macro ‘streq’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-systemd-shared/src/basic/path-util.c:909:21: note: in expansion of macro ‘streq’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#   24|   #endif
#   25|   
#   26|-> #define streq(a,b) (strcmp((a),(b)) == 0)
#   27|   #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
#   28|   #define strcaseeq(a,b) (strcasecmp((a),(b)) == 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_get_components’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:116:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.children’
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-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:30: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:112:16: note: in expansion of macro ‘nm_g_array_first_p’
#  114|       cos = g_ptr_array_new();
#  115|   
#  116|->     for (i = 0; i < priv->children->len; i++) {
#  117|           if (!nmt_newt_widget_get_visible(children[i].widget))
#  118|               continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_size_request’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:152:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:135:36: note: in expansion of macro ‘nm_g_array_first_p’
#  150|           for (col = 0; col < priv->max_x + 1; col++) {
#  151|               for (i = 0; i < priv->children->len; i++) {
#  152|->                 if (children[i].x != col || children[i].y != row)
#  153|                       continue;
#  154|                   if (!nmt_newt_widget_get_visible(children[i].widget))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_size_allocate’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:230:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.children’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:193:36: note: in expansion of macro ‘nm_g_array_first_p’
#  228|       }
#  229|   
#  230|->     for (i = 0; i < priv->children->len; i++) {
#  231|           child = &children[i];
#  232|           if (!nmt_newt_widget_get_visible(child->widget))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_find_size’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:275:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:271:36: note: in expansion of macro ‘nm_g_array_first_p’
#  273|   
#  274|       priv->max_x = priv->max_y = 0;
#  275|->     for (i = 0; i < priv->children->len; i++) {
#  276|           if (children[i].x > priv->max_x)
#  277|               priv->max_x = children[i].x;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘find_child’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:321:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-grid.c:318:36: note: in expansion of macro ‘nm_g_array_first_p’
#  319|       int                 i;
#  320|   
#  321|->     for (i = 0; i < priv->children->len; i++) {
#  322|           if (children[i].widget == widget)
#  323|               return i;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-popup.c: scope_hint: In function ‘nmt_newt_popup_activated’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-popup.c:129:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
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-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-popup.c:16: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-popup.c:121:36: note: in expansion of macro ‘nm_g_array_first_p’
#  127|       int                  i, active;
#  128|   
#  129|->     listbox = nmt_newt_listbox_new(priv->entries->len, 0);
#  130|       nmt_newt_widget_set_exit_on_activate(listbox, TRUE);
#  131|       for (i = 0; i < priv->entries->len; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-popup.c: scope_hint: In function ‘nmt_newt_popup_set_active_id’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-popup.c:254:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.entries’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnmt-newt/nmt-newt-popup.c:251:36: note: in expansion of macro ‘nm_g_array_first_p’
#  252|       int                  i;
#  253|   
#  254|->     for (i = 0; i < priv->entries->len; i++) {
#  255|           if (!g_strcmp0(active_id, entries[i].id)) {
#  256|               nmt_newt_popup_set_active(popup, i);

Error: CPPCHECK_WARNING (CWE-401): [#def133]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:350: error[memleak]: Memory leak: acd
#  348|           r = n_acd_get_random(&acd->seed);
#  349|           if (r)
#  350|->                 return r;
#  351|   
#  352|           acd->fd_epoll = epoll_create1(EPOLL_CLOEXEC);

Error: CPPCHECK_WARNING (CWE-401): [#def134]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:354: error[memleak]: Memory leak: acd
#  352|           acd->fd_epoll = epoll_create1(EPOLL_CLOEXEC);
#  353|           if (acd->fd_epoll < 0)
#  354|->                 return -c_errno();
#  355|   
#  356|           r = timer_init(&acd->timer);

Error: CPPCHECK_WARNING (CWE-401): [#def135]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:358: error[memleak]: Memory leak: acd
#  356|           r = timer_init(&acd->timer);
#  357|           if (r < 0)
#  358|->                 return r;
#  359|   
#  360|           acd->max_bpf_map = 8;

Error: CPPCHECK_WARNING (CWE-401): [#def136]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:364: error[memleak]: Memory leak: acd
#  362|           r = n_acd_bpf_map_create(&acd->fd_bpf_map, acd->max_bpf_map);
#  363|           if (r)
#  364|->                 return r;
#  365|   
#  366|           r = n_acd_bpf_compile(&fd_bpf_prog, acd->fd_bpf_map, (struct ether_addr*) acd->mac);

Error: CPPCHECK_WARNING (CWE-401): [#def137]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:368: error[memleak]: Memory leak: acd
#  366|           r = n_acd_bpf_compile(&fd_bpf_prog, acd->fd_bpf_map, (struct ether_addr*) acd->mac);
#  367|           if (r)
#  368|->                 return r;
#  369|   
#  370|           r = n_acd_socket_new(&acd->fd_socket, fd_bpf_prog, config);

Error: CPPCHECK_WARNING (CWE-401): [#def138]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:372: error[memleak]: Memory leak: acd
#  370|           r = n_acd_socket_new(&acd->fd_socket, fd_bpf_prog, config);
#  371|           if (r)
#  372|->                 return r;
#  373|   
#  374|           eevent = (struct epoll_event){

Error: CPPCHECK_WARNING (CWE-401): [#def139]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:380: error[memleak]: Memory leak: acd
#  378|           r = epoll_ctl(acd->fd_epoll, EPOLL_CTL_ADD, acd->timer.fd, &eevent);
#  379|           if (r < 0)
#  380|->                 return -c_errno();
#  381|   
#  382|           eevent = (struct epoll_event){

Error: CPPCHECK_WARNING (CWE-401): [#def140]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:388: error[memleak]: Memory leak: acd
#  386|           r = epoll_ctl(acd->fd_epoll, EPOLL_CTL_ADD, acd->fd_socket, &eevent);
#  387|           if (r < 0)
#  388|->                 return -c_errno();
#  389|   
#  390|           *acdp = acd;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def141]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c: scope_hint: In function ‘n_acd_packet_is_valid’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:754:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(struct ether_arp *)packet.ea_hdr.ar_hrd’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-acd/src/n-acd.c:59: included_from: Included from here.
#  752|           arp = packet;
#  753|   
#  754|->         if (arp->arp_hrd != htobe16(ARPHRD_ETHER))
#  755|                   return false;
#  756|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-dhcp4/src/n-dhcp4-c-connection.c: scope_hint: In function ‘n_dhcp4_c_connection_dispatch_io’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-dhcp4/src/n-dhcp4-c-connection.c:1177:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(65535)’
# 1175|                   return -ENOMEM;
# 1176|   
# 1177|->         switch (connection->state) {
# 1178|           case N_DHCP4_C_CONNECTION_STATE_PACKET:
# 1179|                   r = n_dhcp4_c_socket_packet_recv(connection->fd_packet,

Error: CPPCHECK_WARNING (CWE-401): [#def143]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-dhcp4/src/n-dhcp4-c-lease.c:123: error[memleak]: Memory leak: lease
#  121|           r = n_dhcp4_incoming_get_timeouts(message, &lease->t1, &lease->t2, &lease->lifetime);
#  122|           if (r)
#  123|->                 return r;
#  124|   
#  125|           lease->message = message;

Error: CPPCHECK_WARNING (CWE-401): [#def144]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-dhcp4/src/n-dhcp4-c-probe.c:431: error[memleak]: Memory leak: probe
#  429|           r = n_dhcp4_client_probe_config_dup(config, &probe->config);
#  430|           if (r)
#  431|->                 return r;
#  432|   
#  433|           /*

Error: CPPCHECK_WARNING (CWE-401): [#def145]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-dhcp4/src/n-dhcp4-c-probe.c:447: error[memleak]: Memory leak: probe
#  445|                                         active ? client->fd_epoll : -1);
#  446|           if (r)
#  447|->                 return r;
#  448|   
#  449|           if (probe->config->requested_ip.s_addr != INADDR_ANY)

Error: CPPCHECK_WARNING (CWE-401): [#def146]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-dhcp4/src/n-dhcp4-incoming.c:214: error[memleak]: Memory leak: incoming
#  212|   
#  213|           if (incoming->message.magic != htobe32(N_DHCP4_MESSAGE_MAGIC))
#  214|->                 return N_DHCP4_E_MALFORMED;
#  215|   
#  216|           /* linearize options */

Error: CPPCHECK_WARNING (CWE-401): [#def147]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/n-dhcp4/src/n-dhcp4-outgoing.c:82: error[memleak]: Memory leak: outgoing
#   80|           outgoing->message = calloc(1, outgoing->n_message);
#   81|           if (!outgoing->message)
#   82|->                 return -ENOMEM;
#   83|   
#   84|           outgoing->message->magic = htonl(N_DHCP4_MESSAGE_MAGIC);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c: scope_hint: In function ‘nmc_find_active_connection’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:578:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘filter_val’
/usr/include/glib-2.0/glib.h:33: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:6: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:560:41: note: in expansion of macro ‘g_ptr_array_index’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:8: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:571:17: note: in expansion of macro ‘nmc_complete_strings’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:571:17: note: in expansion of macro ‘nmc_complete_strings’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:27: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:1572:9: note: in expansion of macro ‘nmc_print’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:571:17: note: in expansion of macro ‘nmc_complete_strings’
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-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:576:13: note: in expansion of macro ‘NM_IN_STRSET’
#  576|           if (NM_IN_STRSET(filter_type, NULL, "uuid")) {
#  577|               v = nm_active_connection_get_uuid(candidate);
#  578|->             if (complete && (filter_type || *filter_val))
#  579|                   nmc_complete_strings(filter_val, v);
#  580|               if (nm_streq0(filter_val, v))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c: scope_hint: In function ‘nmc_complete_help’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:1452:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prefix’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:1451:5: note: in expansion of macro ‘nmc_complete_strings’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:1572:9: note: in expansion of macro ‘nmc_print’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/common.c:1451:5: note: in expansion of macro ‘nmc_complete_strings’
# 1450|   {
# 1451|       nmc_complete_strings(prefix, "help");
# 1452|->     if (*prefix == '-')
# 1453|           nmc_complete_strings(prefix, "-help", "--help");
# 1454|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def150]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/utils.c: scope_hint: In function ‘nmc_terminal_spawn_pager’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/utils.c:1517:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
# 1515|   
# 1516|       /* Return in the parent */
# 1517|->     if (dup2(fd[1], STDOUT_FILENO) < 0) {
# 1518|           errsv = errno;
# 1519|           nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmcli/utils.c:1521:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 2)’
# 1519|           nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));
# 1520|       }
# 1521|->     if (dup2(fd[1], STDERR_FILENO) < 0) {
# 1522|           errsv = errno;
# 1523|           nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_find_widget’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:153:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
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-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:27: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:150:34: note: in expansion of macro ‘nm_g_array_first_p’
#  151|       int                   i;
#  152|   
#  153|->     for (i = 0; i < priv->rows->len; i++) {
#  154|           if (rows[i].label == widget || rows[i].widget == widget || rows[i].extra == widget)
#  155|               return i;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_get_components’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:229:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:222:34: note: in expansion of macro ‘nm_g_array_first_p’
#  227|       cos = g_ptr_array_new();
#  228|   
#  229|->     for (i = 0; i < priv->rows->len; i++) {
#  230|           if (!nmt_newt_widget_get_visible(rows[i].widget))
#  231|               continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_size_request’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:317:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
/usr/include/glib-2.0/glib/gmem.h:264:32: note: in definition of macro ‘_G_NEW’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:317:25: note: in expansion of macro ‘g_new0’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:311:43: note: in expansion of macro ‘nm_g_array_first_p’
/usr/include/glib-2.0/glib/gmem.h:264:32: note: in definition of macro ‘_G_NEW’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:317:25: note: in expansion of macro ‘g_new0’
#  315|   
#  316|       g_free(priv->row_heights);
#  317|->     priv->row_heights = g_new0(int, priv->rows->len);
#  318|   
#  319|       *height = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_size_allocate’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:368:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/libnm-glib-aux/nm-shared-utils.h:2033:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.51.2-build/NetworkManager-1.51.2/src/nmtui/nmt-editor-grid.c:359:37: note: in expansion of macro ‘nm_g_array_first_p’
#  366|       col2_width = state->col_widths[2];
#  367|   
#  368|->     for (i = row = 0; i < priv->rows->len; i++) {
#  369|           if (!nmt_newt_widget_get_visible(rows[i].widget))
#  370|               continue;

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
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.51.2-2.fc42
store-results-to/tmp/tmp0yse99t8/NetworkManager-1.51.2-2.fc42.tar.xz
time-created2024-11-12 23:27:00
time-finished2024-11-12 23:44:45
toolcsmock
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-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9