NetworkManager-1.53.1-1.fc43

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1]
NetworkManager-1.53.1/redhat-linux-build/../src/c-list/src/c-list.h:116:24: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘node’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:328:16: enter_function: entry to ‘n_acd_new’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:335:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:336:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:337:53: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:340:15: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:341:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:344:22: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:348:13: call_function: calling ‘n_acd_get_random’ from ‘n_acd_new’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:348:13: return_function: returning to ‘n_acd_new’ from ‘n_acd_get_random’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:330:35: call_function: inlined call to ‘c_closep’ from ‘n_acd_new’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:329:41: call_function: inlined call to ‘n_acd_unrefp’ from ‘n_acd_new’
#  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): [#def2]
NetworkManager-1.53.1/redhat-linux-build/../src/c-list/src/c-list.h:194:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prev’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:328:16: enter_function: entry to ‘n_acd_new’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:335:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:336:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:337:53: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:334:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:340:15: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:341:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:344:22: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:348:13: call_function: calling ‘n_acd_get_random’ from ‘n_acd_new’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:348:13: return_function: returning to ‘n_acd_new’ from ‘n_acd_get_random’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:330:35: call_function: inlined call to ‘c_closep’ from ‘n_acd_new’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:329:41: call_function: inlined call to ‘n_acd_unrefp’ from ‘n_acd_new’
#  192|   
#  193|           next->prev = prev;
#  194|->         prev->next = next;
#  195|   }
#  196|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:400:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1013:17: enter_function: entry to ‘c_rbnode_unlink_stale’
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1016:9: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1017:9: call_function: inlined call to ‘c_rbnode_is_linked’ from ‘c_rbnode_unlink_stale’
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1065:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1080:21: call_function: inlined call to ‘c_rbnode_pop_root’ from ‘c_rbnode_unlink_stale’
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1100:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1101:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1110:29: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1110:29: call_function: calling ‘c_rbnode_leftmost’ from ‘c_rbnode_unlink_stale’
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1110:29: return_function: returning to ‘c_rbnode_unlink_stale’ from ‘c_rbnode_leftmost’
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1111:29: call_function: inlined call to ‘c_rbnode_parent’ from ‘c_rbnode_unlink_stale’
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1112:25: branch_false: ...to here
 release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/c-rbtree/src/c-rbtree.c:1118:25: call_function: inlined call to ‘c_rbtree_store’ from ‘c_rbnode_unlink_stale’
#  398|            * undefined behavior.
#  399|            */
#  400|->         *(volatile CRBNode **)ptr = addr;
#  401|   }
#  402|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1301:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1296:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1297:36: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1299:36: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1301:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1301:9: danger: dereference of NULL ‘<unknown>’
# 1299|           NMPlatformQdisc *qdisc   = NMP_OBJECT_CAST_QDISC(q);
# 1300|   
# 1301|->         qdisc->ifindex = ip_ifindex;
# 1302|           qdisc->kind    = nm_tc_qdisc_get_kind(s_qdisc);
# 1303|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1376:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1370:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1371:40: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1374:38: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1376:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1376:9: danger: dereference of NULL ‘<unknown>’
# 1374|           NMPlatformTfilter *tfilter = NMP_OBJECT_CAST_TFILTER(t);
# 1375|   
# 1376|->         tfilter->ifindex     = ip_ifindex;
# 1377|           tfilter->kind        = nm_tc_tfilter_get_kind(s_tfilter);
# 1378|           tfilter->addr_family = AF_UNSPEC;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1768:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1670:1: enter_function: entry to ‘nm_utils_ip_routes_to_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1696:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_utils_ip_routes_to_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1696:5: return_function: returning to ‘nm_utils_ip_routes_to_dbus’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1697:12: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_utils_ip_routes_to_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1697:12: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_utils_ip_routes_to_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1698:39: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1711:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1711:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1714:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1714:12: branch_false: following ‘false’ branch (when ‘i <= 99’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1719:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1764:12: branch_true: following ‘true’ branch (when ‘out_routes’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1767:50: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1767:16: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1768:20: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1768:20: danger: dereference of NULL ‘<unknown>’
# 1766|                * plen is positive. Skip the default routes not to break older clients. */
# 1767|               if (!nm_platform_route_table_is_main(r->rx.table_coerced)
# 1768|->                 || NM_PLATFORM_IP_ROUTE_IS_DEFAULT(r))
# 1769|                   continue;
# 1770|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1896:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘best_default_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1798:1: enter_function: entry to ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1815:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1825:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1825:5: return_function: returning to ‘nm_utils_platform_capture_ip_setting’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1825:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1825:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1868:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1868:8: branch_true: following ‘true’ branch (when ‘method’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1870:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1886:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1886:5: return_function: returning to ‘nm_utils_platform_capture_ip_setting’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1886:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1886:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_utils_platform_capture_ip_setting’
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1887:53: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1890:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/NetworkManagerUtils.c:1896:13: danger: dereference of NULL ‘<unknown>’
# 1894|           }
# 1895|   
# 1896|->         if (NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route)) {
# 1897|               if (!best_default_route)
# 1898|                   best_default_route = route;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:707:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:699:1: enter_function: entry to ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:703:41: release_memory: ‘error’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:703:41: release_memory: ‘error’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:705:14: call_function: calling ‘build_supplicant_config’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:705:14: return_function: returning to ‘supplicant_iface_start’ from ‘build_supplicant_config’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:706:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:707:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:707:9: call_function: inlined call to ‘_nm_device_get_iface’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:707:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:707:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:707:9: release_memory: ‘error’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-ethernet.c:707:9: danger: dereference of NULL ‘error’
#  705|       config = build_supplicant_config(self, &error);
#  706|       if (!config) {
#  707|->         _LOGE(LOGD_DEVICE | LOGD_ETHER,
#  708|                 "Activation: (ethernet) couldn't build security configuration: %s",
#  709|                 error->message);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:253:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:431:1: enter_function: entry to ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:437:14: call_function: calling ‘build_supplicant_config’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:437:14: return_function: returning to ‘supplicant_iface_start’ from ‘build_supplicant_config’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:438:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: call_function: inlined call to ‘_nm_device_get_iface’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:440:9: call_function: calling ‘supplicant_interface_release’ from ‘supplicant_iface_start’
#  251|       if (priv->supplicant.iface) {
#  252|           nm_supplicant_interface_disconnect(priv->supplicant.iface);
#  253|->         g_clear_object(&priv->supplicant.iface);
#  254|       }
#  255|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:431:1: enter_function: entry to ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:435:41: release_memory: ‘error’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:438:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: call_function: inlined call to ‘_nm_device_get_iface’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘supplicant_iface_start’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: release_memory: ‘error’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-device-macsec.c:439:9: danger: dereference of NULL ‘error’
#  437|       config = build_supplicant_config(self, &error);
#  438|       if (!config) {
#  439|->         _LOGE(LOGD_DEVICE, "Activation: couldn't build security configuration: %s", error->message);
#  440|           supplicant_interface_release(self);
#  441|           nm_device_state_changed(NM_DEVICE(self),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-lldp-listener.c:805:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-lldp-listener.c:829:1: enter_function: entry to ‘lldp_event_handler’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-lldp-listener.c:833:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘lldp_event_handler’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-lldp-listener.c:833:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-lldp-listener.c:833:5: branch_false: following ‘false’ branch (when ‘user_data’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-lldp-listener.c:833:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/nm-lldp-listener.c:834:5: call_function: calling ‘process_lldp_neighbor’ from ‘lldp_event_handler’
#  803|       }
#  804|   
#  805|->     neigh_old = g_hash_table_lookup(self->lldp_neighbors, neigh);
#  806|   
#  807|       if (remove) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/ovs/nm-ovsdb.c:2550:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/ovs/nm-ovsdb.c:2504:1: enter_function: entry to ‘ovsdb_write_try’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/ovs/nm-ovsdb.c:2508:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/ovs/nm-ovsdb.c:2509:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/ovs/nm-ovsdb.c:2509:9: call_function: calling ‘ovsdb_write’ from ‘ovsdb_write_try’
# 2548|           if (!c_list_is_empty(&priv->calls_lst_head)) {
# 2549|               call          = c_list_first_entry(&priv->calls_lst_head, OvsdbMethodCall, calls_lst);
# 2550|->             call->call_id = CALL_ID_UNSPEC;
# 2551|           }
# 2552|       } else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/tests/test-lldp.c:793:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/net/tun", 524290)’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/tests/test-lldp.c:793:10: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/tests/test-lldp.c:793:10: danger: ‘open("/dev/net/tun", 524290)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def14]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:512:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:568:1: enter_function: entry to ‘set_initial_eps_bearer_settings_ready’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:574:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:575:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:575:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:578:14: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:578:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:587:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘set_initial_eps_bearer_settings_ready’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:587:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:587:9: branch_false: following ‘false’ branch (when ‘self’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:587:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem-broadband.c:592:5: call_function: calling ‘connect_context_step’ from ‘set_initial_eps_bearer_settings_ready’
#  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): [#def15]
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem.c:727:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(port, 526594)’
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem.c:720:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem.c:727:10: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem.c:727:10: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/core/devices/wwan/nm-modem.c:727:10: danger: ‘open(port, 526594)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  725|       }
#  726|   
#  727|->     fd = open(port, O_RDWR | O_NONBLOCK | O_NOCTTY | O_CLOEXEC);
#  728|       if (fd < 0)
#  729|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:638:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1531:1: enter_function: entry to ‘nm_dhcp_client_stop’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1540:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1543:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1576:5: call_function: calling ‘_nm_dhcp_client_notify’ from ‘nm_dhcp_client_stop’
#  636|           goto handle_no_acd;
#  637|   
#  638|->     addr = NMP_OBJECT_CAST_IP4_ADDRESS(
#  639|                  nm_l3_config_data_get_first_obj(priv->l3cd_next, NMP_OBJECT_TYPE_IP4_ADDRESS, NULL))
#  640|                  ->address;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1648:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘key’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1729:1: enter_function: entry to ‘nm_dhcp_client_handle_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1744:5: branch_false: following ‘false’ branch (when ‘self’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1744:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1745:5: branch_true: following ‘true’ branch (when ‘iface’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1746:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1746:5: branch_true: following ‘true’ branch (when ‘pid > 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1747:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1747:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1748:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1748:5: branch_true: following ‘true’ branch (when ‘reason’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1749:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1749:5: branch_false: following ‘false’ branch (when ‘invocation’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1749:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1753:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1755:10: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1755:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1757:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1757:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1760:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘nm_dhcp_client_handle_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1762:9: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq_ascii_case’ from ‘nm_dhcp_client_handle_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1765:9: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq_ascii_case’ from ‘nm_dhcp_client_handle_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1791:16: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1792:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1792:13: call_function: calling ‘maybe_add_option’ from ‘nm_dhcp_client_handle_event’
# 1646|       if (NM_STR_HAS_PREFIX(key, NEW_TAG))
# 1647|           key += NM_STRLEN(NEW_TAG);
# 1648|->     if (NM_STR_HAS_PREFIX(key, "private_") || !key[0])
# 1649|           return;
# 1650|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def18]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1938:32: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1890:1: enter_function: entry to ‘config_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1910:5: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1911:5: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1912:5: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1913:5: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1914:5: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1915:5: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1927:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1933:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1934:17: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1934:16: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1937:32: call_function: inlined call to ‘g_strdup_inline’ from ‘config_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-client.c:1938:32: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
# 1936|   
# 1937|                   hostname_tmp = g_strdup(hostname);
# 1938|->                 dot          = strchr(hostname_tmp, '.');
# 1939|                   if (dot)
# 1940|                       *dot = '\0';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-systemd.c:264:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-systemd.c:283:1: enter_function: entry to ‘dhcp6_event_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/nm-dhcp-systemd.c:302:9: call_function: calling ‘bound6_handle’ from ‘dhcp6_event_cb’
#  262|   
#  263|       if (!l3cd) {
#  264|->         _LOGW("%s", error->message);
#  265|           _nm_dhcp_client_notify(NM_DHCP_CLIENT(self), NM_DHCP_CLIENT_EVENT_TYPE_FAIL, NULL);
#  266|           return;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:73:1: enter_function: entry to ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: call_function: calling ‘fill_table’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: return_function: returning to ‘test_generic_options’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: return_function: returning to ‘test_generic_options’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:97:15: call_function: inlined call to ‘nmtst_l3_config_data_get_address_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:98:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:98:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: danger: dereference of NULL ‘<unknown>’
#   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): [#def21]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:73:1: enter_function: entry to ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: call_function: calling ‘fill_table’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: return_function: returning to ‘test_generic_options’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: return_function: returning to ‘test_generic_options’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:97:15: call_function: inlined call to ‘nmtst_l3_config_data_get_address_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:98:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:101:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: call_function: inlined call to ‘nmtst_l3_config_data_get_best_gateway’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: danger: dereference of NULL ‘<unknown>’
#  101|       g_assert_cmpint(address->plen, ==, 24);
#  102|   
#  103|->     nmtst_assert_ip_address(AF_INET,
#  104|                               nmtst_l3_config_data_get_best_gateway(l3cd, AF_INET),
#  105|                               expected_gw);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:126:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:73:1: enter_function: entry to ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: call_function: calling ‘fill_table’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: return_function: returning to ‘test_generic_options’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: return_function: returning to ‘test_generic_options’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:97:15: call_function: inlined call to ‘nmtst_l3_config_data_get_address_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:98:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:101:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: call_function: inlined call to ‘nmtst_l3_config_data_get_best_gateway’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: call_function: calling ‘_nmtst_assert_ip4_address’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: return_function: returning to ‘test_generic_options’ from ‘_nmtst_assert_ip4_address’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:107:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:108:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:124:13: call_function: inlined call to ‘nmtst_l3_config_data_get_route_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:125:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:125:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:126:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:126:5: danger: dereference of NULL ‘<unknown>’
#  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): [#def23]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:133:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:73:1: enter_function: entry to ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: call_function: calling ‘fill_table’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: return_function: returning to ‘test_generic_options’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: return_function: returning to ‘test_generic_options’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:97:15: call_function: inlined call to ‘nmtst_l3_config_data_get_address_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:98:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:101:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: call_function: inlined call to ‘nmtst_l3_config_data_get_best_gateway’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: call_function: calling ‘_nmtst_assert_ip4_address’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: return_function: returning to ‘test_generic_options’ from ‘_nmtst_assert_ip4_address’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:107:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:108:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:124:13: call_function: inlined call to ‘nmtst_l3_config_data_get_route_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:125:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:126:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:126:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:127:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:127:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:128:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:128:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:129:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:132:13: call_function: inlined call to ‘nmtst_l3_config_data_get_route_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:133:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:133:5: danger: dereference of NULL ‘<unknown>’
#  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): [#def24]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:139:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:73:1: enter_function: entry to ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: call_function: calling ‘fill_table’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:93:15: return_function: returning to ‘test_generic_options’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:94:15: return_function: returning to ‘test_generic_options’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:97:15: call_function: inlined call to ‘nmtst_l3_config_data_get_address_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:98:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:99:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:100:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:101:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: call_function: inlined call to ‘nmtst_l3_config_data_get_best_gateway’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: call_function: calling ‘_nmtst_assert_ip4_address’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:103:5: return_function: returning to ‘test_generic_options’ from ‘_nmtst_assert_ip4_address’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:107:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:108:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:124:13: call_function: inlined call to ‘nmtst_l3_config_data_get_route_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:125:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:126:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:126:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:127:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:127:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:128:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:128:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:129:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:132:13: call_function: inlined call to ‘nmtst_l3_config_data_get_route_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:133:5: call_function: calling ‘nmtst_inet4_from_string’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:133:5: return_function: returning to ‘test_generic_options’ from ‘nmtst_inet4_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:133:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:134:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:134:5: call_function: calling ‘nmtst_inet4_from_string’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:134:5: return_function: returning to ‘test_generic_options’ from ‘nmtst_inet4_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:134:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:135:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:138:13: call_function: inlined call to ‘nmtst_l3_config_data_get_route_at_4’ from ‘test_generic_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:139:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:139:5: danger: dereference of NULL ‘<unknown>’
#  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): [#def25]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:258:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:245:1: enter_function: entry to ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:254:5: branch_true: following ‘true’ branch (when ‘expected_prefix <= 32’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:256:13: call_function: inlined call to ‘nmtst_l3_config_data_get_route_at_4’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:257:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:257:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:258:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:258:5: danger: dereference of NULL ‘<unknown>’
#  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): [#def26]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:353:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:328:1: enter_function: entry to ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:343:15: call_function: calling ‘fill_table’ from ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:343:15: return_function: returning to ‘test_fedora_dhclient_classless_static_routes’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:344:15: call_function: calling ‘fill_table’ from ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:344:15: return_function: returning to ‘test_fedora_dhclient_classless_static_routes’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:345:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:345:15: return_function: returning to ‘test_fedora_dhclient_classless_static_routes’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:349:5: call_function: calling ‘ip4_test_route’ from ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:349:5: return_function: returning to ‘test_fedora_dhclient_classless_static_routes’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:350:5: call_function: calling ‘ip4_test_route’ from ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:350:5: return_function: returning to ‘test_fedora_dhclient_classless_static_routes’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:351:5: call_function: calling ‘ip4_test_route’ from ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:351:5: return_function: returning to ‘test_fedora_dhclient_classless_static_routes’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:353:5: call_function: inlined call to ‘nmtst_l3_config_data_get_best_gateway’ from ‘test_fedora_dhclient_classless_static_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:353:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:353:5: danger: dereference of NULL ‘<unknown>’
#  351|       ip4_test_route(l3cd, 2, "0.0.0.0", expected_route1_gw, 0);
#  352|   
#  353|->     ip4_test_gateway(l3cd, expected_gateway);
#  354|   }
#  355|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:540:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:520:1: enter_function: entry to ‘test_dhclient_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:531:15: call_function: calling ‘fill_table’ from ‘test_dhclient_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:531:15: return_function: returning to ‘test_dhclient_gw_in_classless_routes’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:533:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_dhclient_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:533:15: return_function: returning to ‘test_dhclient_gw_in_classless_routes’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:537:5: call_function: calling ‘ip4_test_route’ from ‘test_dhclient_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:537:5: return_function: returning to ‘test_dhclient_gw_in_classless_routes’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:538:5: call_function: calling ‘ip4_test_route’ from ‘test_dhclient_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:538:5: return_function: returning to ‘test_dhclient_gw_in_classless_routes’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:540:5: call_function: inlined call to ‘nmtst_l3_config_data_get_best_gateway’ from ‘test_dhclient_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:540:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:540:5: danger: dereference of NULL ‘<unknown>’
#  538|       ip4_test_route(l3cd, 1, "0.0.0.0", "192.2.3.4", 0);
#  539|   
#  540|->     ip4_test_gateway(l3cd, expected_gateway);
#  541|   }
#  542|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:564:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:544:1: enter_function: entry to ‘test_dhcpcd_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:555:15: call_function: calling ‘fill_table’ from ‘test_dhcpcd_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:555:15: return_function: returning to ‘test_dhcpcd_gw_in_classless_routes’ from ‘fill_table’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:557:15: call_function: calling ‘_ip4_config_from_options’ from ‘test_dhcpcd_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:557:15: return_function: returning to ‘test_dhcpcd_gw_in_classless_routes’ from ‘_ip4_config_from_options’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:561:5: call_function: calling ‘ip4_test_route’ from ‘test_dhcpcd_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:561:5: return_function: returning to ‘test_dhcpcd_gw_in_classless_routes’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:562:5: call_function: calling ‘ip4_test_route’ from ‘test_dhcpcd_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:562:5: return_function: returning to ‘test_dhcpcd_gw_in_classless_routes’ from ‘ip4_test_route’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:564:5: call_function: inlined call to ‘nmtst_l3_config_data_get_best_gateway’ from ‘test_dhcpcd_gw_in_classless_routes’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:564:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dhcp/tests/test-dhcp-utils.c:564:5: danger: dereference of NULL ‘<unknown>’
#  562|       ip4_test_route(l3cd, 1, "0.0.0.0", "192.2.3.4", 0);
#  563|   
#  564|->     ip4_test_gateway(l3cd, expected_gateway);
#  565|   }
#  566|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
NetworkManager-1.53.1/redhat-linux-build/../src/core/dns/nm-dns-dnsconfd.c:321:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dns/nm-dns-dnsconfd.c:614:1: enter_function: entry to ‘parse_all_interface_config’
NetworkManager-1.53.1/redhat-linux-build/../src/core/dns/nm-dns-dnsconfd.c:624:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/dns/nm-dns-dnsconfd.c:628:30: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/dns/nm-dns-dnsconfd.c:640:9: call_function: calling ‘get_networks’ from ‘parse_all_interface_config’
#  319|                                            NMP_OBJECT_TYPE_IP_ROUTE(IS_IPv4)) {
#  320|           route = NMP_OBJECT_CAST_IP_ROUTE(obj);
#  321|->         if (NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route)
#  322|               || route->table_coerced == NM_DNS_ROUTES_FWMARK_TABLE_PRIO) {
#  323|               continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:81:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:22:1: enter_function: entry to ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:37:5: call_function: inlined call to ‘nmtst_init_with_logging’ from ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:37:5: call_function: inlined call to ‘nmtst_init_with_logging’ from ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:39:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:44:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:48:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:50:19: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:67:41: call_function: inlined call to ‘nm_l3cfg_get_ifname’ from ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:65:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:80:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:81:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/ndisc/tests/test-ndisc-linux.c:81:9: danger: dereference of NULL ‘0’
#   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-476): [#def31]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:228:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:645:1: enter_function: entry to ‘device_controller_changed’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:661:24: call_function: calling ‘nm_active_connection_get_state’ from ‘device_controller_changed’
#  226|   nm_active_connection_get_state(NMActiveConnection *self)
#  227|   {
#  228|->     return NM_ACTIVE_CONNECTION_GET_PRIVATE(self)->state;
#  229|   }
#  230|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1597:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMActiveConnection)*object)._priv’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1586:1: enter_function: entry to ‘dispose’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1593:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘dispose’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1593:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1593:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1593:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1595:5: call_function: calling ‘auth_complete’ from ‘dispose’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1595:5: return_function: returning to ‘dispose’ from ‘auth_complete’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-active-connection.c:1597:5: danger: dereference of NULL ‘*(NMActiveConnection *)object._priv’
# 1595|       auth_complete(self, FALSE, "Authorization aborted");
# 1596|   
# 1597|->     nm_clear_g_free(&priv->specific_object);
# 1598|   
# 1599|       _set_settings_connection(self, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-audit-manager.c:140:29: warning[-Wanalyzer-malloc-leak]: leak of ‘audit_encode_nv_string(*field.name,  str, 0)’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-audit-manager.c:338:1: enter_function: entry to ‘_nm_audit_manager_log_generic_op’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-audit-manager.c:351:5: branch_true: following ‘true’ branch (when ‘op’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-audit-manager.c:352:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-audit-manager.c:352:5: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-audit-manager.c:354:14: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-audit-manager.c:359:5: call_function: calling ‘_audit_log_helper’ from ‘_nm_audit_manager_log_generic_op’
#  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): [#def34]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-config.c:1343:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-config.c:3056:1: enter_function: entry to ‘init_sync’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-config.c:3070:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-config.c:3078:24: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-config.c:3093:15: call_function: calling ‘read_entire_config’ from ‘init_sync’
# 1341|       run_confs    = _get_config_dir_files(run_config_dir);
# 1342|   
# 1343|->     for (i = 0; i < system_confs->len;) {
# 1344|           const char *filename = system_confs->pdata[i];
# 1345|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:999:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:958:1: enter_function: entry to ‘check_platform_config’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:967:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:972:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:976:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:985:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:990:8: branch_true: following ‘true’ branch (when ‘addr_family == 2’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:997:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:997:9: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘check_platform_config’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:997:9: return_function: returning to ‘check_platform_config’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:997:9: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘check_platform_config’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:997:9: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘check_platform_config’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:998:21: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:999:45: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-connectivity.c:999:45: danger: dereference of NULL ‘<unknown>’
#  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): [#def36]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-dispatcher.c:306:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-dispatcher.c:1178:1: enter_function: entry to ‘nm_dispatcher_call_vpn_sync’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-dispatcher.c:1185:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-dispatcher.c:1187:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-dispatcher.c:1187:12: call_function: calling ‘_dispatcher_call’ from ‘nm_dispatcher_call_vpn_sync’
#  304|           const NMPlatformIPXRoute *route = NMP_OBJECT_CAST_IPX_ROUTE(obj);
#  305|   
#  306|->         if (NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route))
#  307|               continue;
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:1117:77: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘r’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3066:1: enter_function: entry to ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3083:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3084:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3084:12: branch_false: following ‘false’ branch (when ‘addr_family != 2’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3087:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: return_function: returning to ‘_init_from_platform’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3089:18: call_function: calling ‘nm_l3_config_data_add_address_full’ from ‘_init_from_platform’
# 1115|           r = obj_new ? NMP_OBJECT_CAST_IP_ROUTE(obj_new) : (NMPlatformIPRoute *) pl_new;
# 1116|   
# 1117|->         if (nm_platform_route_type_is_nodev(nm_platform_route_type_uncoerce(r->type_coerced))) {
# 1118|               /* such routes don't have a device/next-hop. We track them without ifindex. */
# 1119|               ifindex = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:1173:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3066:1: enter_function: entry to ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3109:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3109:5: return_function: returning to ‘_init_from_platform’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3109:5: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3109:5: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3110:9: call_function: calling ‘nm_l3_config_data_add_route’ from ‘_init_from_platform’
# 1171|                       obj_new = nmp_object_stackinit_obj(&obj_new_stackinit, obj_new);
# 1172|                       obj_new_stackinit.ip_address.timestamp =
# 1173|->                         NMP_OBJECT_CAST_IP_ADDRESS(obj_old)->timestamp;
# 1174|                       obj_new_stackinit.ip_address.lifetime =
# 1175|                           NMP_OBJECT_CAST_IP_ADDRESS(obj_old)->lifetime;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3318:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3240:1: enter_function: entry to ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3285:23: branch_true: following ‘true’ branch (when ‘IS_IPv4 != -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3286:48: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3286:48: branch_true: following ‘true’ branch (when ‘IS_IPv4 != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: calling ‘nm_l3_config_data_lookup_objs’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_l3_config_data_lookup_objs’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3294:48: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3296:40: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3313:16: branch_false: following ‘false’ branch (when ‘hook_add_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3316:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3316:13: branch_true: following ‘true’ branch (when ‘IS_IPv4 != 0’)...
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3318:17: danger: dereference of NULL ‘<unknown>’
# 3316|               nm_assert(IS_IPv4 || hook_result.ip4acd_not_ready == NM_OPTION_BOOL_DEFAULT);
# 3317|   
# 3318|->             if (a_src->ifindex != self->ifindex) {
# 3319|                   _ensure_a();
# 3320|                   a.ax.ifindex = self->ifindex;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3369:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3240:1: enter_function: entry to ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3285:23: branch_true: following ‘true’ branch (when ‘IS_IPv4 != -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3286:48: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3286:48: branch_true: following ‘true’ branch (when ‘IS_IPv4 != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: calling ‘nm_l3_config_data_lookup_objs’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_l3_config_data_lookup_objs’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3340:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3340:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: branch_true: following ‘true’ branch (when ‘IS_IPv4 != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: call_function: calling ‘nm_l3_config_data_lookup_objs’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_l3_config_data_lookup_objs’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3341:13: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3345:51: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3347:43: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3364:20: branch_false: following ‘false’ branch (when ‘hook_add_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3367:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3369:21: danger: dereference of NULL ‘<unknown>’
# 3367|                   nm_assert(hook_result.ip4acd_not_ready == NM_OPTION_BOOL_DEFAULT);
# 3368|   
# 3369|->                 if (r_src->ifindex != self->ifindex) {
# 3370|                       _ensure_r();
# 3371|                       r.rx.ifindex = self->ifindex;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3427:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3240:1: enter_function: entry to ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3285:23: branch_true: following ‘true’ branch (when ‘IS_IPv4 != -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3286:48: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3286:48: branch_true: following ‘true’ branch (when ‘IS_IPv4 != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: calling ‘nm_l3_config_data_lookup_objs’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_l3_config_data_lookup_objs’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: return_function: returning to ‘nm_l3_config_data_merge’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3290:9: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3_config_data_merge’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3340:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3414:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3426:14: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3426:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3427:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3427:16: danger: dereference of NULL ‘src’
# 3425|   
# 3426|           if (!NM_FLAGS_ANY(self->flags, has_dns_priority_flag)
# 3427|->             && NM_FLAGS_ANY(src->flags, has_dns_priority_flag)) {
# 3428|               int p = src->dns_priority_x[IS_IPv4];
# 3429|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv4ll.c:349:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv4ll.c:919:1: enter_function: entry to ‘_l3cfg_notify_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv4ll.c:923:9: call_function: inlined call to ‘nm_l3cfg_get_plobj’ from ‘_l3cfg_notify_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv4ll.c:928:9: call_function: calling ‘_ipv4ll_state_change’ from ‘_l3cfg_notify_cb’
#  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): [#def43]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv6ll.c:269:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pladdr_tentative’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv6ll.c:599:1: enter_function: entry to ‘_l3cfg_notify_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv6ll.c:602:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv6ll.c:604:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv6ll.c:604:13: call_function: calling ‘_check’ from ‘_l3cfg_notify_cb’
#  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): [#def44]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:4153:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_ptr’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5662:1: enter_function: entry to ‘nm_l3cfg_get_combined_l3cd’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5669:5: call_function: calling ‘_l3cfg_update_combined_config’ from ‘nm_l3cfg_get_combined_l3cd’
# 4151|                                               &l3_config_datas_free);
# 4152|       for (i = 0; i < l3_config_datas_len; i++)
# 4153|->         l3_config_datas_arr[i] = _l3_config_datas_at(self->priv.p->l3_config_datas, i);
# 4154|   
# 4155|       if (l3_config_datas_len > 1) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5701:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5686:1: enter_function: entry to ‘nm_l3cfg_get_configured_ip4_addresses’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5693:12: call_function: calling ‘nm_l3cfg_get_combined_l3cd’ from ‘nm_l3cfg_get_configured_ip4_addresses’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5693:12: return_function: returning to ‘nm_l3cfg_get_configured_ip4_addresses’ from ‘nm_l3cfg_get_combined_l3cd’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5695:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5698:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5700:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_l3cfg_get_configured_ip4_addresses’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5700:5: return_function: returning to ‘nm_l3cfg_get_configured_ip4_addresses’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5700:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3cfg_get_configured_ip4_addresses’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5700:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3cfg_get_configured_ip4_addresses’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5701:25: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5701:19: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5701:19: danger: dereference of NULL ‘<unknown>’
# 5699|   
# 5700|       nm_l3_config_data_iter_obj_for_each (&iter, l3cd, &obj, NMP_OBJECT_TYPE_IP4_ADDRESS) {
# 5701|->         in_addr_t tmp = NMP_OBJECT_CAST_IP4_ADDRESS(obj)->address;
# 5702|           nm_g_array_append_simple(array, tmp);
# 5703|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5741:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5712:1: enter_function: entry to ‘nm_l3cfg_has_commited_ip6_addresses_pending_dad’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5721:12: call_function: calling ‘nm_l3cfg_get_combined_l3cd’ from ‘nm_l3cfg_has_commited_ip6_addresses_pending_dad’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5721:12: return_function: returning to ‘nm_l3cfg_has_commited_ip6_addresses_pending_dad’ from ‘nm_l3cfg_get_combined_l3cd’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5722:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5733:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5737:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nm_l3cfg_has_commited_ip6_addresses_pending_dad’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5737:5: return_function: returning to ‘nm_l3cfg_has_commited_ip6_addresses_pending_dad’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5737:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3cfg_has_commited_ip6_addresses_pending_dad’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5737:5: call_function: inlined call to ‘nm_platform_dedup_multi_iter_next_obj’ from ‘nm_l3cfg_has_commited_ip6_addresses_pending_dad’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5738:49: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5741:14: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3cfg.c:5741:14: danger: dereference of NULL ‘<unknown>’
# 5739|           const NMDedupMultiEntry    *l3cd_entry;
# 5740|   
# 5741|->         if (!NM_FLAGS_HAS(plat_addr->n_ifa_flags, IFA_F_TENTATIVE)
# 5742|               || NM_FLAGS_ANY(plat_addr->n_ifa_flags, IFA_F_DADFAILED | IFA_F_OPTIMISTIC))
# 5743|               continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:202:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:199:45: branch_false: following ‘false’ branch (when ‘_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:200:45: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:200:45: branch_false: following ‘false’ branch (when ‘_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:202:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:202:5: danger: dereference of NULL ‘<unknown>’
#  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): [#def48]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:204:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:199:45: branch_true: following ‘true’ branch (when ‘_obj’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:199:45: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:200:45: branch_false: following ‘false’ branch (when ‘_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:202:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:204:5: danger: dereference of NULL ‘<unknown>’
#  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): [#def49]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:278:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:216:1: enter_function: entry to ‘_ecmp_track_init_merged_obj’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:229:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:234:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:238:8: branch_false: following ‘false’ branch (when ‘n != 1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:247:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:248:5: call_function: calling ‘nmp_object_ref_set’ from ‘_ecmp_track_init_merged_obj’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:248:5: return_function: returning to ‘_ecmp_track_init_merged_obj’ from ‘nmp_object_ref_set’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:272:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:273:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:273:12: branch_false: following ‘false’ branch (when ‘i == 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:283:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:272:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:273:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:274:44: branch_false: following ‘false’ branch (when ‘_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:275:56: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:278:28: danger: dereference of NULL ‘<unknown>’
#  276|   
#  277|               *nh = (NMPlatformIP4RtNextHop) {
#  278|->                 .ifindex = r->ifindex,
#  279|                   .gateway = r->gateway,
#  280|                   .weight  = r->weight,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:690:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:688:13: branch_false: following ‘false’ branch (when ‘_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:690:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-netns.c:690:5: danger: dereference of NULL ‘<unknown>’
#  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): [#def51]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/nm-fake-platform.c:250:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/nm-fake-platform.c:1380:1: enter_function: entry to ‘nm_fake_platform_setup’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/nm-fake-platform.c:1388:5: call_function: calling ‘link_add’ from ‘nm_fake_platform_setup’
#  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): [#def52]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/nm-fake-platform.c:1092:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/nm-fake-platform.c:1380:1: enter_function: entry to ‘nm_fake_platform_setup’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/nm-fake-platform.c:1388:5: call_function: calling ‘link_add’ from ‘nm_fake_platform_setup’
# 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): [#def53]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:68:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:61:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:62:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:63:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:64:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:67:13: branch_false: following ‘false’ branch (when ‘obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:68:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:68:5: danger: dereference of NULL ‘<unknown>’
#   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): [#def54]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:73:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:61:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:62:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:63:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:64:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:67:13: branch_true: following ‘true’ branch (when ‘obj’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:67:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:72:13: branch_false: following ‘false’ branch (when ‘obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:73:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:73:5: danger: dereference of NULL ‘<unknown>’
#   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-476): [#def55]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:108:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:101:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:102:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:103:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:104:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:107:13: branch_false: following ‘false’ branch (when ‘obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:108:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:108:5: danger: dereference of NULL ‘<unknown>’
#  106|       obj   = plat->pdata[0];
#  107|       qdisc = NMP_OBJECT_CAST_QDISC(obj);
#  108|->     g_assert_cmpstr(qdisc->kind, ==, "fq_codel");
#  109|       g_assert_cmpint(qdisc->handle, ==, TC_H_MAKE(0x8142 << 16, 0));
#  110|       g_assert_cmpint(qdisc->parent, ==, TC_H_ROOT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:147:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:140:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:141:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:142:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:143:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:146:13: branch_false: following ‘false’ branch (when ‘obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:147:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:147:5: danger: dereference of NULL ‘<unknown>’
#  145|       obj   = plat->pdata[0];
#  146|       qdisc = NMP_OBJECT_CAST_QDISC(obj);
#  147|->     g_assert_cmpstr(qdisc->kind, ==, "sfq");
#  148|       g_assert_cmpint(qdisc->handle, ==, TC_H_MAKE(0x8143 << 16, 0));
#  149|       g_assert_cmpint(qdisc->parent, ==, TC_H_ROOT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:190:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:183:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:184:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:185:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:186:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:189:13: branch_false: following ‘false’ branch (when ‘obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:190:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:190:5: danger: dereference of NULL ‘<unknown>’
#  188|       obj   = plat->pdata[0];
#  189|       qdisc = NMP_OBJECT_CAST_QDISC(obj);
#  190|->     g_assert_cmpstr(qdisc->kind, ==, "tbf");
#  191|       g_assert_cmpint(qdisc->handle, ==, TC_H_MAKE(0x8143 << 16, 0));
#  192|       g_assert_cmpint(qdisc->parent, ==, TC_H_ROOT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:199:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:183:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:184:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:185:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:186:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:189:13: branch_true: following ‘true’ branch (when ‘obj’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:189:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:198:13: branch_false: following ‘false’ branch (when ‘obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:199:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/platform/tests/test-tc.c:199:5: danger: dereference of NULL ‘<unknown>’
#  197|       obj   = plat->pdata[1];
#  198|       qdisc = NMP_OBJECT_CAST_QDISC(obj);
#  199|->     g_assert_cmpstr(qdisc->kind, ==, "sfq");
#  200|       g_assert_cmpint(qdisc->parent, ==, TC_H_MAKE(0x8143 << 16, 0));
#  201|       g_assert_cmpint(qdisc->handle, ==, TC_H_MAKE(0x8005 << 16, 0));

Error: GCC_ANALYZER_WARNING (CWE-835): [#def59]
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/nm-settings-utils.c:72:20: warning[-Wanalyzer-infinite-loop]: infinite loop
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/nm-settings-utils.c:72:20: danger: infinite loop here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/nm-settings-utils.c:72:20: call_function: inlined call to ‘c_list_first’ from ‘nm_sett_util_storage_by_uuid_head_destroy’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/nm-settings-utils.c:72:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/nm-settings-utils.c:72:12: branch_true: if it ever follows ‘true’ branch, it will always do so...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/nm-settings-utils.c:73:9: call_function: inlined call to ‘c_list_unlink’ from ‘nm_sett_util_storage_by_uuid_head_destroy’
 branch_false: ...to here
#   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): [#def60]
NetworkManager-1.53.1/redhat-linux-build/../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.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:597:1: enter_function: entry to ‘load_connections’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:614:8: branch_false: following ‘false’ branch (when ‘n_entries != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:617:22: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:700:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:704:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:705:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:708:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:708:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:711:41: call_function: inlined call to ‘nms_keyfile_storage_get_filename’ from ‘load_connections’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:715:16: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:724:69: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:724:27: call_function: calling ‘_load_file_from_path’ from ‘load_connections’
#  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): [#def61]
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:1056:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:1048:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:1056:16: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:1056:16: danger: argument 1 (‘nm_settings_storage_get_filename(g_object_ref(storage_x))’) NULL where non-null expected
# 1054|           success           = FALSE;
# 1055|           operation_message = "dropped readonly file from memory";
# 1056|->     } else if (unlink(previous_filename) != 0) {
# 1057|           int errsv;
# 1058|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def62]
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:66:1: enter_function: entry to ‘cmp_fcn’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:77:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:79:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:79:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:85:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:85:9: branch_false: following ‘false’ branch (when ‘_a == _b’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:86:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:86:9: branch_false: following ‘false’ branch (when ‘_a == _b’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: call_function: inlined call to ‘nms_keyfile_storage_get_filename’ from ‘cmp_fcn’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: call_function: inlined call to ‘nms_keyfile_storage_get_filename’ from ‘cmp_fcn’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: call_function: inlined call to ‘nms_keyfile_storage_get_filename’ from ‘cmp_fcn’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: call_function: inlined call to ‘nms_keyfile_storage_get_filename’ from ‘cmp_fcn’
NetworkManager-1.53.1/redhat-linux-build/../src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: danger: argument 1 (‘nm_settings_storage_get_filename(a)’) NULL where non-null expected
#   86|           NM_CMP_FIELD(a, b, u.conn_data.stat_mtime.tv_nsec);
#   87|   
#   88|->         NM_CMP_DIRECT_STRCMP(nms_keyfile_storage_get_filename(a),
#   89|                                nms_keyfile_storage_get_filename(b));
#   90|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:189:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1683:1: enter_function: entry to ‘_wps_handle_set_pc_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1698:8: branch_true: following ‘true’ branch (when ‘res’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘_wps_handle_set_pc_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: branch_false: following ‘false’ branch (when ‘_ifname’ is NULL)...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: call_function: calling ‘_log_pretty_object_path’ from ‘_wps_handle_set_pc_cb’
#  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): [#def64]
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1707:62: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*self._priv’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1683:1: enter_function: entry to ‘_wps_handle_set_pc_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1698:8: branch_true: following ‘true’ branch (when ‘res’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1699:9: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘_wps_handle_set_pc_cb’
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:1707:62: danger: dereference of NULL ‘*self._priv’
# 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): [#def65]
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2438:1: enter_function: entry to ‘assoc_set_ap_scan_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2449:8: branch_false: following ‘false’ branch (when ‘error’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘assoc_set_ap_scan_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: danger: dereference of NULL ‘*(NMSupplicantInterface *)user_data._priv’
# 2452|       }
# 2453|   
# 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));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2458:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2438:1: enter_function: entry to ‘assoc_set_ap_scan_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2449:8: branch_false: following ‘false’ branch (when ‘error’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2454:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘assoc_set_ap_scan_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2458:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2458:5: danger: dereference of NULL ‘*(NMSupplicantInterface *)user_data._priv’
# 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): [#def67]
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2464:1: enter_function: entry to ‘assoc_set_pmk_lifetime’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2475:8: branch_false: following ‘false’ branch (when ‘error’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘assoc_set_pmk_lifetime’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: danger: dereference of NULL ‘*(NMSupplicantInterface *)user_data._priv’
# 2478|       }
# 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);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2484:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘((NMSupplicantInterface)*(void *)user_data)._priv’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2464:1: enter_function: entry to ‘assoc_set_pmk_lifetime’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2475:8: branch_false: following ‘false’ branch (when ‘error’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2480:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘assoc_set_pmk_lifetime’
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2484:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/supplicant/nm-supplicant-interface.c:2484:5: danger: dereference of NULL ‘*(NMSupplicantInterface *)user_data._priv’
# 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): [#def69]
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:497:44: warning[-Wanalyzer-out-of-bounds]: buffer over-read
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:463:1: enter_function: entry to ‘_remove_at_indexes_init_random_idx’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:465:26: call_function: calling ‘nmtst_get_rand’ from ‘_remove_at_indexes_init_random_idx’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:465:26: return_function: returning to ‘_remove_at_indexes_init_random_idx’ from ‘nmtst_get_rand’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:469:5: branch_true: following ‘true’ branch (when ‘idx’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:470:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:470:5: branch_true: following ‘true’ branch (when ‘array_len != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:471:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:471:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:473:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:476:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:480:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:480:12: branch_false: following ‘false’ branch (when ‘max_test_idx != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:483:21: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:486:9: branch_true: following ‘true’ branch (when ‘max_test_idx >= itest’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:487:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:487:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:489:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:490:12: branch_true: following ‘true’ branch (when ‘max_test_idx == itest’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:491:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:491:13: branch_true: following ‘true’ branch (when ‘max_test_idx != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:493:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:493:16: branch_false: following ‘false’ branch (when ‘max_test_idx != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:496:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:497:24: branch_true: following ‘true’ branch (when ‘max_test_idx != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:497:48: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-core-with-expect.c:497:44: danger: read of 1 byte at offset ‘(sizetype)(array_len + 4294967294)’ exceeds ‘*(void *)<unknown>’
#  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): [#def70]
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:35:1: enter_function: entry to ‘test_sd_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:39:22: branch_true: following ‘true’ branch (when ‘repeat != 2’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:43:25: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:48:26: call_function: calling ‘nmtst_get_rand_uint32’ from ‘test_sd_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:48:26: return_function: returning to ‘test_sd_event’ from ‘nmtst_get_rand_uint32’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:56:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:65:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:71:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:73:17: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:26: call_function: calling ‘nmtst_get_rand_uint32’ from ‘test_sd_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:26: return_function: returning to ‘test_sd_event’ from ‘nmtst_get_rand_uint32’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:13: danger: out-of-bounds write from byte 24 till byte 31 but ‘other_events’ ends at byte 24
#   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): [#def71]
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:35:1: enter_function: entry to ‘test_sd_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:39:22: branch_true: following ‘true’ branch (when ‘repeat != 2’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:43:25: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:48:26: call_function: calling ‘nmtst_get_rand_uint32’ from ‘test_sd_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:48:26: return_function: returning to ‘test_sd_event’ from ‘nmtst_get_rand_uint32’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:56:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:65:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:71:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:73:17: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:26: call_function: calling ‘nmtst_get_rand_uint32’ from ‘test_sd_event’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:26: return_function: returning to ‘test_sd_event’ from ‘nmtst_get_rand_uint32’
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:74:87: branch_true: following ‘true’ branch (when ‘i < n’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/tests/test-systemd.c:75:31: danger: out-of-bounds read from byte 24 till byte 31 but ‘other_events’ ends at byte 24
#   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): [#def72]
NetworkManager-1.53.1/redhat-linux-build/../src/core/vpn/nm-vpn-connection.c:2711:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
NetworkManager-1.53.1/redhat-linux-build/../src/core/vpn/nm-vpn-connection.c:2779:1: enter_function: entry to ‘_name_owner_get_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/vpn/nm-vpn-connection.c:2791:5: call_function: calling ‘_name_owner_changed’ from ‘_name_owner_get_cb’
# 2709|   
# 2710|           if (!nm_vpn_service_daemon_exec(self, &error)) {
# 2711|->             _LOGW("starting: failure to start VPN service: %s", error->message);
# 2712|               nm_vpn_connection_disconnect(self,
# 2713|                                            NM_ACTIVE_CONNECTION_STATE_REASON_SERVICE_START_FAILED,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:73:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:54:1: enter_function: entry to ‘_nml_dbus_log_file_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:60:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:64:22: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:66:17: call_function: calling ‘nm_str_realloc’ from ‘_nml_dbus_log_file_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:66:17: return_function: returning to ‘_nml_dbus_log_file_init’ from ‘nm_str_realloc’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:72:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:73:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:73:13: danger: dereference of NULL ‘s’
#   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): [#def74]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:103:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_l’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:93:1: enter_function: entry to ‘_nml_dbus_log_file_fd_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:100:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:103:16: call_function: inlined call to ‘_g_atomic_pointer_get’ from ‘_nml_dbus_log_file_fd_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:103:16: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:103:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:103:16: call_function: calling ‘_nml_dbus_log_file_init’ from ‘_nml_dbus_log_file_fd_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:103:16: return_function: returning to ‘_nml_dbus_log_file_fd_init’ from ‘_nml_dbus_log_file_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/nm-libnm-utils.c:103:16: danger: dereference of NULL ‘_l’
#  101|           const char *name;
#  102|   
#  103|->         name = nml_dbus_log_file();
#  104|           if (!name)
#  105|               fd = LOG_FILE_FD_NONE;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def75]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1109:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘idx[1]’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1033:1: enter_function: entry to ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1035:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1040:35: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1049:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1056:18: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1056:18: call_function: calling ‘nmtst_create_minimal_connection’ from ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1056:18: return_function: returning to ‘test_connection_invalid’ from ‘nmtst_create_minimal_connection’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1060:5: call_function: calling ‘_nmtst_connection_normalize’ from ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1060:5: return_function: returning to ‘test_connection_invalid’ from ‘_nmtst_connection_normalize’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1061:5: call_function: calling ‘nmtst_uuid_generate’ from ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1061:5: return_function: returning to ‘test_connection_invalid’ from ‘nmtst_uuid_generate’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1065:5: call_function: calling ‘nmtst_uuid_generate’ from ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1065:5: return_function: returning to ‘test_connection_invalid’ from ‘nmtst_uuid_generate’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1075:5: call_function: calling ‘nmtst_uuid_generate’ from ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1075:5: return_function: returning to ‘test_connection_invalid’ from ‘nmtst_uuid_generate’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1084:5: call_function: calling ‘_nmtst_variant_new_vardict’ from ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1084:5: return_function: returning to ‘test_connection_invalid’ from ‘_nmtst_variant_new_vardict’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1097:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1099:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1100:15: call_function: calling ‘nmtst_find_all_indexes’ from ‘test_connection_invalid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1100:15: return_function: returning to ‘test_connection_invalid’ from ‘nmtst_find_all_indexes’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1108:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1108:5: branch_false: following ‘false’ branch (when ‘__inst’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1108:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-nm-client.c:1109:5: danger: use of uninitialized value ‘idx[1]’ here
# 1107|       g_assert_cmpint(n_found, ==, 3);
# 1108|       ASSERT_IDX(0);
# 1109|->     ASSERT_IDX(1);
# 1110|       ASSERT_IDX(2);
# 1111|       nmtst_assert_connection_verifies_without_normalization(connections->pdata[idx[0]]);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def76]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:108:1: enter_function: entry to ‘test_make_invisible’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:117:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:120:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:120:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:123:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:141:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:144:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: call_function: calling ‘_nm_auto_destroy_and_unref_gsource’ from ‘test_make_invisible’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: return_function: returning to ‘test_make_invisible’ from ‘_nm_auto_destroy_and_unref_gsource’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:156:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:165:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:166:35: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:168:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#  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): [#def77]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2980:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2965:1: enter_function: entry to ‘nm_connection_for_each_setting_value’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2973:5: branch_true: following ‘true’ branch (when ‘connection’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2973:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2974:5: branch_true: following ‘true’ branch (when ‘func’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2976:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2976:16: call_function: calling ‘nm_connection_get_settings’ from ‘nm_connection_for_each_setting_value’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2976:16: return_function: returning to ‘nm_connection_for_each_setting_value’ from ‘nm_connection_get_settings’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2979:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2980:45: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2980:45: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-connection.c:2980:9: danger: dereference of NULL ‘nm_connection_get_settings(connection, & length) + (long unsigned int)i * 8’
# 2978|           g_object_ref(settings[i]);
# 2979|       for (i = 0; i < length; i++)
# 2980|->         nm_setting_enumerate_values(settings[i], func, user_data);
# 2981|       for (i = 1; i < length; i++)
# 2982|           g_object_unref(settings[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3384:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘setting_info’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3333:1: enter_function: entry to ‘read_one_setting_value’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3353:5: call_function: calling ‘_parse_info_find’ from ‘read_one_setting_value’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3353:5: return_function: returning to ‘read_one_setting_value’ from ‘_parse_info_find’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3357:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3358:13: call_function: inlined call to ‘nm_streq’ from ‘read_one_setting_value’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3358:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3360:14: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3360:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3362:14: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3362:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3375:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3383:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3384:63: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3384:63: release_memory: ‘setting_info’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:3384:51: danger: dereference of NULL ‘setting_info’
# 3382|        */
# 3383|       if ((!pip || !pip->parser_no_check_key)
# 3384|->         && !nm_keyfile_plugin_kf_has_key(keyfile, setting_info->setting_name, key, &err)) {
# 3385|           /* Key doesn't exist or an error occurred, thus nothing to do. */
# 3386|           if (err) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4626:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4582:1: enter_function: entry to ‘nm_keyfile_utils_create_filename’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4595:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4597:11: call_function: calling ‘NM_STR_BUF_INIT’ from ‘nm_keyfile_utils_create_filename’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4597:11: return_function: returning to ‘nm_keyfile_utils_create_filename’ from ‘NM_STR_BUF_INIT’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4601:9: call_function: calling ‘nm_str_buf_append_len0’ from ‘nm_keyfile_utils_create_filename’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4601:9: return_function: returning to ‘nm_keyfile_utils_create_filename’ from ‘nm_str_buf_append_len0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4620:8: branch_true: following ‘true’ branch (when ‘with_extension != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4621:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4621:9: call_function: calling ‘nm_str_buf_append’ from ‘nm_keyfile_utils_create_filename’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4621:9: return_function: returning to ‘nm_keyfile_utils_create_filename’ from ‘nm_str_buf_append’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4623:9: call_function: calling ‘nm_str_buf_finalize’ from ‘nm_keyfile_utils_create_filename’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4623:9: return_function: returning to ‘nm_keyfile_utils_create_filename’ from ‘nm_str_buf_finalize’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-keyfile.c:4626:5: danger: argument 1 (‘nm_str_buf_finalize(&str, 0)’) NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
# 4624|   
# 4625|       /* nm_keyfile_utils_create_filename() must mirror ignore_filename() */
# 4626|->     nm_assert(!strchr(p, '/'));
# 4627|       nm_assert(!nm_keyfile_utils_ignore_filename(p, with_extension));
# 4628|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:690:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:676:1: enter_function: entry to ‘_cert_verify_property’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:682:28: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:685:8: branch_false: following ‘false’ branch (when ‘bytes’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:688:14: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:688:14: call_function: calling ‘_nm_setting_802_1x_cert_get_scheme’ from ‘_cert_verify_property’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:688:14: return_function: returning to ‘_cert_verify_property’ from ‘_nm_setting_802_1x_cert_get_scheme’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:689:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:694:26: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:694:26: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:696:9: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-8021x.c:690:9: danger: 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): [#def81]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:844:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:842:1: enter_function: entry to ‘_nm_setting_bond_opt_value_as_u32’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:844:12: call_function: inlined call to ‘_get_option_meta’ from ‘_nm_setting_bond_opt_value_as_u32’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:844:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:844:12: danger: dereference of NULL ‘<unknown>’
#  842|   _nm_setting_bond_opt_value_as_u32(NMSettingBond *s_bond, const char *opt)
#  843|   {
#  844|->     return _opt_value_as_u64(s_bond, opt, G_MAXUINT32);
#  845|   }
#  846|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:852:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:848:1: enter_function: entry to ‘_nm_setting_bond_opt_value_as_intbool’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:852:12: call_function: inlined call to ‘_get_option_meta’ from ‘_nm_setting_bond_opt_value_as_intbool’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:852:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bond.c:852:12: danger: dereference of NULL ‘<unknown>’
#  850|       /* This does not parse the value as a boolean string, instead, it requires
#  851|        * that it's a number, either "0" or "1". */
#  852|->     return _opt_value_as_u64(s_bond, opt, 1);
#  853|   }
#  854|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bridge.c:416:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bridge.c:409:1: enter_function: entry to ‘nm_bridge_vlan_new_clone’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bridge.c:413:5: call_function: calling ‘NM_IS_BRIDGE_VLAN’ from ‘nm_bridge_vlan_new_clone’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bridge.c:413:5: return_function: returning to ‘nm_bridge_vlan_new_clone’ from ‘NM_IS_BRIDGE_VLAN’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bridge.c:413:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bridge.c:415:58: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-bridge.c:416:5: danger: dereference of NULL ‘nm_bridge_vlan_new((int)*vlan.vid_start, (int)*vlan.vid_end)’
#  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): [#def84]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3772:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3363:1: enter_function: entry to ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3401:5: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3403:10: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3403:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3441:19: call_function: inlined call to ‘_rr_string_addr_family_from_flags’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3444:23: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3448:12: branch_true: following ‘true’ branch (when ‘word0’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3458:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3459:16: branch_true: following ‘true’ branch (when ‘word1’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3459:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3444:23: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3448:12: branch_false: following ‘false’ branch (when ‘word0’ is non-NULL)...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3458:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3466:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3474:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3480:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3480:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3480:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3480:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3490:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3490:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3508:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3508:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3518:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3528:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3537:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3546:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3565:13: call_function: inlined call to ‘_NM_IN_STRSET_EVAL_op_streq’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3566:16: branch_false: following ‘false’ branch (when ‘word1’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3568:16: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3568:16: branch_false: following ‘false’ branch (when ‘word_iifname’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3571:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3444:23: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3444:39: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3444:23: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3655:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3655:8: branch_false: following ‘false’ branch (when ‘any_words != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3663:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3663:8: branch_false: following ‘false’ branch (when ‘word0’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3672:10: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3672:10: branch_true: following ‘true’ branch (when ‘word_from’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3688:10: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3688:10: branch_true: following ‘true’ branch (when ‘word_to’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3704:10: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3704:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3712:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3712:12: call_function: calling ‘nm_ip_routing_rule_new’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3712:12: return_function: returning to ‘nm_ip_routing_rule_from_string’ from ‘nm_ip_routing_rule_new’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3714:8: branch_false: following ‘false’ branch (when ‘val_invert == 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3717:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3717:8: branch_false: following ‘false’ branch (when ‘i64_priority == -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3720:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3720:8: branch_false: following ‘false’ branch (when ‘i_action < 0’)...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3730:8: branch_false: following ‘false’ branch (when ‘i64_tos == -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3733:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3733:8: branch_false: following ‘false’ branch (when ‘i64_ipproto == -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3736:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3736:8: branch_false: following ‘false’ branch (when ‘i64_fwmark == -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3739:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3742:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3745:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3745:8: branch_false: following ‘false’ branch (when ‘i64_suppress_prefixlength == -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3748:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3748:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3748:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3752:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3752:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3756:8: branch_true: following ‘true’ branch (when ‘word_iifname’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3757:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3757:9: call_function: calling ‘nm_ip_routing_rule_set_iifname’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3757:9: return_function: returning to ‘nm_ip_routing_rule_from_string’ from ‘nm_ip_routing_rule_set_iifname’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3759:8: branch_false: following ‘false’ branch (when ‘word_oifname’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3762:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3762:8: branch_false: following ‘false’ branch (when ‘i64_table == -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3765:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3765:8: branch_false: following ‘false’ branch (when ‘uid_range_has == 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3768:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3768:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3769:31: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3769:31: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3771:14: call_function: calling ‘nm_ip_routing_rule_validate’ from ‘nm_ip_routing_rule_from_string’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3771:14: return_function: returning to ‘nm_ip_routing_rule_from_string’ from ‘nm_ip_routing_rule_validate’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3771:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3776:30: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3776:30: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:3772:13: danger: dereference of NULL ‘local’
# 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): [#def85]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5759:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5592:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5601:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5740:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5741:21: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5742:43: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5743:35: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5745:16: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5758:18: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5758:16: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5764:34: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5764:34: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-ip-config.c:5759:17: danger: dereference of NULL ‘local’
# 5757|               }
# 5758|               if (!nm_ip_routing_rule_validate(rule, &local)) {
# 5759|->                 g_set_error(error,
# 5760|                               NM_CONNECTION_ERROR,
# 5761|                               NM_CONNECTION_ERROR_INVALID_PROPERTY,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1114:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1086:1: enter_function: entry to ‘verify’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1091:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1094:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1095:21: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1096:43: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1097:35: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1097:35: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1097:35: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1099:16: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1113:18: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1113:18: call_function: calling ‘_nm_sriov_vf_attribute_validate_all’ from ‘verify’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1113:18: return_function: returning to ‘verify’ from ‘_nm_sriov_vf_attribute_validate_all’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1113:16: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1119:34: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1119:34: release_memory: ‘local’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-sriov.c:1114:17: danger: dereference of NULL ‘local’
# 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): [#def87]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1398:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘qdisc’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1364:1: enter_function: entry to ‘_qdiscs_to_variant’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1371:8: branch_true: following ‘true’ branch (when ‘qdiscs’ is non-NULL)...
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1372:21: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1374:40: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1386:56: call_function: calling ‘nm_tc_qdisc_get_kind’ from ‘_qdiscs_to_variant’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1386:56: return_function: returning to ‘_qdiscs_to_variant’ from ‘nm_tc_qdisc_get_kind’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1388:13: call_function: calling ‘nm_tc_qdisc_get_handle’ from ‘_qdiscs_to_variant’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1388:13: return_function: returning to ‘_qdiscs_to_variant’ from ‘nm_tc_qdisc_get_handle’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1393:13: call_function: calling ‘nm_tc_qdisc_get_parent’ from ‘_qdiscs_to_variant’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1393:13: return_function: returning to ‘_qdiscs_to_variant’ from ‘nm_tc_qdisc_get_parent’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1398:21: danger: dereference of NULL ‘qdisc’
# 1396|                                     g_variant_new_uint32(nm_tc_qdisc_get_parent(qdisc)));
# 1397|   
# 1398|->             attrs = nm_utils_named_values_from_strdict(qdisc->attributes,
# 1399|                                                          &length,
# 1400|                                                          attrs_static,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1510:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1497:1: enter_function: entry to ‘_action_to_variant’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1500:32: call_function: calling ‘nm_tc_action_get_attribute_names’ from ‘_action_to_variant’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1500:32: return_function: returning to ‘_action_to_variant’ from ‘nm_tc_action_get_attribute_names’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1508:48: call_function: calling ‘nm_tc_action_get_kind’ from ‘_action_to_variant’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1508:48: return_function: returning to ‘_action_to_variant’ from ‘nm_tc_action_get_kind’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1510:22: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-tc-config.c:1510:17: danger: dereference of NULL ‘nm_tc_action_get_attribute_names(action) + (long unsigned int)i * 8’
# 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): [#def89]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:477:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:470:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:471:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:471:13: branch_false: following ‘false’ branch (when ‘_size == 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:472:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:472:13: branch_false: following ‘false’ branch (when ‘_size == 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:473:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:476:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:477:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:477:9: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:477:9: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-team.c:477:9: danger: dereference of NULL ‘b + (long unsigned int)i * 8’
#  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): [#def90]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2156:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2138:1: enter_function: entry to ‘set_secret_flags’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2143:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2150:22: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2150:22: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2150:22: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2151:12: branch_true: following ‘true’ branch (when ‘_s_snd’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2151:33: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2151:33: call_function: calling ‘_peers_get_by_public_key’ from ‘set_secret_flags’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2151:33: return_function: returning to ‘set_secret_flags’ from ‘_peers_get_by_public_key’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2151:13: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2152:59: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2152:17: call_function: calling ‘nm_wireguard_peer_get_preshared_key_flags’ from ‘set_secret_flags’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2152:17: return_function: returning to ‘set_secret_flags’ from ‘nm_wireguard_peer_get_preshared_key_flags’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2152:16: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2155:73: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2155:45: call_function: calling ‘nm_wireguard_peer_new_clone’ from ‘set_secret_flags’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2155:45: return_function: returning to ‘set_secret_flags’ from ‘nm_wireguard_peer_new_clone’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting-wireguard.c:2156:17: danger: dereference of NULL ‘nm_wireguard_peer_new_clone(*<unknown>.peer, 1)’
# 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): [#def91]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1049:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4612:1: enter_function: entry to ‘constructed’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4632:5: call_function: calling ‘_init_direct’ from ‘constructed’
# 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): [#def92]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1165:21: 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): [#def93]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1979:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1951:1: enter_function: entry to ‘_nm_setting_to_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1964:5: branch_false: following ‘false’ branch (when ‘setting’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1964:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1970:20: call_function: calling ‘_nm_setting_option_get_all’ from ‘_nm_setting_to_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1970:20: return_function: returning to ‘_nm_setting_to_dbus’ from ‘_nm_setting_option_get_all’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1971:17: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1978:49: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:1979:21: danger: dereference of NULL ‘_nm_setting_class_get_sett_info(*(GTypeInstance *)setting.g_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): [#def94]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2210:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2168:1: enter_function: entry to ‘init_from_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2185:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2191:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2200:9: call_function: calling ‘_nm_setting_option_notify’ from ‘init_from_dbus’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2200:9: return_function: returning to ‘init_from_dbus’ from ‘_nm_setting_option_notify’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2210:9: danger: dereference of NULL ‘_nm_setting_class_get_sett_info(*(GTypeInstance *)setting.g_class)’
# 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): [#def95]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2215:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2185:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2215:21: danger: dereference of NULL ‘_nm_setting_class_get_sett_info(*(GTypeInstance *)setting.g_class)’
# 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): [#def96]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2918:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2896:5: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2896:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2896:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2897:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2897:5: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2897:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2897:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2903:9: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2903:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2906:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2908:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2918:21: danger: dereference of NULL ‘_nm_setting_class_get_sett_info(*(GTypeInstance *)a.g_class)’
# 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): [#def97]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3075:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2994:5: branch_true: following ‘true’ branch (when ‘results’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2995:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2995:5: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2995:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2995:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:2996:8: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3036:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3075:25: danger: dereference of NULL ‘_nm_setting_class_get_sett_info(*(GTypeInstance *)a.g_class)’
# 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): [#def98]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3268:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3231:5: branch_false: following ‘false’ branch (when ‘setting’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3231:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3231:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3232:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3232:5: branch_true: following ‘true’ branch (when ‘func’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3234:17: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3236:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3268:21: danger: dereference of NULL ‘_nm_setting_class_get_sett_info(*(GTypeInstance *)setting.g_class)’
# 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): [#def99]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3289:21: 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): [#def100]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3420:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3415:5: branch_false: following ‘false’ branch (when ‘setting’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3415:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3415:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3419:17: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:3420:21: danger: dereference of NULL ‘_nm_setting_class_get_sett_info(*(GTypeInstance *)setting.g_class)’
# 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): [#def101]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4573:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4564:1: enter_function: entry to ‘nm_setting_get_enum_property_type’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4570:5: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4570:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4572:21: call_function: calling ‘_nm_setting_class_get_property_info’ from ‘nm_setting_get_enum_property_type’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4572:21: return_function: returning to ‘nm_setting_get_enum_property_type’ from ‘_nm_setting_class_get_property_info’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-setting.c:4573:5: danger: dereference of NULL ‘_nm_setting_class_get_property_info(g_type_class_ref(setting_type), property_name)’
# 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): [#def102]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2645:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_str_sls’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2640:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2643:11: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2643:11: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2643:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2645:9: danger: dereference of NULL ‘_str_sls’
# 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): [#def103]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2650:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_str_sls’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2640:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2643:11: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2643:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2645:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2646:21: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2649:15: branch_false: following ‘false’ branch (when ‘_str_sls’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2649:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2650:13: danger: dereference of NULL ‘_str_sls’
# 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): [#def104]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:454:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:441:1: enter_function: entry to ‘nm_vpn_plugin_info_list_add’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:446:5: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:447:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:447:5: branch_false: following ‘false’ branch (when ‘plugin_info’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:447:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:449:12: call_function: calling ‘nm_vpn_plugin_info_get_name’ from ‘nm_vpn_plugin_info_list_add’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:449:12: return_function: returning to ‘nm_vpn_plugin_info_list_add’ from ‘nm_vpn_plugin_info_get_name’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:450:24: branch_true: following ‘true’ branch (when ‘iter’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:451:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:451:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:454:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:454:13: danger: argument 1 (‘nm_vpn_plugin_info_get_name(*iter.data)’) NULL where non-null expected
#  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): [#def105]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:516:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:512:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:515:23: branch_true: following ‘true’ branch (when ‘iter’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:516:48: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:516:13: danger: argument 1 (‘nm_vpn_plugin_info_get_name(*iter.data)’) NULL where non-null expected
#  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): [#def106]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:664:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘service_type’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:688:1: enter_function: entry to ‘nm_vpn_plugin_info_list_get_service_types’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:699:23: branch_true: following ‘true’ branch (when ‘iter’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:700:40: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:708:12: branch_true: following ‘true’ branch (when ‘with_abbreviations != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:709:32: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-vpn-plugin-info.c:710:17: call_function: calling ‘_service_type_get_default_abbreviation’ from ‘nm_vpn_plugin_info_list_get_service_types’
#  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): [#def107]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-enum-utils.c:325:52: 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): [#def108]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-json-aux.h:160:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-json-aux.h:157:1: enter_function: entry to ‘_nm_auto_decref_json’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-json-aux.h:160:9: call_function: inlined call to ‘nm_json_vt’ from ‘_nm_auto_decref_json’
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-json-aux.h:160:9: danger: dereference of NULL ‘<unknown>’
#  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): [#def109]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3070:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_strv’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3046:1: enter_function: entry to ‘nm_utils_buf_utf8safe_escape_strv’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3054:5: branch_true: following ‘true’ branch (when ‘strv’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3055:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3055:5: branch_true: following ‘true’ branch (when ‘out_to_free’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3057:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3057:5: release_memory: ‘*out_to_free’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3058:5: branch_true: following ‘true’ branch (when ‘strv_len < 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3058:35: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3060:23: branch_true: following ‘true’ branch (when ‘len > i’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3061:15: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3063:9: call_function: calling ‘nm_utils_buf_utf8safe_escape’ from ‘nm_utils_buf_utf8safe_escape_strv’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3063:9: return_function: returning to ‘nm_utils_buf_utf8safe_escape_strv’ from ‘nm_utils_buf_utf8safe_escape’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3065:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3066:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3066:16: branch_true: following ‘true’ branch (when ‘new_strv’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3067:28: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3067:28: call_function: calling ‘_nm_strv_dup_full’ from ‘nm_utils_buf_utf8safe_escape_strv’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3067:28: return_function: returning to ‘nm_utils_buf_utf8safe_escape_strv’ from ‘_nm_strv_dup_full’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3070:28: release_memory: ‘new_strv’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3070:13: danger: dereference of NULL ‘new_strv + (long unsigned int)i * 8’
# 3068|               }
# 3069|   
# 3070|->             g_free(new_strv[i]);
# 3071|               new_strv[i] = to_free_str;
# 3072|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6185:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ssid’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6209:1: enter_function: entry to ‘_nm_utils_ssid_to_string_arr’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6214:8: branch_false: following ‘false’ branch (when ‘len != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6218:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6218:9: call_function: calling ‘nm_utils_buf_utf8safe_escape’ from ‘_nm_utils_ssid_to_string_arr’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6218:9: return_function: returning to ‘_nm_utils_ssid_to_string_arr’ from ‘nm_utils_buf_utf8safe_escape’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6221:9: call_function: calling ‘_nm_utils_is_empty_ssid_arr’ from ‘_nm_utils_ssid_to_string_arr’
# 6183|   
# 6184|       /* Single white space is for Linksys APs */
# 6185|->     if (len == 1 && ssid[0] == ' ')
# 6186|           return TRUE;
# 6187|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-str-buf.h:200:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3018:1: enter_function: entry to ‘nm_utils_buf_utf8safe_escape_cp’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:3023:15: call_function: calling ‘nm_utils_buf_utf8safe_escape’ from ‘nm_utils_buf_utf8safe_escape_cp’
#  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-476): [#def112]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:411:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1247:1: enter_function: entry to ‘nl_recvmsgs’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1257:9: call_function: calling ‘nl_recv’ from ‘nl_recvmsgs’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1257:9: return_function: returning to ‘nl_recvmsgs’ from ‘nl_recv’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1258:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1261:11: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1262:12: call_function: inlined call to ‘nlmsg_ok’ from ‘nl_recvmsgs’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1265:15: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:1265:15: call_function: calling ‘nlmsg_alloc_convert’ from ‘nl_recvmsgs’
#  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): [#def113]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:481:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘n’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:932:1: enter_function: entry to ‘genl_ctrl_resolve’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:942:11: call_function: calling ‘nlmsg_alloc’ from ‘genl_ctrl_resolve’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:942:11: return_function: returning to ‘genl_ctrl_resolve’ from ‘nlmsg_alloc’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-netlink.c:944:10: call_function: calling ‘genlmsg_put’ from ‘genl_ctrl_resolve’
#  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): [#def114]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2172:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&sysdir, 589824)’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2133:1: enter_function: entry to ‘nmp_utils_sysctl_open_netdir’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2144:5: branch_true: following ‘true’ branch (when ‘ifindex >= 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2146:5: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2148:25: branch_true: following ‘true’ branch (when ‘try_count != 10’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2152:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2160:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2166:13: call_function: inlined call to ‘nm_streq’ from ‘nmp_utils_sysctl_open_netdir’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2166:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2169:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2169:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2172:18: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2172:18: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nm-platform-utils.c:2172:18: danger: ‘open(&sysdir, 589824)’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
# 2170|               nm_assert_not_reached();
# 2171|   
# 2172|->         fd_dir = open(sysdir, O_DIRECTORY | O_CLOEXEC);
# 2173|           if (fd_dir < 0)
# 2174|               continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:716:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:685:1: enter_function: entry to ‘nmp_global_tracker_sync_mptcp_addrs’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:701:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:703:5: call_function: inlined call to ‘nm_logging_enabled_mt’ from ‘nmp_global_tracker_sync_mptcp_addrs’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:712:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:713:49: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:713:49: branch_false: following ‘false’ branch (when ‘_obj’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:716:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:716:9: danger: dereference of NULL ‘<unknown>’
#  714|           NMPlatformMptcpAddr        xtst;
#  715|   
#  716|->         nm_assert(mptcp_addr->port == 0);
#  717|           nm_assert(mptcp_addr->ifindex > 0);
#  718|           nm_assert(mptcp_addr->id == 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1137:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1112:1: enter_function: entry to ‘nmp_global_tracker_track_rule_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1123:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1125:8: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1134:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nmp_global_tracker_track_rule_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1134:5: return_function: returning to ‘nmp_global_tracker_track_rule_from_platform’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1134:5: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘nmp_global_tracker_track_rule_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1134:5: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘nmp_global_tracker_track_rule_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1135:43: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1137:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1137:12: branch_true: following ‘true’ branch (when ‘addr_family != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1137:41: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-global-tracker.c:1137:41: danger: dereference of NULL ‘<unknown>’
# 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-476): [#def117]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:166:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:599:1: enter_function: entry to ‘nmp_netns_is_initial’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:601:27: branch_true: following ‘true’ branch (when ‘_s’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:601:27: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:601:27: call_function: calling ‘_netns_stack_get_impl’ from ‘nmp_netns_is_initial’
#  164|   
#  165|       if (!netns) {
#  166|->         _LOGD(NULL, "failed to create initial netns: %s", error->message);
#  167|           return s;
#  168|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:635:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘creat(filename, 292)’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:609:1: enter_function: entry to ‘nmp_netns_bind_to_path’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:616:5: branch_false: following ‘false’ branch (when ‘self’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:616:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:617:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:619:10: call_function: calling ‘nmp_netns_push_type’ from ‘nmp_netns_bind_to_path’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:619:10: return_function: returning to ‘nmp_netns_bind_to_path’ from ‘nmp_netns_push_type’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:619:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:621:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:635:15: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:635:15: danger: ‘creat(filename, 292)’ leaks here; was opened at [(25)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/24)
#  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): [#def119]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:654:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 524288)’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:609:1: enter_function: entry to ‘nmp_netns_bind_to_path’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:616:5: branch_false: following ‘false’ branch (when ‘self’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:616:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:617:5: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:619:10: call_function: calling ‘nmp_netns_push_type’ from ‘nmp_netns_bind_to_path’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:619:10: return_function: returning to ‘nmp_netns_bind_to_path’ from ‘nmp_netns_push_type’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:619:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:621:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:635:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:640:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:642:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:653:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:653:8: branch_true: following ‘true’ branch (when ‘out_fd’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:654:19: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:654:19: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-netns.c:654:19: danger: ‘open(filename, 524288)’ leaks here; was opened at [(31)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/30)
#  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): [#def120]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3160:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cache’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3136:1: enter_function: entry to ‘nmp_cache_update_link_udev’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3147:17: call_function: calling ‘nmp_cache_lookup_entry_link’ from ‘nmp_cache_update_link_udev’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3147:17: return_function: returning to ‘nmp_cache_update_link_udev’ from ‘nmp_cache_lookup_entry_link’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3149:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3150:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3150:12: branch_false: following ‘false’ branch (when ‘udevice’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3156:38: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3156:38: call_function: calling ‘nmp_object_new’ from ‘nmp_cache_update_link_udev’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3156:38: return_function: returning to ‘nmp_cache_update_link_udev’ from ‘nmp_object_new’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3160:9: danger: dereference of NULL ‘cache’
# 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): [#def121]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.h:1031:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3234:1: enter_function: entry to ‘nmp_cache_dirty_set_all_main’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3244:5: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘nmp_cache_dirty_set_all_main’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3244:5: return_function: returning to ‘nmp_cache_dirty_set_all_main’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3245:12: call_function: calling ‘nm_dedup_multi_iter_next’ from ‘nmp_cache_dirty_set_all_main’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3245:12: return_function: returning to ‘nmp_cache_dirty_set_all_main’ from ‘nm_dedup_multi_iter_next’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3245:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3248:22: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-object.c:3248:22: call_function: calling ‘nmp_cache_reresolve_main_entry’ from ‘nmp_cache_dirty_set_all_main’
# 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): [#def122]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-plobj.h:203:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addr_without_acd_info’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv4ll.c:919:1: enter_function: entry to ‘_l3cfg_notify_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv4ll.c:923:9: call_function: inlined call to ‘nm_l3cfg_get_plobj’ from ‘_l3cfg_notify_cb’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-ipv4ll.c:928:9: call_function: calling ‘_ipv4ll_state_change’ from ‘_l3cfg_notify_cb’
#  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): [#def123]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-platform/nmp-plobj.h:203:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addr’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3066:1: enter_function: entry to ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3083:8: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3084:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3084:12: branch_true: following ‘true’ branch (when ‘addr_family == 2’)...
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3085:13: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: call_function: calling ‘nm_dedup_multi_iter_init’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: return_function: returning to ‘_init_from_platform’ from ‘nm_dedup_multi_iter_init’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3088:9: call_function: inlined call to ‘nmp_cache_iter_next’ from ‘_init_from_platform’
NetworkManager-1.53.1/redhat-linux-build/../src/core/nm-l3-config-data.c:3089:18: call_function: calling ‘nm_l3_config_data_add_address_full’ from ‘_init_from_platform’
#  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): [#def124]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-std-aux/nm-std-aux.h:628:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6841:1: enter_function: entry to ‘nm_path_find_first_component’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6886:13: call_function: calling ‘skip_slash_or_dot’ from ‘nm_path_find_first_component’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6886:13: return_function: returning to ‘nm_path_find_first_component’ from ‘skip_slash_or_dot’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6893:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6900:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6903:8: branch_false: following ‘false’ branch (when ‘len <= 255’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6905:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-shared-utils.c:6910:18: call_function: inlined call to ‘nm_streq’ from ‘nm_path_find_first_component’
#  626|   nm_streq(const char *s1, const char *s2)
#  627|   {
#  628|->     return strcmp(s1, s2) == 0;
#  629|   }
#  630|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def125]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-std-aux/nm-std-aux.h:628:12: warning[-Wanalyzer-null-argument]: use of NULL ‘key’ where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-io-utils.c:1117:1: enter_function: entry to ‘nm_parse_env_filev’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-glib-aux/nm-io-utils.c:1126:9: call_function: calling ‘nm_parse_env_file_full’ from ‘nm_parse_env_filev’
#  626|   nm_streq(const char *s1, const char *s2)
#  627|   {
#  628|->     return strcmp(s1, s2) == 0;
#  629|   }
#  630|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def126]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-std-aux/nm-std-aux.h:628:12: warning[-Wanalyzer-null-argument]: use of NULL ‘kind’ where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2874:1: enter_function: entry to ‘nm_utils_tc_qdisc_from_str’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2878:36: release_memory: ‘kind’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2879:36: release_memory: ‘kind’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2889:10: call_function: calling ‘_tc_read_common_opts’ from ‘nm_utils_tc_qdisc_from_str’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2889:10: return_function: returning to ‘nm_utils_tc_qdisc_from_str’ from ‘_tc_read_common_opts’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2889:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2892:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2893:13: release_memory: ‘kind’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:2893:13: call_function: inlined call to ‘nm_streq’ from ‘nm_utils_tc_qdisc_from_str’
#  626|   nm_streq(const char *s1, const char *s2)
#  627|   {
#  628|->     return strcmp(s1, s2) == 0;
#  629|   }
#  630|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def127]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-std-aux/nm-std-aux.h:628:12: warning[-Wanalyzer-null-argument]: use of NULL ‘tmp_name’ where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5212:1: enter_function: entry to ‘_nm_utils_dns_option_find_idx’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5214:19: release_memory: ‘option_name’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5218:8: branch_false: following ‘false’ branch (when ‘strv_len < 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5221:13: call_function: inlined call to ‘_nm_ptrarray_len_impl’ from ‘_nm_utils_dns_option_find_idx’
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5223:8: branch_false: following ‘false’ branch (when ‘l != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5226:10: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5226:10: call_function: calling ‘_nm_utils_dns_option_validate’ from ‘_nm_utils_dns_option_find_idx’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5226:10: return_function: returning to ‘_nm_utils_dns_option_find_idx’ from ‘_nm_utils_dns_option_validate’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5226:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5229:17: branch_true: following ‘true’ branch (when ‘l > i’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5230:38: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5231:23: release_memory: ‘tmp_name’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5233:13: call_function: calling ‘_nm_utils_dns_option_validate’ from ‘_nm_utils_dns_option_find_idx’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5233:13: return_function: returning to ‘_nm_utils_dns_option_find_idx’ from ‘_nm_utils_dns_option_validate’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5233:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5231:23: call_function: inlined call to ‘_nm_auto_g_free’ from ‘_nm_utils_dns_option_find_idx’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5229:17: branch_true: following ‘true’ branch (when ‘l > i’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5230:38: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5231:23: release_memory: ‘tmp_name’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5233:13: call_function: calling ‘_nm_utils_dns_option_validate’ from ‘_nm_utils_dns_option_find_idx’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5233:13: return_function: returning to ‘_nm_utils_dns_option_find_idx’ from ‘_nm_utils_dns_option_validate’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5234:17: release_memory: ‘tmp_name’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-core-impl/nm-utils.c:5234:17: call_function: inlined call to ‘nm_streq’ from ‘_nm_utils_dns_option_find_idx’
#  626|   nm_streq(const char *s1, const char *s2)
#  627|   {
#  628|->     return strcmp(s1, s2) == 0;
#  629|   }
#  630|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def128]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-std-aux/nm-std-aux.h:1127:1: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*(void **)&arg’
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:141:1: enter_function: entry to ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:145:11: call_function: calling ‘read_arg’ from ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:145:11: return_function: returning to ‘main’ from ‘read_arg’
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:146:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:149:9: call_function: inlined call to ‘nm_streq’ from ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:149:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:151:9: call_function: inlined call to ‘nm_streq’ from ‘main’
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:151:8: branch_true: following ‘true’ branch (when the strings are equal)...
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:152:16: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nm-daemon-helper/nm-daemon-helper.c:152:16: call_function: calling ‘cmd_resolve_address’ from ‘main’
# 1125|    * free() or nm_auto_free.
# 1126|    */
# 1127|-> NM_AUTO_DEFINE_FCN_VOID0(void *, _nm_auto_free_impl, free);
# 1128|   #define nm_auto_free nm_auto(_nm_auto_free_impl)
# 1129|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def129]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:950:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘client’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1290:12: enter_function: entry to ‘client_receive_message’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1296:35: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1297:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1297:9: call_function: calling ‘sd_dhcp6_client_ref’ from ‘client_receive_message’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1297:9: return_function: returning to ‘client_receive_message’ from ‘sd_dhcp6_client_ref’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1316:13: call_function: inlined call to ‘ERRNO_IS_NEG_TRANSIENT’ from ‘client_receive_message’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1316:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1318:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1318:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1323:19: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1324:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1327:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1330:13: call_function: inlined call to ‘ERRNO_IS_NEG_TRANSIENT’ from ‘client_receive_message’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1330:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1332:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1332:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1336:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1336:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1342:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1342:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1351:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1353:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1356:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1370:21: call_function: calling ‘client_process_reply’ from ‘client_receive_message’
#  948|   
#  949|           assert(client);
#  950|->         assert(client->event);
#  951|   
#  952|           switch (state) {

Error: GCC_ANALYZER_WARNING (CWE-416): [#def130]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1417:35: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘client’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1402:5: enter_function: entry to ‘sd_dhcp6_client_stop’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1405:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1410:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1410:13: call_function: calling ‘client_send_release’ from ‘sd_dhcp6_client_stop’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1410:13: return_function: returning to ‘sd_dhcp6_client_stop’ from ‘client_send_release’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1415:9: call_function: calling ‘client_stop’ from ‘sd_dhcp6_client_stop’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1415:9: return_function: returning to ‘sd_dhcp6_client_stop’ from ‘client_stop’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1417:35: danger: use after ‘free’ of ‘client’; freed at [(44)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/43)
# 1415|           client_stop(client, SD_DHCP6_CLIENT_EVENT_STOP);
# 1416|   
# 1417|->         client->receive_message = sd_event_source_unref(client->receive_message);
# 1418|           client->fd = safe_close(client->fd);
# 1419|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:123:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2023:5: enter_function: entry to ‘device_properties_prepare’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2026:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2028:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2028:13: call_function: calling ‘device_read_uevent_file’ from ‘device_properties_prepare’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2028:13: return_function: returning to ‘device_properties_prepare’ from ‘device_read_uevent_file’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2029:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2032:13: call_function: inlined call to ‘device_read_db’ from ‘device_properties_prepare’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2033:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2036:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2036:12: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2037:38: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2040:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-core/src/libsystemd/sd-device/sd-device.c:2043:22: branch_false: ...to here
#  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-401): [#def132]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/alloc-util.h:106:22: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:651:5: enter_function: entry to ‘read_full_stream_full’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:664:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:665:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:665:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:666:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:666:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:667:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:667:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:669:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:669:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:672:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:734:20: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:735:36: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:735:29: acquire_memory: allocated here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:736:28: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:740:25: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:740:25: call_function: calling ‘memcpy_safe’ from ‘read_full_stream_full’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:740:25: return_function: returning to ‘read_full_stream_full’ from ‘memcpy_safe’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:741:25: call_function: calling ‘explicit_bzero_safe’ from ‘read_full_stream_full’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:741:25: return_function: returning to ‘read_full_stream_full’ from ‘explicit_bzero_safe’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:752:21: branch_true: following ‘true’ branch (when ‘size == 18446744073709551615’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:752:40: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:752:40: call_function: calling ‘malloc_sizeof_safe’ from ‘read_full_stream_full’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:752:40: return_function: returning to ‘read_full_stream_full’ from ‘malloc_sizeof_safe’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:757:17: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:758:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:760:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:764:21: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:764:20: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:787:12: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:787:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:810:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:660:30: call_function: inlined call to ‘freep’ from ‘read_full_stream_full’
#  104|   
#  105|   static inline void freep(void *p) {
#  106|->         *(void**)p = mfree(*(void**) p);
#  107|   }
#  108|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:82:9: warning[-Wanalyzer-malloc-leak]: leak of ‘take_fdopen(&fd,  mode)’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1044:12: enter_function: entry to ‘xfopenat_regular’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1049:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1050:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1050:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1051:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1051:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1052:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1052:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1054:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1054:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1057:37: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1060:30: call_function: calling ‘fopen_mode_to_flags’ from ‘xfopenat_regular’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1060:30: return_function: returning to ‘xfopenat_regular’ from ‘fopen_mode_to_flags’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1061:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1064:22: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1065:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1068:21: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1068:21: call_function: calling ‘take_fdopen’ from ‘xfopenat_regular’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1068:21: return_function: returning to ‘xfopenat_regular’ from ‘take_fdopen’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:82:9: danger: ‘take_fdopen(&fd,  mode)’ leaks here; was allocated at [(25)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/24)
#   80|   
#   81|   FILE* take_fdopen(int *fd, const char *options) {
#   82|->         assert(fd);
#   83|   
#   84|           FILE *f = fdopen(*fd, options);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:82:9: warning[-Wanalyzer-malloc-leak]: leak of ‘take_fdopen(&sk, "r")’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1077:12: enter_function: entry to ‘xfopenat_unix_socket’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1082:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1083:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1083:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1084:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1084:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1086:14: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1087:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1090:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1105:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1108:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1108:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1111:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1111:13: call_function: calling ‘take_fdopen’ from ‘xfopenat_unix_socket’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:1111:13: return_function: returning to ‘xfopenat_unix_socket’ from ‘take_fdopen’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/fileio.c:82:9: danger: ‘take_fdopen(&sk, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
#   80|   
#   81|   FILE* take_fdopen(int *fd, const char *options) {
#   82|->         assert(fd);
#   83|   
#   84|           FILE *f = fdopen(*fd, options);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def135]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:928:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:863:5: enter_function: entry to ‘path_find_first_component’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:867:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:902:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:904:17: call_function: calling ‘skip_slash_or_dot’ from ‘path_find_first_component’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:904:17: return_function: returning to ‘path_find_first_component’ from ‘skip_slash_or_dot’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:911:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:918:21: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:921:12: branch_false: following ‘false’ branch (when ‘len <= 255’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:923:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:928:21: danger: argument 1 (‘skip_slash_or_dot(end_first)’) NULL where non-null expected
#  926|           next = skip_slash_or_dot(end_first);
#  927|   
#  928|->         *p = next + streq(next, ".");
#  929|           if (ret)
#  930|                   *ret = first;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def136]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:928:21: warning[-Wanalyzer-null-argument]: use of NULL ‘next’ where non-null expected
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1086:5: enter_function: entry to ‘path_extract_filename’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1088:25: release_memory: ‘next’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1106:14: call_function: inlined call to ‘path_is_valid’ from ‘path_extract_filename’
#  926|           next = skip_slash_or_dot(end_first);
#  927|   
#  928|->         *p = next + streq(next, ".");
#  929|           if (ret)
#  930|                   *ret = first;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1209:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘e’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1195:6: enter_function: entry to ‘path_is_valid_full’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1202:21: call_function: calling ‘path_find_first_component’ from ‘path_is_valid_full’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1202:21: return_function: returning to ‘path_is_valid_full’ from ‘path_find_first_component’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1203:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1206:21: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1206:21: release_memory: ‘e’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1206:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1209:21: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/path-util.c:1209:21: danger: dereference of NULL ‘e’
# 1207|                                           * *with* the trailing NUL byte) */
# 1208|                           return false;
# 1209|->                 if (*e == 0)           /* End of string? Yay! */
# 1210|                           return true;
# 1211|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1577:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(__builtin_alloca(max(_len_ + 1, 1)), 524288)’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1536:5: enter_function: entry to ‘verify_timezone’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1547:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1550:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1550:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1553:24: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1554:22: call_function: inlined call to ‘ascii_isdigit’ from ‘verify_timezone’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1559:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1553:28: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1569:12: branch_false: following ‘false’ branch (when ‘slash == 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1572:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1572:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1575:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1575:13: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1575:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1575:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1575:13: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1577:14: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/time-util.c:1577:14: danger: ‘open(__builtin_alloca(max(_len_ + 1, 1)), 524288)’ leaks here; was opened at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
# 1575|           t = strjoina("/usr/share/zoneinfo/", name);
# 1576|   
# 1577|->         fd = open(t, O_RDONLY|O_CLOEXEC);
# 1578|           if (fd < 0)
# 1579|                   return log_full_errno(log_level, errno, "Failed to open timezone file '%s': %m", t);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:203:1: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:136:12: enter_function: entry to ‘tempfn_build’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:141:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:142:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:142:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:153:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:162:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:163:24: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:162:13: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:166:19: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:168:12: branch_true: following ‘true’ branch (when ‘child != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:169:21: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:169:21: acquire_memory: allocated here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:170:20: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:186:14: call_function: inlined call to ‘strempty’ from ‘tempfn_build’
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:186:14: call_function: inlined call to ‘strempty’ from ‘tempfn_build’
 branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:187:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnm-systemd-shared/src/basic/tmpfile-util.c:203:1: danger: ‘d’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  201|           *ret = TAKE_PTR(result);
#  202|           return 0;
#  203|-> }
#  204|   
#  205|   int tempfn_xxxxxx(const char *p, const char *extra, char **ret) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:116:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.children’
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:112:16: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:114:11: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:116:21: danger: dereference of NULL ‘*<unknown>.children’
#  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): [#def141]
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:152:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:135:36: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:138:12: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:149:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:150:23: branch_true: following ‘true’ branch...
 branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:151:25: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:152:29: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:152:29: release_memory: ‘0’ is NULL
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:152:21: danger: dereference of NULL ‘<unknown> + (long unsigned int)i * 32’
#  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): [#def142]
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:230:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.children’
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:193:36: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:198:21: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:230:21: danger: dereference of NULL ‘*<unknown>.children’
#  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): [#def143]
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:275:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:271:36: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:274:19: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:275:21: danger: dereference of NULL ‘_arr_55’
#  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): [#def144]
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:321:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:318:36: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:321:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-grid.c:321:21: danger: dereference of NULL ‘_arr_55’
#  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): [#def145]
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:129:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:121:36: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:129:36: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:129:36: danger: dereference of NULL ‘_arr_55’
#  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): [#def146]
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:254:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.entries’
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:251:36: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:254:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/libnmt-newt/nmt-newt-popup.c:254:21: danger: dereference of NULL ‘*<unknown>.entries’
#  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: GCC_ANALYZER_WARNING (CWE-457): [#def147]
NetworkManager-1.53.1/redhat-linux-build/../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.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:895:16: enter_function: entry to ‘n_acd_dispatch’
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:900:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:905:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:907:21: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:908:25: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-acd/src/n-acd.c:913:29: call_function: calling ‘n_acd_dispatch_socket’ from ‘n_acd_dispatch’
#  752|           arp = packet;
#  753|   
#  754|->         if (arp->arp_hrd != htobe16(ARPHRD_ETHER))
#  755|                   return false;
#  756|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
NetworkManager-1.53.1/redhat-linux-build/../src/n-dhcp4/src/n-dhcp4-c-connection.c:1177:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(65535)’
NetworkManager-1.53.1/redhat-linux-build/../src/n-dhcp4/src/n-dhcp4-c-connection.c:1173:18: acquire_memory: allocated here
NetworkManager-1.53.1/redhat-linux-build/../src/n-dhcp4/src/n-dhcp4-c-connection.c:1174:12: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/n-dhcp4/src/n-dhcp4-c-connection.c:1177:17: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/n-dhcp4/src/n-dhcp4-c-connection.c:1177:17: danger: ‘malloc(65535)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 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: GCC_ANALYZER_WARNING (CWE-476): [#def149]
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:578:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘filter_val’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:546:1: enter_function: entry to ‘nmc_find_active_connection’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:554:42: branch_true: following ‘true’ branch (when ‘out_result’ is non-NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:554:25: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:558:17: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:560:41: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:570:16: branch_true: following ‘true’ branch (when ‘complete != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:571:17: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:571:17: call_function: calling ‘nmc_complete_strv’ from ‘nmc_find_active_connection’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:571:17: return_function: returning to ‘nmc_find_active_connection’ from ‘nmc_complete_strv’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:572:17: call_function: calling ‘nm_streq0’ from ‘nmc_find_active_connection’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:572:17: return_function: returning to ‘nmc_find_active_connection’ from ‘nm_streq0’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:572:16: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:576:13: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:578:16: branch_true: following ‘true’ branch (when ‘complete != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:578:17: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:578:17: branch_false: following ‘false’ branch (when ‘filter_type’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:578:45: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:578:45: danger: dereference of NULL ‘filter_val’
#  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): [#def150]
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:1452:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prefix’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:1449:1: enter_function: entry to ‘nmc_complete_help’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:1451:5: call_function: calling ‘nmc_complete_strv’ from ‘nmc_complete_help’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:1451:5: return_function: returning to ‘nmc_complete_help’ from ‘nmc_complete_strv’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/common.c:1452:9: danger: dereference of NULL ‘prefix’
# 1450|   {
# 1451|       nmc_complete_strings(prefix, "help");
# 1452|->     if (*prefix == '-')
# 1453|           nmc_complete_strings(prefix, "-help", "--help");
# 1454|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1528:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1466:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1466:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1467:39: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1466:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1470:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1476:18: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1484:8: branch_false: following ‘false’ branch (when ‘pager_pid != -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1493:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1493:8: branch_false: following ‘false’ branch (when ‘pager_pid != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1528:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1528:9: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1528:8: danger: ‘dup2(fd[1], 1)’ leaks here; was opened at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
# 1526|   
# 1527|       /* Return in the parent */
# 1528|->     if (dup2(fd[1], STDOUT_FILENO) < 0) {
# 1529|           errsv = errno;
# 1530|           nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def152]
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1532:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 2)’
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1466:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1466:9: branch_true: following ‘true’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1467:39: branch_true: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1466:9: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1470:8: branch_false: following ‘false’ branch...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1476:18: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1484:8: branch_false: following ‘false’ branch (when ‘pager_pid != -1’)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1493:8: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1493:8: branch_false: following ‘false’ branch (when ‘pager_pid != 0’)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1528:9: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1532:9: acquire_resource: opened here
NetworkManager-1.53.1/redhat-linux-build/../src/nmcli/utils.c:1532:8: danger: ‘dup2(fd[1], 2)’ leaks here; was opened at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
# 1530|           nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));
# 1531|       }
# 1532|->     if (dup2(fd[1], STDERR_FILENO) < 0) {
# 1533|           errsv = errno;
# 1534|           nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:153:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:150:34: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:153:5: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:153:21: danger: dereference of NULL ‘_arr_55’
#  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): [#def154]
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:229:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:222:34: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:227:11: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:229:21: danger: dereference of NULL ‘*<unknown>.rows’
#  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): [#def155]
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:317:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:308:1: enter_function: entry to ‘nmt_editor_grid_size_request’
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:311:43: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:312:43: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:312:43: call_function: calling ‘get_form_state’ from ‘nmt_editor_grid_size_request’
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:312:43: return_function: returning to ‘nmt_editor_grid_size_request’ from ‘get_form_state’
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:317:25: danger: dereference of NULL ‘*<unknown>.rows’
#  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): [#def156]
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:368:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:359:37: branch_false: following ‘false’ branch (when ‘_arr_55’ is NULL)...
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:360:37: branch_false: ...to here
NetworkManager-1.53.1/redhat-linux-build/../src/nmtui/nmt-editor-grid.c:368:27: danger: dereference of NULL ‘*<unknown>.rows’
#  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;

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

Error: CPPCHECK_WARNING (CWE-457): [#def158]
NetworkManager-1.53.1/src/core/dhcp/nm-dhcp-client.c:1118: error[uninitvar]: Uninitialized variable: &addr->address
# 1116|           const NMPlatformIP6Address *pladdr;
# 1117|   
# 1118|->         pladdr = nm_platform_ip6_address_get(platform, ifindex, &addr->address);
# 1119|           if ((pladdr && NM_FLAGS_HAS(pladdr->n_ifa_flags, IFA_F_DADFAILED))
# 1120|               || (!pladdr && nm_platform_ip6_dadfailed_check(platform, ifindex, &addr->address))) {

Error: CPPCHECK_WARNING (CWE-457): [#def159]
NetworkManager-1.53.1/src/core/dhcp/nm-dhcp-utils.c:878: error[uninitvar]: Uninitialized variable: addr
#  876|   
#  877|       nm_l3_config_data_iter_ip6_address_for_each (&iter, l3cd_new, &addr)
#  878|->         nm_l3_config_data_add_address_6(l3cd_merged, addr);
#  879|   
#  880|       /* FIXME(l3cfg): Note that we keep the original NMDhcpLease. All we take from the new lease are the

Error: CPPCHECK_WARNING (CWE-476): [#def160]
NetworkManager-1.53.1/src/core/nm-config-data.c:1375: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: name
# 1373|           domain->options = options;
# 1374|   
# 1375|->         g_hash_table_insert(dns_config->domains, strdup(name), domain);
# 1376|   
# 1377|           if (name[0] == '*' && name[1] == '\0')

Error: CPPCHECK_WARNING (CWE-476): [#def161]
NetworkManager-1.53.1/src/core/nm-config-data.c:1377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: name
# 1375|           g_hash_table_insert(dns_config->domains, strdup(name), domain);
# 1376|   
# 1377|->         if (name[0] == '*' && name[1] == '\0')
# 1378|               default_found = TRUE;
# 1379|       }

Error: CPPCHECK_WARNING (CWE-570): [#def162]
NetworkManager-1.53.1/src/core/nm-config.c:970: error[comparePointers]: Comparing pointers that point to different objects
#  968|   
#  969|       if (g->is_connection) {
#  970|->         for (ptr = __start_connection_defaults; ptr < __stop_connection_defaults; ptr++) {
#  971|               if (nm_streq(key, *ptr))
#  972|                   return TRUE;

Error: CPPCHECK_WARNING (CWE-457): [#def163]
NetworkManager-1.53.1/src/core/nm-l3-ipv4ll.c:349: error[uninitvar]: Uninitialized variable: pladdr
#  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: CPPCHECK_WARNING (CWE-457): [#def164]
NetworkManager-1.53.1/src/core/nm-l3cfg.c:5087: error[uninitvar]: Uninitialized variable: addr
# 5085|                    * later have the scope nm_platform_ip_address_get_scope() based on
# 5086|                    * the address. */
# 5087|->                 switch (nm_platform_ip_address_get_scope(addr_family, addr->ax.address_ptr)) {
# 5088|                   case RT_SCOPE_HOST:
# 5089|                       goto skip_addr;

Error: CPPCHECK_WARNING (CWE-457): [#def165]
NetworkManager-1.53.1/src/core/nm-pacrunner-manager.c:147: error[uninitvar]: Uninitialized variable: address
#  145|       nm_l3_config_data_iter_ip_address_for_each (&ipconf_iter, l3cd, addr_family, &address) {
#  146|           cidr = g_strdup_printf("%s/%u",
#  147|->                                nm_inet_ntop(addr_family, address->address_ptr, sbuf),
#  148|                                  address->plen);
#  149|           g_ptr_array_add(domains, cidr);

Error: CPPCHECK_WARNING (CWE-457): [#def166]
NetworkManager-1.53.1/src/core/nm-pacrunner-manager.c:156: error[uninitvar]: Uninitialized variable: route
#  154|               continue;
#  155|           cidr = g_strdup_printf("%s/%u",
#  156|->                                nm_inet_ntop(addr_family, route->network_ptr, sbuf),
#  157|                                  route->plen);
#  158|           g_ptr_array_add(domains, cidr);

Error: CPPCHECK_WARNING (CWE-476): [#def167]
NetworkManager-1.53.1/src/core/platform/tests/test-link.c:668: error[nullPointer]: Null pointer dereference: plink
#  666|                                                                 &plink)));
#  667|       g_assert(plink);
#  668|->     link = *plink;
#  669|       g_assert_cmpstr(link.name, ==, DEVICE_NAME);
#  670|   

Error: CPPCHECK_WARNING (CWE-457): [#def168]
NetworkManager-1.53.1/src/core/platform/tests/test-link.c:1397: error[uninitvar]: Uninitialized variable: ifindex
# 1395|       nmtstp_run_command_check("ip link add %s type dummy", PARENT_NAME);
# 1396|       ifindex_parent =
# 1397|->         nmtstp_assert_wait_for_link(NM_PLATFORM_GET, PARENT_NAME, NM_LINK_TYPE_DUMMY, 100)->ifindex;
# 1398|   
# 1399|       switch (test_data->link_type) {

Error: CPPCHECK_WARNING (CWE-457): [#def169]
NetworkManager-1.53.1/src/core/platform/tests/test-link.c:2355: error[uninitvar]: Uninitialized variable: ifindex
# 2353|       nmtstp_run_command_check("ip link add %s type dummy", PARENT_NAME);
# 2354|       ifindex_parent =
# 2355|->         nmtstp_assert_wait_for_link(NM_PLATFORM_GET, PARENT_NAME, NM_LINK_TYPE_DUMMY, 100)->ifindex;
# 2356|   
# 2357|       nmtstp_run_command_check("ip link add name %s link %s type vlan id 1245",

Error: CPPCHECK_WARNING (CWE-457): [#def170]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:624: error[uninitvar]: Uninitialized variable: v_u32
#  622|       if (nm_g_variant_lookup(properties, "Age", "u", &v_u32)) {
#  623|           bss_info->last_seen_msec =
#  624|->             nm_utils_get_monotonic_timestamp_msec_cached(&now_msec) - (((gint64) v_u32) * 1000);
#  625|       } else if (initial) {
#  626|           /* Unknown Age. Assume we just received it. */

Error: CPPCHECK_WARNING (CWE-457): [#def171]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:679: error[uninitvar]: Uninitialized variable: v_i16
#  677|   
#  678|       if (nm_g_variant_lookup(properties, "Signal", "n", &v_i16))
#  679|->         p_signal_percent = nm_wifi_utils_level_to_quality(v_i16);
#  680|       else if (initial)
#  681|           p_signal_percent = 0;

Error: CPPCHECK_WARNING (CWE-457): [#def172]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:687: error[uninitvar]: Uninitialized variable: v_u16
#  685|   
#  686|       if (nm_g_variant_lookup(properties, "Frequency", "q", &v_u16))
#  687|->         bss_info->frequency = v_u16;
#  688|   
#  689|       v_v = nm_g_variant_lookup_value(properties, "SSID", G_VARIANT_TYPE_BYTESTRING);

Error: CPPCHECK_WARNING (CWE-457): [#def173]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:874: error[uninitvar]: Uninitialized variable: bss_info
#  872|   
#  873|       c_list_unlink(&bss_info->_bss_lst);
#  874|->     if (!bss_info->_init_cancellable)
#  875|           _bss_info_changed_emit(self, bss_info, FALSE);
#  876|       _bss_info_destroy(bss_info);

Error: CPPCHECK_WARNING (CWE-457): [#def174]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:928: error[uninitvar]: Uninitialized variable: v_i32
#  926|   
#  927|       if (nm_g_variant_lookup(properties, "level", "i", &v_i32))
#  928|->         peer_info->signal_percent = nm_wifi_utils_level_to_quality(v_i32);
#  929|   
#  930|       if (nm_g_variant_lookup(properties, "DeviceName", "&s", &v_s))

Error: CPPCHECK_WARNING (CWE-457): [#def175]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:931: error[uninitvar]: Uninitialized variable: v_s
#  929|   
#  930|       if (nm_g_variant_lookup(properties, "DeviceName", "&s", &v_s))
#  931|->         nm_strdup_reset(&peer_info->device_name, v_s);
#  932|   
#  933|       if (nm_g_variant_lookup(properties, "Manufacturer", "&s", &v_s))

Error: CPPCHECK_WARNING (CWE-457): [#def176]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:1072: error[uninitvar]: Uninitialized variable: peer_info
# 1070|   
# 1071|       c_list_unlink(&peer_info->_peer_lst);
# 1072|->     if (!peer_info->_init_cancellable)
# 1073|           _peer_info_changed_emit(self, peer_info, FALSE);
# 1074|       _peer_info_destroy(peer_info);

Error: CPPCHECK_WARNING (CWE-457): [#def177]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:1954: error[uninitvar]: Uninitialized variable: v_b
# 1952|   
# 1953|       if (nm_g_variant_lookup(properties, "Scanning", "b", &v_b)) {
# 1954|->         if (priv->scanning_property != (!!v_b)) {
# 1955|               _LOGT("scanning: %s (plain property)", v_b ? "yes" : "no");
# 1956|               priv->scanning_property = v_b;

Error: CPPCHECK_WARNING (CWE-457): [#def178]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:1961: error[uninitvar]: Uninitialized variable: v_s
# 1959|   
# 1960|       if (nm_g_variant_lookup(properties, "Ifname", "&s", &v_s)) {
# 1961|->         if (nm_strdup_reset(&priv->ifname, v_s))
# 1962|               do_log_driver_info = TRUE;
# 1963|       }

Error: CPPCHECK_WARNING (CWE-457): [#def179]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:1976: error[uninitvar]: Uninitialized variable: v_i32
# 1974|            * AP will be positive.
# 1975|            */
# 1976|->         priv->disconnect_reason = v_i32;
# 1977|       }
# 1978|   

Error: CPPCHECK_WARNING (CWE-457): [#def180]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:2030: error[uninitvar]: Uninitialized variable: v_strv
# 2028|               bss_info->_bss_dirty = TRUE;
# 2029|   
# 2030|->         for (iter = v_strv; *iter; iter++)
# 2031|               _bss_info_add(self, *iter);
# 2032|   

Error: CPPCHECK_WARNING (CWE-457): [#def181]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:2076: error[uninitvar]: Uninitialized variable: v_strv
# 2074|               peer_info->_peer_dirty = TRUE;
# 2075|   
# 2076|->         for (iter = v_strv; *iter; iter++)
# 2077|               _peer_info_add(self, *iter);
# 2078|   

Error: CPPCHECK_WARNING (CWE-457): [#def182]
NetworkManager-1.53.1/src/core/supplicant/nm-supplicant-interface.c:2095: error[uninitvar]: Uninitialized variable: v_s
# 2093|   
# 2094|       if (nm_g_variant_lookup(properties, "Group", "&o", &v_s))
# 2095|->         _p2p_group_set_path(self, v_s);
# 2096|   }
# 2097|   

Error: CPPCHECK_WARNING (CWE-457): [#def183]
NetworkManager-1.53.1/src/libnm-client-impl/tests/test-nm-client.c:745: error[legacyUninitvar]: Uninitialized variable: device
#  743|       g_assert_cmpstr(nm_device_get_iface(device), ==, "eth0.1");
#  744|   
#  745|->     if (!nm_device_get_active_connection(device)) {
#  746|           g_assert(info->ac_signal_id == 0);
#  747|           info->remaining++;

Error: CPPCHECK_WARNING (CWE-823): [#def184]
NetworkManager-1.53.1/src/libnm-core-aux-intern/nm-libnm-core-utils.c:173: error[arrayIndexOutOfBounds]: Array 'name[1]' accessed at index 1, which is out of bounds.
#  171|       {"vlan+srcmac", NM_BOND_XMIT_HASH_POLICY_VLAN_SRCMAC}, );
#  172|   
#  173|-> NM_UTILS_STRING_TABLE_LOOKUP_DEFINE(
#  174|       _nm_setting_bond_mode_from_string,
#  175|       NMBondMode,

Error: CPPCHECK_WARNING (CWE-628): [#def185]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:141: warning[invalidFunctionArg]: Invalid strchr() argument nr 2. The value is -96 but the valid values are '0:255'.
#  139|   
#  140|           for (i = 0; S[i]; i++)
#  141|->             g_assert(!strchr(&S[i + 1], S[i]));
#  142|   
#  143|           for (i = 0; S[i] != '\0'; i++)

Error: CPPCHECK_WARNING (CWE-457): [#def186]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3837: error[uninitvar]: Uninitialized variable: _ptype
# 3835|       add_permission_property(s_con, "foobar", "blah", -1, NULL);
# 3836|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3837|->     _assert_permission_invalid_at_idx(s_con, 0, "foobar:blah:");
# 3838|   
# 3839|       /* Ensure a bad [type] is rejected */

Error: CPPCHECK_WARNING (CWE-457): [#def187]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3842: error[uninitvar]: Uninitialized variable: _ptype
# 3840|       add_permission_property(s_con, NULL, "blah", -1, NULL);
# 3841|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3842|->     _assert_permission_invalid_at_idx(s_con, 0, ":blah:");
# 3843|   
# 3844|       /* Ensure a bad [item] is rejected */

Error: CPPCHECK_WARNING (CWE-457): [#def188]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3847: error[uninitvar]: Uninitialized variable: _ptype
# 3845|       add_permission_property(s_con, "user", NULL, -1, NULL);
# 3846|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3847|->     _assert_permission_invalid_at_idx(s_con, 0, "user::");
# 3848|   
# 3849|       /* Ensure a bad [item] is rejected */

Error: CPPCHECK_WARNING (CWE-457): [#def189]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3852: error[uninitvar]: Uninitialized variable: _ptype
# 3850|       add_permission_property(s_con, "user", "", -1, NULL);
# 3851|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3852|->     _assert_permission_invalid_at_idx(s_con, 0, "user::");
# 3853|   
# 3854|       /* Ensure an [item] with ':' in the middle is rejected */

Error: CPPCHECK_WARNING (CWE-457): [#def190]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3857: error[uninitvar]: Uninitialized variable: _ptype
# 3855|       add_permission_property(s_con, "user", "ad:asdf", -1, NULL);
# 3856|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3857|->     _assert_permission_invalid_at_idx(s_con, 0, "user:ad:asdf:");
# 3858|   
# 3859|       /* Ensure an [item] with ':' at the end is rejected */

Error: CPPCHECK_WARNING (CWE-457): [#def191]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3862: error[uninitvar]: Uninitialized variable: _ptype
# 3860|       add_permission_property(s_con, "user", "adasdfaf:", -1, NULL);
# 3861|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3862|->     _assert_permission_invalid_at_idx(s_con, 0, "user:adasdfaf::");
# 3863|   
# 3864|       /* Ensure a non-UTF-8 [item] is rejected */

Error: CPPCHECK_WARNING (CWE-457): [#def192]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3867: error[uninitvar]: Uninitialized variable: _ptype
# 3865|       add_permission_property(s_con, "user", buf, (int) sizeof(buf), NULL);
# 3866|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3867|->     _assert_permission_invalid_at_idx(s_con, 0, NULL);
# 3868|   
# 3869|       /* Ensure a non-NULL [detail] is rejected */

Error: CPPCHECK_WARNING (CWE-457): [#def193]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3872: error[uninitvar]: Uninitialized variable: _ptype
# 3870|       add_permission_property(s_con, "user", "dafasdf", -1, "asdf");
# 3871|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 1);
# 3872|->     _assert_permission_invalid_at_idx(s_con, 0, "user:dafasdf:asdf");
# 3873|   
# 3874|       /* Ensure a valid call results in success */

Error: CPPCHECK_WARNING (CWE-457): [#def194]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:3878: error[uninitvar]: Uninitialized variable: _ptype
# 3876|       g_assert(success);
# 3877|       g_assert_cmpint(nm_setting_connection_get_num_permissions(s_con), ==, 2);
# 3878|->     _assert_permission_invalid_at_idx(s_con, 0, "user:dafasdf:asdf");
# 3879|       check_permission(s_con, 1, TEST_UNAME);
# 3880|   

Error: CPPCHECK_WARNING (CWE-457): [#def195]
NetworkManager-1.53.1/src/libnm-core-impl/tests/test-general.c:9371: warning[uninitvar]: Uninitialized variable: arr
# 9369|                   arr[i] =
# 9370|                       GINT_TO_POINTER(nmtst_get_rand_uint32() % (i_len + BIN_SEARCH_W_DUPS_JITTER));
# 9371|->             g_qsort_with_data(arr, i_len, sizeof(gpointer), _test_bin_search2_cmp_p, NULL);
# 9372|               for (i = 0; i < i_len + BIN_SEARCH_W_DUPS_JITTER; i++) {
# 9373|                   gconstpointer p = GINT_TO_POINTER(i);

Error: CPPCHECK_WARNING (CWE-562): [#def196]
NetworkManager-1.53.1/src/libnm-glib-aux/nm-io-utils.c:873: error[danglingTempReference]: Using reference to dangling temporary.
#  871|       gsize                    last_value_whitespace = G_MAXSIZE;
#  872|       gsize                    last_key_whitespace   = G_MAXSIZE;
#  873|->     nm_auto_str_buf NMStrBuf key                   = NM_STR_BUF_INIT(0, FALSE);
#  874|       nm_auto_str_buf NMStrBuf value                 = NM_STR_BUF_INIT(0, FALSE);
#  875|       unsigned                 line                  = 1;

Error: CPPCHECK_WARNING (CWE-562): [#def197]
NetworkManager-1.53.1/src/libnm-glib-aux/nm-io-utils.c:874: error[danglingTempReference]: Using reference to dangling temporary.
#  872|       gsize                    last_key_whitespace   = G_MAXSIZE;
#  873|       nm_auto_str_buf NMStrBuf key                   = NM_STR_BUF_INIT(0, FALSE);
#  874|->     nm_auto_str_buf NMStrBuf value                 = NM_STR_BUF_INIT(0, FALSE);
#  875|       unsigned                 line                  = 1;
#  876|       int                      r;

Error: CPPCHECK_WARNING (CWE-562): [#def198]
NetworkManager-1.53.1/src/libnm-glib-aux/nm-io-utils.c:1061: error[danglingTempReference]: Using reference to dangling temporary.
# 1059|               nm_str_buf_get_str_unsafe(&key)[last_key_whitespace] = 0;
# 1060|   
# 1061|->         r = push(line, nm_str_buf_get_str(&key), nm_str_buf_get_str(&value) ?: "", userdata);
# 1062|           if (r < 0)
# 1063|               return r;

Error: CPPCHECK_WARNING (CWE-562): [#def199]
NetworkManager-1.53.1/src/libnm-glib-aux/nm-io-utils.c:1061: error[danglingTemporaryLifetime]: Using pointer that is a temporary.
# 1059|               nm_str_buf_get_str_unsafe(&key)[last_key_whitespace] = 0;
# 1060|   
# 1061|->         r = push(line, nm_str_buf_get_str(&key), nm_str_buf_get_str(&value) ?: "", userdata);
# 1062|           if (r < 0)
# 1063|               return r;

Error: CPPCHECK_WARNING (CWE-457): [#def200]
NetworkManager-1.53.1/src/libnm-glib-aux/nm-test-utils.h:1143: warning[uninitvar]: Uninitialized variable: buffer
# 1141|   
# 1142|       if (!buffer_length)
# 1143|->         return buffer;
# 1144|   
# 1145|       g_assert(buffer);

Error: CPPCHECK_WARNING (CWE-457): [#def201]
NetworkManager-1.53.1/src/libnm-glib-aux/nm-test-utils.h:2157: error[legacyUninitvar]: Uninitialized variable: family
# 2155|           g_assert_not_reached();
# 2156|   
# 2157|->     addr = nm_ip_address_new(family, address, prefix, NULL);
# 2158|       g_assert(addr);
# 2159|       g_assert(nm_setting_ip_config_add_address(s_ip, addr));

Error: CPPCHECK_WARNING (CWE-457): [#def202]
NetworkManager-1.53.1/src/libnm-glib-aux/nm-test-utils.h:2182: error[legacyUninitvar]: Uninitialized variable: family
# 2180|           g_assert_not_reached();
# 2181|   
# 2182|->     route = nm_ip_route_new(family, dest, prefix, next_hop, metric, NULL);
# 2183|       g_assert(route);
# 2184|       g_assert(nm_setting_ip_config_add_route(s_ip, route));

Error: CPPCHECK_WARNING (CWE-457): [#def203]
NetworkManager-1.53.1/src/libnm-glib-aux/tests/test-shared-general.c:1943: warning[uninitvar]: Uninitialized variable: rnd_buf
# 1941|       for (i = 0; i < rnd_len; i++)
# 1942|           rnd_buf[i] = nmtst_get_rand_uint32() % 256;
# 1943|->     rnd_base64 = g_base64_encode(rnd_buf, rnd_len);
# 1944|       _test_unbase64mem_mem(rnd_base64, rnd_buf, rnd_len);
# 1945|   }

Error: CPPCHECK_WARNING (CWE-457): [#def204]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:1585: error[uninitvar]: Uninitialized variable: tb
# 1583|       }
# 1584|   
# 1585|->     if (tb[IFLA_BR_FORWARD_DELAY])
# 1586|           props->forward_delay = nla_get_u32(tb[IFLA_BR_FORWARD_DELAY]);
# 1587|       if (tb[IFLA_BR_HELLO_TIME])

Error: CPPCHECK_WARNING (CWE-457): [#def205]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:1690: error[uninitvar]: Uninitialized variable: tb
# 1688|       props = &obj->lnk_bond;
# 1689|   
# 1690|->     if (tb[IFLA_BOND_MODE])
# 1691|           props->mode = nla_get_u8(tb[IFLA_BOND_MODE]);
# 1692|       if (tb[IFLA_BOND_PRIMARY])

Error: CPPCHECK_WARNING (CWE-457): [#def206]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:1838: error[uninitvar]: Uninitialized variable: tb
# 1836|       props = &obj->lnk_gre;
# 1837|   
# 1838|->     props->parent_ifindex     = tb[IFLA_GRE_LINK] ? nla_get_u32(tb[IFLA_GRE_LINK]) : 0;
# 1839|       props->input_flags        = tb[IFLA_GRE_IFLAGS] ? ntohs(nla_get_u16(tb[IFLA_GRE_IFLAGS])) : 0;
# 1840|       props->output_flags       = tb[IFLA_GRE_OFLAGS] ? ntohs(nla_get_u16(tb[IFLA_GRE_OFLAGS])) : 0;

Error: CPPCHECK_WARNING (CWE-457): [#def207]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:1878: error[uninitvar]: Uninitialized variable: tb
# 1876|       obj   = nmp_object_new(NMP_OBJECT_TYPE_LNK_HSR, NULL);
# 1877|       props = &obj->lnk_hsr;
# 1878|->     if (tb[IFLA_HSR_PORT1]) {
# 1879|           v_u32 = nla_get_u32(tb[IFLA_HSR_PORT1]);
# 1880|           if (v_u32 <= (unsigned) G_MAXINT)

Error: CPPCHECK_WARNING (CWE-457): [#def208]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:1985: error[uninitvar]: Uninitialized variable: tb
# 1983|       props = &obj->lnk_ip6tnl;
# 1984|   
# 1985|->     if (tb[IFLA_IPTUN_LINK])
# 1986|           props->parent_ifindex = nla_get_u32(tb[IFLA_IPTUN_LINK]);
# 1987|       if (tb[IFLA_IPTUN_LOCAL])

Error: CPPCHECK_WARNING (CWE-457): [#def209]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2048: error[uninitvar]: Uninitialized variable: tb
# 2046|       props->is_tap = is_tap;
# 2047|   
# 2048|->     if (tb[IFLA_GRE_LINK])
# 2049|           props->parent_ifindex = nla_get_u32(tb[IFLA_GRE_LINK]);
# 2050|       if (tb[IFLA_GRE_IFLAGS])

Error: CPPCHECK_WARNING (CWE-457): [#def210]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2103: error[uninitvar]: Uninitialized variable: tb
# 2101|       props = &obj->lnk_ipip;
# 2102|   
# 2103|->     props->parent_ifindex     = tb[IFLA_IPTUN_LINK] ? nla_get_u32(tb[IFLA_IPTUN_LINK]) : 0;
# 2104|       props->local              = tb[IFLA_IPTUN_LOCAL] ? nla_get_u32(tb[IFLA_IPTUN_LOCAL]) : 0;
# 2105|       props->remote             = tb[IFLA_IPTUN_REMOTE] ? nla_get_u32(tb[IFLA_IPTUN_REMOTE]) : 0;

Error: CPPCHECK_WARNING (CWE-457): [#def211]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2221: error[uninitvar]: Uninitialized variable: tb
# 2219|       props = &obj->lnk_macsec;
# 2220|   
# 2221|->     if (tb[IFLA_MACSEC_SCI]) {
# 2222|           props->sci = nla_get_be64(tb[IFLA_MACSEC_SCI]);
# 2223|       }

Error: CPPCHECK_WARNING (CWE-457): [#def212]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2289: error[uninitvar]: Uninitialized variable: tb
# 2287|       props = &obj->lnk_sit;
# 2288|   
# 2289|->     props->parent_ifindex     = tb[IFLA_IPTUN_LINK] ? nla_get_u32(tb[IFLA_IPTUN_LINK]) : 0;
# 2290|       props->local              = tb[IFLA_IPTUN_LOCAL] ? nla_get_u32(tb[IFLA_IPTUN_LOCAL]) : 0;
# 2291|       props->remote             = tb[IFLA_IPTUN_REMOTE] ? nla_get_u32(tb[IFLA_IPTUN_REMOTE]) : 0;

Error: CPPCHECK_WARNING (CWE-457): [#def213]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2544: error[uninitvar]: Uninitialized variable: tb
# 2542|       props = &obj->lnk_vxlan;
# 2543|   
# 2544|->     if (tb[IFLA_VXLAN_LINK])
# 2545|           props->parent_ifindex = nla_get_u32(tb[IFLA_VXLAN_LINK]);
# 2546|       if (tb[IFLA_VXLAN_ID])

Error: CPPCHECK_WARNING (CWE-457): [#def214]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2615: error[uninitvar]: Uninitialized variable: tb
# 2613|       props = &obj->lnk_vti;
# 2614|   
# 2615|->     props->parent_ifindex = tb[IFLA_VTI_LINK] ? nla_get_u32(tb[IFLA_VTI_LINK]) : 0;
# 2616|       props->local          = tb[IFLA_VTI_LOCAL] ? nla_get_u32(tb[IFLA_VTI_LOCAL]) : 0;
# 2617|       props->remote         = tb[IFLA_VTI_REMOTE] ? nla_get_u32(tb[IFLA_VTI_REMOTE]) : 0;

Error: CPPCHECK_WARNING (CWE-457): [#def215]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2649: error[uninitvar]: Uninitialized variable: tb
# 2647|       props = &obj->lnk_vti6;
# 2648|   
# 2649|->     props->parent_ifindex = tb[IFLA_VTI_LINK] ? nla_get_u32(tb[IFLA_VTI_LINK]) : 0;
# 2650|       if (tb[IFLA_VTI_LOCAL])
# 2651|           props->local = *nla_data_as(struct in6_addr, tb[IFLA_VTI_LOCAL]);

Error: CPPCHECK_WARNING (CWE-457): [#def216]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2681: error[uninitvar]: Uninitialized variable: tb
# 2679|       props = &obj->lnk_vrf;
# 2680|   
# 2681|->     if (tb[IFLA_VRF_TABLE])
# 2682|           props->table = nla_get_u32(tb[IFLA_VRF_TABLE]);
# 2683|   

Error: CPPCHECK_WARNING (CWE-457): [#def217]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:2862: error[uninitvar]: Uninitialized variable: tb
# 2860|           return NL_SKIP;
# 2861|   
# 2862|->     if (tb[WGDEVICE_A_IFINDEX]) {
# 2863|           int ifindex;
# 2864|   

Error: CPPCHECK_WARNING (CWE-457): [#def218]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:3527: error[uninitvar]: Uninitialized variable: li
# 3525|               return NULL;
# 3526|   
# 3527|->         if (li[IFLA_INFO_KIND])
# 3528|               nl_info_kind = nla_get_string(li[IFLA_INFO_KIND]);
# 3529|   

Error: CPPCHECK_WARNING (CWE-457): [#def219]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:4151: error[uninitvar]: Uninitialized variable: ntb
# 4149|   
# 4150|                       if (_check_addr_or_return_null(ntb, RTA_GATEWAY, addr_len))
# 4151|->                         memcpy(&new_nexthop->gateway, nla_data(ntb[RTA_GATEWAY]), addr_len);
# 4152|                   }
# 4153|               } else if (IS_IPv4 || idx == multihop_idx) {

Error: CPPCHECK_WARNING (CWE-457): [#def220]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:4168: error[uninitvar]: Uninitialized variable: ntb
# 4166|   
# 4167|                       if (_check_addr_or_return_null(ntb, RTA_GATEWAY, addr_len))
# 4168|->                         memcpy(&nh.gateway, nla_data(ntb[RTA_GATEWAY]), addr_len);
# 4169|                   }
# 4170|               } else if (nh.found) {

Error: CPPCHECK_WARNING (CWE-457): [#def221]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:4279: error[uninitvar]: Uninitialized variable: mtb
# 4277|               return NULL;
# 4278|   
# 4279|->         if (mtb[RTAX_LOCK])
# 4280|               lock = nla_get_u32(mtb[RTAX_LOCK]);
# 4281|           if (mtb[RTAX_ADVMSS])

Error: CPPCHECK_WARNING (CWE-457): [#def222]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:10443: error[uninitvar]: Uninitialized variable: tb
#10441|           return NL_SKIP;
#10442|   
#10443|->     if (tb[NDA_CONTROLLER])
#10444|           fdb_controller = nla_get_u32(tb[NDA_CONTROLLER]);
#10445|   

Error: CPPCHECK_WARNING (CWE-457): [#def223]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:11059: error[uninitvar]: Uninitialized variable: tb
#11057|               return;
#11058|   
#11059|->         name        = nla_get_string(tb[CTRL_ATTR_FAMILY_NAME]);
#11060|           family_type = nmp_genl_family_type_from_name(name);
#11061|   

Error: CPPCHECK_WARNING (CWE-457): [#def224]
NetworkManager-1.53.1/src/libnm-platform/nm-linux-platform.c:11607: error[uninitvar]: Uninitialized variable: tb
#11605|           return NL_SKIP;
#11606|   
#11607|->     if (tb[MPTCP_PM_ATTR_ADDR]) {
#11608|           const NMPObject *obj;
#11609|   

Error: CPPCHECK_WARNING (CWE-457): [#def225]
NetworkManager-1.53.1/src/libnm-platform/nm-netlink.c:329: error[uninitvar]: Uninitialized variable: tb
#  327|                                (((char *) e) + sizeof(*e) + e->msg.nlmsg_len - NLMSG_HDRLEN));
#  328|           if (nla_parse_arr(tb, tlvs, nlh->nlmsg_len - sizeof(*e) - e->msg.nlmsg_len, policy) >= 0) {
#  329|->             if (tb[NLMSGERR_ATTR_MSG]) {
#  330|                   const char *s;
#  331|   

Error: CPPCHECK_WARNING (CWE-457): [#def226]
NetworkManager-1.53.1/src/libnm-platform/nm-netlink.c:925: error[uninitvar]: Uninitialized variable: tb
#  923|           return NL_SKIP;
#  924|   
#  925|->     if (tb[CTRL_ATTR_FAMILY_ID])
#  926|           *response_data = nla_get_u16(tb[CTRL_ATTR_FAMILY_ID]);
#  927|   

Error: CPPCHECK_WARNING (CWE-457): [#def227]
NetworkManager-1.53.1/src/libnm-platform/tests/test-nm-platform.c:362: error[uninitvar]: Uninitialized variable: a
#  360|       /* Both empty */
#  361|       g_assert(nmp_utils_bridge_normalized_vlans_equal(NULL, 0, NULL, 0));
#  362|->     g_assert(nmp_utils_bridge_normalized_vlans_equal(a, 0, b, 0));
#  363|       g_assert(nmp_utils_bridge_normalized_vlans_equal(a, 0, NULL, 0));
#  364|       g_assert(nmp_utils_bridge_normalized_vlans_equal(NULL, 0, b, 0));

Error: CPPCHECK_WARNING (CWE-457): [#def228]
NetworkManager-1.53.1/src/libnm-platform/tests/test-nm-platform.c:362: error[uninitvar]: Uninitialized variable: b
#  360|       /* Both empty */
#  361|       g_assert(nmp_utils_bridge_normalized_vlans_equal(NULL, 0, NULL, 0));
#  362|->     g_assert(nmp_utils_bridge_normalized_vlans_equal(a, 0, b, 0));
#  363|       g_assert(nmp_utils_bridge_normalized_vlans_equal(a, 0, NULL, 0));
#  364|       g_assert(nmp_utils_bridge_normalized_vlans_equal(NULL, 0, b, 0));

Error: CPPCHECK_WARNING (CWE-457): [#def229]
NetworkManager-1.53.1/src/libnm-platform/wifi/nm-wifi-utils-nl80211.c:489: error[uninitvar]: Uninitialized variable: rinfo
#  487|           && rinfo[NL80211_RATE_INFO_BITRATE] != NULL) {
#  488|           /* convert from nl80211's units of 100kbps to NM's kbps */
#  489|->         info->txrate       = nla_get_u16(rinfo[NL80211_RATE_INFO_BITRATE]) * 100;
#  490|           info->txrate_valid = TRUE;
#  491|       }

Error: CPPCHECK_WARNING (CWE-457): [#def230]
NetworkManager-1.53.1/src/libnm-platform/wpan/nm-wpan-utils.c:160: error[uninitvar]: Uninitialized variable: tb
#  158|           return NL_SKIP;
#  159|   
#  160|->     if (tb[NL802154_ATTR_PAN_ID])
#  161|           info->pan_id = le16toh(nla_get_u16(tb[NL802154_ATTR_PAN_ID]));
#  162|   

Error: CPPCHECK_WARNING (CWE-476): [#def231]
NetworkManager-1.53.1/src/libnm-std-aux/nm-std-aux.h:628: error[ctunullpointer]: Null pointer dereference: s1
#  626|   nm_streq(const char *s1, const char *s2)
#  627|   {
#  628|->     return strcmp(s1, s2) == 0;
#  629|   }
#  630|   

Error: CPPCHECK_WARNING (CWE-401): [#def232]
NetworkManager-1.53.1/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): [#def233]
NetworkManager-1.53.1/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): [#def234]
NetworkManager-1.53.1/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): [#def235]
NetworkManager-1.53.1/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): [#def236]
NetworkManager-1.53.1/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): [#def237]
NetworkManager-1.53.1/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): [#def238]
NetworkManager-1.53.1/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): [#def239]
NetworkManager-1.53.1/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: CPPCHECK_WARNING (CWE-401): [#def240]
NetworkManager-1.53.1/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): [#def241]
NetworkManager-1.53.1/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): [#def242]
NetworkManager-1.53.1/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): [#def243]
NetworkManager-1.53.1/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): [#def244]
NetworkManager-1.53.1/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);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-105.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameNetworkManager-1.53.1-1.fc43
store-results-to/tmp/tmp5c7_t8nq/NetworkManager-1.53.1-1.fc43.tar.xz
time-created2025-04-25 12:21:48
time-finished2025-04-25 12:43:27
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp5c7_t8nq/NetworkManager-1.53.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp5c7_t8nq/NetworkManager-1.53.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9