NetworkManager-1.46.0-2.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/docs/libnm/libnm-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def2]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/docs/libnm/libnm-scan.c:616:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'
Error: CPPCHECK_WARNING: [#def3]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/examples/C/glib/get-active-connections-gdbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/examples/C/glib/get-ap-info-libnm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.AccessPoint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.AgentManager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Checkpoint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Connection.Active.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.DHCP4Config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.DHCP6Config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Adsl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Bluetooth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Bond.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Bridge.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Dummy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Generic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Hsr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.IPTunnel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Infiniband.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Loopback.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Lowpan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Macsec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Macvlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Modem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.OvsBridge.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.OvsInterface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.OvsPort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def29]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Ppp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def30]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Statistics.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Team.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Tun.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Veth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Vlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Vrf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Vxlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.WiMax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.WifiP2P.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.WireGuard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Wired.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Wireless.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.Wpan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Device.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.DnsManager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.IP4Config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.IP6Config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.PPP.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def48]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.SecretAgent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def49]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Settings.Connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def50]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.Settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.VPN.Connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def52]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.VPN.Plugin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.WifiP2PPeer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/introspection/org.freedesktop.NetworkManager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-416): [#def55]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:116:28: warning[-Wanalyzer-use-after-free]: use after 'free' of 'node'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd-private.h:91:31: note: in expansion of macro 'C_LIST_INIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:344:22: note: in expansion of macro 'N_ACD_NULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:150:29: note: in definition of macro '_c_internal_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro '_c_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro '_c_internal_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:353:16: note: in expansion of macro '_c_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:768:17: note: in definition of macro 'C_DEFINE_DIRECT_CLEANUP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:107:37: note: in definition of macro 'c_list_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro 'c_list_for_each_entry_safe'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro 'c_list_for_each_entry_safe'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro 'c_list_for_each_entry_safe'
# 114| */
# 115| static inline _Bool c_list_is_linked(const CList *what) {
# 116|-> return what && what->next != what;
# 117| }
# 118|
Error: CLANG_WARNING: [#def56]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:146:23: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'where')
# 144| */
# 145| static inline void c_list_link_before(CList *where, CList *what) {
# 146|-> CList *prev = where->prev, *next = where;
# 147|
# 148| next->prev = what;
Error: CLANG_WARNING: [#def57]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:5: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:191:23: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'what')
# 189| */
# 190| static inline void c_list_unlink_stale(CList *what) {
# 191|-> CList *prev = what->prev, *next = what->next;
# 192|
# 193| next->prev = prev;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:194:20: warning[-Wanalyzer-null-dereference]: dereference of NULL 'prev'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd-private.h:91:31: note: in expansion of macro 'C_LIST_INIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:344:22: note: in expansion of macro 'N_ACD_NULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:150:29: note: in definition of macro '_c_internal_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro '_c_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro '_c_internal_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:353:16: note: in expansion of macro '_c_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:768:17: note: in definition of macro 'C_DEFINE_DIRECT_CLEANUP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_event_node_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:107:37: note: in definition of macro 'c_list_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro 'c_list_for_each_entry_safe'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:401:9: note: in expansion of macro 'c_list_for_each_entry_safe'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h: scope_hint: In function 'n_acd_event_node_free'
# 192|
# 193| next->prev = prev;
# 194|-> prev->next = next;
# 195| }
# 196|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c:400:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c: scope_hint: In function 'c_rbnode_unlink_stale'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux.h:43: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c:28: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:134:30: note: in expansion of macro '_c_internal_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro '_c_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro '_c_internal_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:327:17: note: in expansion of macro '_c_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c:1016:9: note: in expansion of macro 'c_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:150:29: note: in definition of macro '_c_internal_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:171:53: note: in expansion of macro '_c_boolean_expr_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:169:24: note: in expansion of macro '_c_internal_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-stdaux/src/c-stdaux-generic.h:327:17: note: in expansion of macro '_c_likely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c:1017:9: note: in expansion of macro 'c_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c:31: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c: scope_hint: In function 'c_rbnode_unlink_stale'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c: scope_hint: In function 'c_rbnode_unlink_stale'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-rbtree/src/c-rbtree.c: scope_hint: In function 'c_rbnode_unlink_stale'
# 398| * undefined behavior.
# 399| */
# 400|-> *(volatile CRBNode **)ptr = addr;
# 401| }
# 402|
Error: CLANG_WARNING: [#def60]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:109:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'existing_names'
# 107| /* Return the preferred name if it was unique */
# 108| if (preferred)
# 109|-> return g_strdup(preferred);
# 110|
# 111| /* Otherwise, find the next available unique connection name using the given
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c: scope_hint: In function 'nm_utils_qdiscs_from_tc_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1303:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:28: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:616:38: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1301:36: note: in expansion of macro 'NMP_OBJECT_CAST_QDISC'
# 1301| NMPlatformQdisc *qdisc = NMP_OBJECT_CAST_QDISC(q);
# 1302|
# 1303|-> qdisc->ifindex = ip_ifindex;
# 1304| qdisc->kind = nm_tc_qdisc_get_kind(s_qdisc);
# 1305|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c: scope_hint: In function 'nm_utils_tfilters_from_tc_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1378:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:617:38: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1376:38: note: in expansion of macro 'NMP_OBJECT_CAST_TFILTER'
# 1376| NMPlatformTfilter *tfilter = NMP_OBJECT_CAST_TFILTER(t);
# 1377|
# 1378|-> tfilter->ifindex = ip_ifindex;
# 1379| tfilter->kind = nm_tc_tfilter_get_kind(s_tfilter);
# 1380| tfilter->addr_family = AF_UNSPEC;
Error: CLANG_WARNING: [#def63]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1833:17: warning[core.NullDereference]: Array access (via field '__u6_addr32') results in a null pointer dereference
# 1831| if (!IS_IPv4) {
# 1832| /* Ignore link-local address. */
# 1833|-> if (IN6_IS_ADDR_LINKLOCAL(address->ax.address_ptr)) {
# 1834| if (!method)
# 1835| method = NM_SETTING_IP6_CONFIG_METHOD_LINK_LOCAL;
Error: CLANG_WARNING: [#def64]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1894:17: warning[core.NullDereference]: Array access (via field '__u6_addr32') results in a null pointer dereference
# 1892| if (!IS_IPv4) {
# 1893| /* Ignore link-local route. */
# 1894|-> if (IN6_IS_ADDR_LINKLOCAL(route->rx.network_ptr))
# 1895| continue;
# 1896| }
Error: CLANG_WARNING: [#def65]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/adsl/nm-atm-manager.c:243:23: warning[core.NullDereference]: Access to field 'udev_client' results in a dereference of a null pointer (loaded from variable 'priv')
# 241| NMAtmManagerPrivate *priv = NM_ATM_MANAGER_GET_PRIVATE(self);
# 242|
# 243|-> priv->udev_client = nm_udev_client_new(NM_MAKE_STRV("atm"), handle_uevent, self);
# 244| }
# 245|
Error: CLANG_WARNING: [#def66]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/adsl/nm-device-adsl.c:607:32: warning[core.NullDereference]: Access to field 'atm_index' results in a dereference of a null pointer
# 605| switch (prop_id) {
# 606| case PROP_ATM_INDEX:
# 607|-> g_value_set_int(value, NM_DEVICE_ADSL_GET_PRIVATE(object)->atm_index);
# 608| break;
# 609| default:
Error: CLANG_WARNING: [#def67]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/adsl/nm-device-adsl.c:621:55: warning[core.NullDereference]: Access to field 'atm_index' results in a dereference of a null pointer
# 619| case PROP_ATM_INDEX:
# 620| /* construct-only */
# 621|-> NM_DEVICE_ADSL_GET_PRIVATE(object)->atm_index = g_value_get_int(value);
# 622| break;
# 623| default:
Error: CLANG_WARNING: [#def68]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/bluetooth/nm-device-bt.c:153:10: warning[core.NullDereference]: Access to field 'capabilities' results in a dereference of a null pointer
# 151| }
# 152|
# 153|-> if (!NM_FLAGS_ALL(NM_DEVICE_BT_GET_PRIVATE(self)->capabilities, bt_type)) {
# 154| nm_utils_error_set_literal(error,
# 155| NM_UTILS_ERROR_CONNECTION_AVAILABLE_TEMPORARY,
Error: CLANG_WARNING: [#def69]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/bluetooth/nm-device-bt.c:485:38: warning[core.NullDereference]: Access to field 'stage1_modem_prepare_state' results in a dereference of a null pointer (loaded from variable 'priv')
# 483| }
# 484|
# 485|-> priv->stage1_modem_prepare_state = NM_DEVICE_STAGE_STATE_INIT;
# 486| nm_device_activate_schedule_stage1_device_prepare(device, FALSE);
# 487| }
Error: CLANG_WARNING: [#def70]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/bluetooth/nm-device-bt.c:756:38: warning[core.NullDereference]: Access to field 'connect_watch_link_idle_id' results in a dereference of a null pointer (loaded from variable 'priv')
# 754| int ifindex;
# 755|
# 756|-> priv->connect_watch_link_idle_id = 0;
# 757|
# 758| if (nm_device_get_state(NM_DEVICE(self)) <= NM_DEVICE_STATE_ACTIVATED) {
Error: CLANG_WARNING: [#def71]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-bond.c:775:18: warning[deadcode.DeadStores]: Although the value stored to 'cloned_mac' is used in the enclosing expression, the value is never actually read from 'cloned_mac'
# 773| if ((applied = nm_device_get_applied_connection(device))
# 774| && ((s_wired = nm_connection_get_setting_wired(applied)))
# 775|-> && ((cloned_mac = nm_setting_wired_get_cloned_mac_address(s_wired)))) {
# 776| /* When the last slave is released the bond MAC will be set to a random
# 777| * value by kernel; if we have set a cloned-mac-address, we need to
Error: CLANG_WARNING: [#def72]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-generic.c:205:9: warning[core.NullDereference]: Access to field 'type_description' results in a dereference of a null pointer
# 203| get_type_description(NMDevice *device)
# 204| {
# 205|-> if (NM_DEVICE_GENERIC_GET_PRIVATE(device)->type_description)
# 206| return NM_DEVICE_GENERIC_GET_PRIVATE(device)->type_description;
# 207| return NM_DEVICE_CLASS(nm_device_generic_parent_class)->get_type_description(device);
Error: CLANG_WARNING: [#def73]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-generic.c:221:32: warning[core.NullDereference]: Access to field 'type_description' results in a dereference of a null pointer (loaded from variable 'priv')
# 219| ifindex = nm_device_get_ip_ifindex(NM_DEVICE(self));
# 220| if (ifindex > 0) {
# 221|-> priv->type_description =
# 222| nm_platform_link_get_type_name(nm_device_get_platform(device), ifindex);
# 223| }
Error: CLANG_WARNING: [#def74]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-generic.c:400:34: warning[core.NullDereference]: Access to field 'has_device_handler' results in a dereference of a null pointer (loaded from variable 'priv')
# 398| case PROP_HAS_DEVICE_HANDLER:
# 399| /* construct-only */
# 400|-> priv->has_device_handler = g_value_get_boolean(value);
# 401| break;
# 402| default:
Error: CLANG_WARNING: [#def75]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-infiniband.c:54:9: warning[core.NullDereference]: Access to field 'is_partition' results in a dereference of a null pointer
# 52| guint32 caps = NM_DEVICE_CAP_CARRIER_DETECT;
# 53|
# 54|-> if (NM_DEVICE_INFINIBAND_GET_PRIVATE(device)->is_partition)
# 55| caps |= NM_DEVICE_CAP_IS_SOFTWARE;
# 56|
Error: CLANG_WARNING: [#def76]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-infiniband.c:334:36: warning[core.NullDereference]: Access to field 'is_partition' results in a dereference of a null pointer
# 332| switch (prop_id) {
# 333| case PROP_IS_PARTITION:
# 334|-> g_value_set_boolean(value, NM_DEVICE_INFINIBAND_GET_PRIVATE(object)->is_partition);
# 335| break;
# 336| default:
Error: CLANG_WARNING: [#def77]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-infiniband.c:347:64: warning[core.NullDereference]: Access to field 'is_partition' results in a dereference of a null pointer
# 345| switch (prop_id) {
# 346| case PROP_IS_PARTITION:
# 347|-> NM_DEVICE_INFINIBAND_GET_PRIVATE(object)->is_partition = g_value_get_boolean(value);
# 348| break;
# 349| default:
Error: CLANG_WARNING: [#def78]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ip-tunnel.c:1108:20: warning[core.NullDereference]: Access to field 'mode' results in a dereference of a null pointer (loaded from variable 'priv')
# 1106| switch (prop_id) {
# 1107| case PROP_MODE:
# 1108|-> priv->mode = g_value_get_uint(value);
# 1109| break;
# 1110| default:
Error: CLANG_WARNING: [#def79]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:119:29: warning[core.NullDereference]: Access to field 'parent_mtu_id' results in a dereference of a null pointer (loaded from variable 'priv')
# 117|
# 118| if (new_parent) {
# 119|-> priv->parent_mtu_id = g_signal_connect(new_parent,
# 120| "notify::" NM_DEVICE_MTU,
# 121| G_CALLBACK(parent_mtu_maybe_changed),
Error: CLANG_WARNING: [#def80]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:331:37: warning[core.NullDereference]: Dereference of null pointer
# 329| const char *setting_name;
# 330|
# 331|-> priv->supplicant.lnk_timeout_id = 0;
# 332|
# 333| req = nm_device_get_act_request(dev);
Error: CLANG_WARNING: [#def81]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macvlan.c:129:29: warning[core.NullDereference]: Access to field 'parent_mtu_id' results in a dereference of a null pointer (loaded from variable 'priv')
# 127|
# 128| if (new_parent) {
# 129|-> priv->parent_mtu_id = g_signal_connect(new_parent,
# 130| "notify::" NM_DEVICE_MTU,
# 131| G_CALLBACK(parent_mtu_maybe_changed),
Error: CLANG_WARNING: [#def82]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macvlan.c:451:25: warning[core.NullDereference]: Dereference of null pointer
# 449| switch (prop_id) {
# 450| case PROP_TAP:
# 451|-> priv->props.tap = g_value_get_boolean(value);
# 452| break;
# 453| default:
Error: CLANG_WARNING: [#def83]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-wireguard.c:1186:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'plf'
# 1184|
# 1185| if (i_good == 0)
# 1186|-> return;
# 1187|
# 1188| for (i = 0; i < i_good; i++) {
Error: CLANG_WARNING: [#def84]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-wireguard.c:1186:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'plpeer_flags'
# 1184|
# 1185| if (i_good == 0)
# 1186|-> return;
# 1187|
# 1188| for (i = 0; i < i_good; i++) {
Error: CLANG_WARNING: [#def85]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-wireguard.c:1186:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'plpeers'
# 1184|
# 1185| if (i_good == 0)
# 1186|-> return;
# 1187|
# 1188| for (i = 0; i < i_good; i++) {
Error: CLANG_WARNING: [#def86]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-wireguard.c:1464:13: warning[deadcode.DeadStores]: Although the value stored to 'setting_name' is used in the enclosing expression, the value is never actually read from 'setting_name'
# 1462|
# 1463| if (NM_IN_SET(config_mode, LINK_CONFIG_MODE_FULL)
# 1464|-> && (setting_name = nm_connection_need_secrets(connection, NULL))) {
# 1465| NMActRequest *req = nm_device_get_act_request(NM_DEVICE(self));
# 1466|
Error: CLANG_WARNING: [#def87]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-wireguard.c:1869:42: warning[core.NullDereference]: Access to field 'auto_default_route_refresh' results in a dereference of a null pointer (loaded from variable 'priv')
# 1867|
# 1868| if (state >= NM_DEVICE_STATE_CONFIG) {
# 1869|-> priv->auto_default_route_refresh = TRUE;
# 1870| link_config(NM_DEVICE_WIREGUARD(device), "reapply", LINK_CONFIG_MODE_REAPPLY, NULL);
# 1871| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c: scope_hint: In function 'process_lldp_neighbor'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:792:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'self'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:65:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:820:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'process_lldp_neighbor'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:65:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:820:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c: scope_hint: In function 'process_lldp_neighbor'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:820:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:68:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:820:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:68:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:820:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:68:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:820:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-lldp-listener.c:784:5: note: in expansion of macro 'g_return_if_fail'
# 790| }
# 791|
# 792|-> neigh_old = g_hash_table_lookup(self->lldp_neighbors, neigh);
# 793|
# 794| if (remove) {
Error: CLANG_WARNING: [#def89]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/ovs/nm-ovsdb.c:2131:13: warning[deadcode.DeadStores]: Value stored to 'changed' is never read
# 2129| nm_assert(nm_streq0(ovs_bridge->name, name));
# 2130|
# 2131|-> changed = nm_strdup_reset(&ovs_bridge->name, name);
# 2132| changed = nm_strdup_reset(&ovs_bridge->connection_uuid, connection_uuid);
# 2133| if (nm_strv_ptrarray_cmp(ovs_bridge->ports, ports) != 0) {
Error: CLANG_WARNING: [#def90]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/team/nm-device-team.c:183:29: warning[core.NullDereference]: Access to field 'config' results in a dereference of a null pointer
# 181| _get_config(NMDeviceTeam *self)
# 182| {
# 183|-> return nm_str_not_empty(NM_DEVICE_TEAM_GET_PRIVATE(self)->config);
# 184| }
# 185|
Error: CLANG_WARNING: [#def91]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/team/nm-device-team.c:218:30: warning[core.NullDereference]: Access to field 'teamd_read_timeout' results in a dereference of a null pointer (loaded from variable 'priv')
# 216| NMDeviceTeamPrivate *priv = NM_DEVICE_TEAM_GET_PRIVATE(self);
# 217|
# 218|-> priv->teamd_read_timeout = 0;
# 219| teamd_read_config(self);
# 220| return G_SOURCE_REMOVE;
Error: CLANG_WARNING: [#def92]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/team/nm-device-team.c:309:28: warning[core.NullDereference]: Access to field 'kill_in_progress' results in a dereference of a null pointer (loaded from variable 'priv')
# 307| NMDeviceTeamPrivate *priv = NM_DEVICE_TEAM_GET_PRIVATE(self);
# 308|
# 309|-> priv->kill_in_progress = FALSE;
# 310|
# 311| if (nm_device_get_state(NM_DEVICE(self)) != NM_DEVICE_STATE_PREPARE) {
Error: CLANG_WARNING: [#def93]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/team/nm-device-team.c:893:34: warning[core.NullDereference]: Access to field 'teamd_read_timeout' results in a dereference of a null pointer (loaded from variable 'priv')
# 891|
# 892| nm_clear_g_source(&priv->teamd_read_timeout);
# 893|-> priv->teamd_read_timeout = g_timeout_add_seconds(5, teamd_read_timeout_cb, self);
# 894|
# 895| _LOGI(LOGD_TEAM, "attached team port %s", port_iface);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/tests/test-lldp.c: scope_hint: In function ‘_test_recv_fixture_setup’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/tests/test-lldp.c:793:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/net/tun", 524290)’
# 791| nm_auto_close int fd = -1;
# 792|
# 793|-> fd = open("/dev/net/tun", O_RDWR | O_CLOEXEC);
# 794| if (fd == -1) {
# 795| g_test_skip("Unable to open /dev/net/tun");
Error: CLANG_WARNING: [#def95]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-iwd-p2p.c:313:12: warning[core.NullDereference]: Access to field 'enabled' results in a dereference of a null pointer
# 311| get_enabled(NMDevice *device)
# 312| {
# 313|-> return NM_DEVICE_IWD_P2P_GET_PRIVATE(device)->enabled;
# 314| }
# 315|
Error: CLANG_WARNING: [#def96]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-iwd.c:2444:35: warning[core.NullDereference]: Access to field 'wifi_secrets_id' results in a dereference of a null pointer (loaded from variable 'priv')
# 2442| wifi_secrets_cancel(self);
# 2443|
# 2444|-> priv->wifi_secrets_id =
# 2445| nm_act_request_get_secrets(req,
# 2446| TRUE,
Error: CLANG_WARNING: [#def97]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-iwd.c:2631:12: warning[core.NullDereference]: Access to field 'enabled' results in a dereference of a null pointer
# 2629| get_enabled(NMDevice *device)
# 2630| {
# 2631|-> return NM_DEVICE_IWD_GET_PRIVATE(device)->enabled;
# 2632| }
# 2633|
Error: CLANG_WARNING: [#def98]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-iwd.c:3865:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 3863| nm_assert(c_list_is_empty(&priv->aps_lst_head));
# 3864|
# 3865|-> g_clear_object(&priv->manager);
# 3866| }
# 3867|
Error: CLANG_WARNING: [#def99]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-olpc-mesh.c:220:10: warning[core.NullDereference]: Access to field 'companion' results in a dereference of a null pointer
# 218| NMDeviceOlpcMesh *self = NM_DEVICE_OLPC_MESH(device);
# 219|
# 220|-> if (!NM_DEVICE_OLPC_MESH_GET_PRIVATE(self)->companion) {
# 221| _LOGD(LOGD_WIFI, "not available because companion not found");
# 222| return FALSE;
Error: CLANG_WARNING: [#def100]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-olpc-mesh.c:358:18: warning[core.NullDereference]: Access to field 'companion' results in a dereference of a null pointer
# 356| NMDeviceOlpcMesh *self = NM_DEVICE_OLPC_MESH(user_data);
# 357|
# 358|-> if (other == NM_DEVICE_OLPC_MESH_GET_PRIVATE(self)->companion)
# 359| companion_cleanup(self);
# 360| }
Error: CLANG_WARNING: [#def101]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi-p2p.c:191:27: warning[core.NullDereference]: Access to field 'peer_missing_id' results in a dereference of a null pointer (loaded from variable 'priv')
# 189| _LOGW(LOGD_WIFI, "Peer requested in connection is missing for too long, failing connection.");
# 190|
# 191|-> priv->peer_missing_id = 0;
# 192|
# 193| nm_device_state_changed(device, NM_DEVICE_STATE_FAILED, NM_DEVICE_STATE_REASON_PEER_NOT_FOUND);
Error: CLANG_WARNING: [#def102]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi-p2p.c:1294:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 1292| NMDeviceWifiP2PPrivate *priv = NM_DEVICE_WIFI_P2P_GET_PRIVATE(object);
# 1293|
# 1294|-> g_clear_object(&priv->sup_mgr);
# 1295|
# 1296| supplicant_interfaces_release(self, FALSE);
Error: CLANG_WARNING: [#def103]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi.c:1330:13: warning[core.NullDereference]: Access to field 'scan_is_scanning' results in a dereference of a null pointer
# 1328| get_autoconnect_allowed(NMDevice *device)
# 1329| {
# 1330|-> return !NM_DEVICE_WIFI_GET_PRIVATE(NM_DEVICE_WIFI(device))->scan_is_scanning;
# 1331| }
# 1332|
Error: CLANG_WARNING: [#def104]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi.c:1515:35: warning[core.NullDereference]: Access to field 'scan_explicit_requested' results in a dereference of a null pointer (loaded from variable 'priv')
# 1513|
# 1514| _scan_request_ssids_track(priv, ssids);
# 1515|-> priv->scan_explicit_requested = TRUE;
# 1516| _scan_kickoff(self);
# 1517| g_dbus_method_invocation_return_value(context, NULL);
Error: CLANG_WARNING: [#def105]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi.c:2615:39: warning[core.NullDereference]: Access to field 'roam_supplicant_wait_source' results in a dereference of a null pointer (loaded from variable 'priv')
# 2613| * becomes ready */
# 2614| nm_clear_g_source_inst(&priv->roam_supplicant_wait_source);
# 2615|-> priv->roam_supplicant_wait_source = g_source_ref(nm_g_source_sentinel_get(0));
# 2616| return G_SOURCE_CONTINUE;
# 2617| }
Error: CLANG_WARNING: [#def106]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi.c:3075:30: warning[core.NullDereference]: Access to field 'wowlan_restore' results in a dereference of a null pointer (loaded from variable 'priv')
# 3073| wowl2 = _NM_SETTING_WIRELESS_WAKE_ON_WLAN_CAST(wowl);
# 3074| if (wowl2 == _NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE) {
# 3075|-> priv->wowlan_restore = wowl2;
# 3076| return TRUE;
# 3077| }
Error: CLANG_WARNING: [#def107]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi.c:3079:26: warning[core.NullDereference]: Access to field 'wowlan_restore' results in a dereference of a null pointer (loaded from variable 'priv')
# 3077| }
# 3078|
# 3079|-> priv->wowlan_restore =
# 3080| nm_platform_wifi_get_wake_on_wlan(NM_PLATFORM_GET, nm_device_get_ifindex(NM_DEVICE(self)));
# 3081|
Error: CLANG_WARNING: [#def108]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi.c:3576:12: warning[core.NullDereference]: Access to field 'enabled' results in a dereference of a null pointer
# 3574| get_enabled(NMDevice *device)
# 3575| {
# 3576|-> return NM_DEVICE_WIFI_GET_PRIVATE(device)->enabled;
# 3577| }
# 3578|
Error: CLANG_WARNING: [#def109]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-device-wifi.c:3733:28: warning[core.NullDereference]: Access to field 'capabilities' results in a dereference of a null pointer (loaded from variable 'priv')
# 3731| case PROP_CAPABILITIES:
# 3732| /* construct-only */
# 3733|-> priv->capabilities = g_value_get_uint(value);
# 3734| break;
# 3735| default:
Error: CLANG_WARNING: [#def110]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wifi/nm-wifi-factory.c:134:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'backend'
# 132| WITH_IWD ? " (iwd support enabled)" : "");
# 133| if (!g_ascii_strcasecmp(backend, "wpa_supplicant")) {
# 134|-> NMDevice *device;
# 135| _NMDeviceWifiCapabilities capabilities;
# 136|
Error: CLANG_WARNING: [#def111]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:157:24: warning[core.NullDereference]: Access to field 'stage1_state' results in a dereference of a null pointer (loaded from variable 'priv')
# 155| }
# 156|
# 157|-> priv->stage1_state = NM_DEVICE_STAGE_STATE_INIT;
# 158| nm_device_activate_schedule_stage1_device_prepare(device, FALSE);
# 159| }
Error: CLANG_WARNING: [#def112]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:188:19: warning[core.NullDereference]: Access to field 'iid' results in a dereference of a null pointer (loaded from variable 'priv')
# 186|
# 187| if (!IS_IPv4) {
# 188|-> priv->iid = iid ? *iid : ((NMUtilsIPv6IfaceId) NM_UTILS_IPV6_IFACE_ID_INIT);
# 189| nm_device_sysctl_ip_conf_set(device, AF_INET6, "disable_ipv6", "0");
# 190| }
Error: CLANG_WARNING: [#def113]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:400:47: warning[core.NullDereference]: Access to field 'modem' results in a dereference of a null pointer
# 398| return FALSE;
# 399|
# 400|-> if (!nm_modem_check_connection_compatible(NM_DEVICE_MODEM_GET_PRIVATE(device)->modem,
# 401| connection,
# 402| error ? &local : NULL)) {
Error: CLANG_WARNING: [#def114]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:520:31: warning[core.NullDereference]: Access to field 'modem' results in a dereference of a null pointer
# 518| nm_assert(callback);
# 519|
# 520|-> nm_modem_deactivate_async(NM_DEVICE_MODEM_GET_PRIVATE(self)->modem,
# 521| self,
# 522| cancellable,
Error: CLANG_WARNING: [#def115]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:672:17: warning[core.NullDereference]: Access to field 'modem' results in a dereference of a null pointer (loaded from variable 'priv')
# 670| g_return_if_fail(modem != NULL);
# 671|
# 672|-> priv->modem = nm_modem_claim(modem);
# 673|
# 674| g_signal_connect(modem, NM_MODEM_PPP_FAILED, G_CALLBACK(ppp_failed), self);
Error: CLANG_WARNING: [#def116]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:749:20: warning[core.NullDereference]: Access to field 'caps' results in a dereference of a null pointer (loaded from variable 'priv')
# 747| break;
# 748| case PROP_CAPABILITIES:
# 749|-> priv->caps = g_value_get_uint(value);
# 750| break;
# 751| case PROP_CURRENT_CAPABILITIES:
Error: CLANG_WARNING: [#def117]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:752:28: warning[core.NullDereference]: Access to field 'current_caps' results in a dereference of a null pointer (loaded from variable 'priv')
# 750| break;
# 751| case PROP_CURRENT_CAPABILITIES:
# 752|-> priv->current_caps = g_value_get_uint(value);
# 753| break;
# 754| case PROP_DEVICE_ID:
Error: CLANG_WARNING: [#def118]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-device-modem.c:756:25: warning[core.NullDereference]: Access to field 'device_id' results in a dereference of a null pointer (loaded from variable 'priv')
# 754| case PROP_DEVICE_ID:
# 755| /* construct-only */
# 756|-> priv->device_id = g_value_dup_string(value);
# 757| break;
# 758| default:
Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c: scope_hint: In function 'try_create_connect_properties'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:512:30: warning[-Wanalyzer-null-dereference]: dereference of NULL 'self'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:114:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'try_create_connect_properties'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:114:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c: scope_hint: In function 'try_create_connect_properties'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:119:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:133:35: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:119:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:119:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-broadband.c:587:9: note: in expansion of macro '_LOGD'
# 510| {
# 511| NMModemBroadbandPrivate *priv = NM_MODEM_BROADBAND_GET_PRIVATE(self);
# 512|-> ConnectContext *ctx = priv->ctx;
# 513|
# 514| if (MODEM_CAPS_3GPP(ctx->caps)) {
Error: CLANG_WARNING: [#def120]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-manager.c:289:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 287| priv = NM_MODEM_MANAGER_GET_PRIVATE(self);
# 288|
# 289|-> g_clear_object(&priv->modm.poke_cancellable);
# 290|
# 291| if (error) {
Error: CLANG_WARNING: [#def121]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-manager.c:423:28: warning[core.NullDereference]: Dereference of null pointer
# 421| NMModemManagerPrivate *priv = NM_MODEM_MANAGER_GET_PRIVATE(self);
# 422|
# 423|-> priv->modm.relaunch_id = 0;
# 424| modm_ensure_manager(self);
# 425| return G_SOURCE_REMOVE;
Error: CLANG_WARNING: [#def122]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem-manager.c:772:27: warning[core.NullDereference]: Access to field 'dbus_connection' results in a dereference of a null pointer (loaded from variable 'priv')
# 770| }
# 771|
# 772|-> priv->dbus_connection = connection;
# 773|
# 774| modm_ensure_manager(self);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem.c: scope_hint: In function 'port_speed_is_zero'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/wwan/nm-modem.c:728:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(port, 526594)'
# 726| }
# 727|
# 728|-> fd = open(port, O_RDWR | O_NONBLOCK | O_NOCTTY | O_CLOEXEC);
# 729| if (fd < 0)
# 730| return FALSE;
Error: CLANG_WARNING: [#def124]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c:289:28: warning[deadcode.DeadStores]: Value stored to 'priv' during its initialization is never read
# 287| nm_dhcp_client_set_effective_client_id(NMDhcpClient *self, GBytes *client_id)
# 288| {
# 289|-> NMDhcpClientPrivate *priv = NM_DHCP_CLIENT_GET_PRIVATE(self);
# 290| gs_free char *tmp_str = NULL;
# 291| gs_unref_bytes GBytes *client_id_to_free = NULL;
Error: CLANG_WARNING: [#def125]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c:618:12: warning[core.NullDereference]: Access to field 'address' results in a dereference of a null pointer
# 616| goto handle_no_acd;
# 617|
# 618|-> addr = NMP_OBJECT_CAST_IP4_ADDRESS(
# 619| nm_l3_config_data_get_first_obj(priv->l3cd_next, NMP_OBJECT_TYPE_IP4_ADDRESS, NULL))
# 620| ->address;
Error: CLANG_WARNING: [#def126]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c:1235:53: warning[core.NullDereference]: Access to field 'address' results in a dereference of a null pointer (loaded from variable 'address4')
# 1233|
# 1234| if (!nm_l3_config_data_lookup_address_4(committed_l3cd,
# 1235|-> address4->address,
# 1236| address4->plen,
# 1237| address4->peer_address))
Error: CLANG_WARNING: [#def127]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c:1591:15: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 1589| /* Validate and normalize the client-id/DUID. */
# 1590|
# 1591|-> bytes = nm_utils_hexstr2bin(str);
# 1592| if (!bytes || g_bytes_get_size(bytes) < 2) {
# 1593| /* Seems invalid. Ignore */
Error: GCC_ANALYZER_WARNING (CWE-688): [#def128]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c: scope_hint: In function 'config_init'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c:1867:32: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c:1866:32: note: in expansion of macro 'g_strdup'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-client.c: scope_hint: In function 'config_init'
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
# 1865|
# 1866| hostname_tmp = g_strdup(hostname);
# 1867|-> dot = strchr(hostname_tmp, '.');
# 1868| if (dot)
# 1869| *dot = '\0';
Error: CLANG_WARNING: [#def129]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-dhclient-utils.c:218:10: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'str')
# 216| str += NM_STRLEN(CLIENTID_TAG);
# 217|
# 218|-> if (!g_ascii_isspace(*str))
# 219| return NULL;
# 220| while (g_ascii_isspace(*str))
Error: CLANG_WARNING: [#def130]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-dhclient-utils.c:696:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'escaped_duid'
# 694| if (g_file_test(leasefile, G_FILE_TEST_EXISTS)) {
# 695| if (!g_file_get_contents(leasefile, &contents, &contents_len, error)) {
# 696|-> g_prefix_error(error, "failed to read lease file %s: ", leasefile);
# 697| return FALSE;
# 698| }
Error: CLANG_WARNING: [#def131]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-listener.c:151:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'iface'
# 149| pid = _nm_utils_ascii_str_to_int64(pid_str, 10, 0, G_MAXINT32, -1);
# 150| if (pid == -1) {
# 151|-> _LOGW("dhcp-event: couldn't convert PID '%s' to an integer", pid_str ?: "(null)");
# 152| goto out;
# 153| }
Error: CLANG_WARNING: [#def132]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-listener.c:155:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'pid_str'
# 153| }
# 154|
# 155|-> reason = get_option(options, "reason");
# 156| if (reason == NULL) {
# 157| _LOGW("dhcp-event: (pid %d) DHCP event didn't have a reason", pid);
Error: CLANG_WARNING: [#def133]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-nettools.c:885:9: warning[unix.Malloc]: Potential memory leak
# 883| n_dhcp4_client_lease_get_yiaddr(lease, &a_address);
# 884| if (a_address.s_addr == INADDR_ANY)
# 885|-> return;
# 886|
# 887| nm_str_buf_append(&sbuf, "# This is private data. Do not parse.\n");
Error: CLANG_WARNING: [#def134]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/nm-dhcp-utils.c:1176:20: warning[unix.Malloc]: Potential memory leak
# 1174| for (;;) {
# 1175| if (!nm_dhcp_lease_data_consume(domainp, n_domainp, &c, sizeof(c)))
# 1176|-> return NULL;
# 1177|
# 1178| switch (c & 0xC0) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
# 97| address = nmtst_l3_config_data_get_address_at_4(l3cd, 0);
# 98| g_assert(inet_pton(AF_INET, expected_addr, &tmp) > 0);
# 99|-> g_assert(address->address == tmp);
# 100| g_assert(address->peer_address == tmp);
# 101| g_assert_cmpint(address->plen, ==, 24);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:107:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:108:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
# 124| route = nmtst_l3_config_data_get_route_at_4(l3cd, 0);
# 125| g_assert(inet_pton(AF_INET, expected_route1_dest, &tmp) > 0);
# 126|-> g_assert(route->network == tmp);
# 127| g_assert(inet_pton(AF_INET, expected_route1_gw, &tmp) > 0);
# 128| g_assert(route->gateway == tmp);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:133:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:107:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:108:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
# 131|
# 132| route = nmtst_l3_config_data_get_route_at_4(l3cd, 1);
# 133|-> g_assert(route->network == nmtst_inet4_from_string(expected_route2_dest));
# 134| g_assert(route->gateway == nmtst_inet4_from_string(expected_route2_gw));
# 135| g_assert_cmpint(route->plen, ==, 32);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:139:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:139:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:107:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:108:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:125:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:126:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:127:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:128:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:133:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1748:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:134:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:139:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:139:5: note: in expansion of macro ‘g_assert’
# 137|
# 138| route = nmtst_l3_config_data_get_route_at_4(l3cd, 2);
# 139|-> g_assert(route->network == nmtst_inet4_from_string("0.0.0.0"));
# 140| g_assert(route->gateway == nmtst_inet4_from_string("192.168.1.1"));
# 141| g_assert_cmpint(route->plen, ==, 0);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘ip4_test_route’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:258:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:258:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:254:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:593:29: note: in definition of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:339:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ROUTE’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘ip4_test_route’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:257:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:257:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:258:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:258:5: note: in expansion of macro ‘g_assert’
# 256| route = nmtst_l3_config_data_get_route_at_4(l3cd, route_num);
# 257| g_assert(inet_pton(AF_INET, expected_dest, &tmp) > 0);
# 258|-> g_assert(route->network == tmp);
# 259| g_assert(inet_pton(AF_INET, expected_gw, &tmp) > 0);
# 260| g_assert(route->gateway == tmp);
Error: CLANG_WARNING: [#def140]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/nm-fake-ndisc.c:213:13: warning[core.NullDereference]: Access to field 'ras' results in a dereference of a null pointer
# 211| nm_fake_ndisc_done(NMFakeNDisc *self)
# 212| {
# 213|-> return !NM_FAKE_NDISC_GET_PRIVATE(self)->ras;
# 214| }
# 215|
Error: CLANG_WARNING: [#def141]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/nm-fake-ndisc.c:347:10: warning[core.NullDereference]: Access to field 'receive_ra_id' results in a dereference of a null pointer
# 345| nm_fake_ndisc_emit_new_ras(NMFakeNDisc *self)
# 346| {
# 347|-> if (!NM_FAKE_NDISC_GET_PRIVATE(self)->receive_ra_id)
# 348| start(NM_NDISC(self));
# 349| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/tests/test-ndisc-linux.c: scope_hint: In function ‘main’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/tests/test-ndisc-linux.c:81:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘main’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/tests/test-ndisc-linux.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:484:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:486:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:486:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:487:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:488:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:488:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:587:18: note: in expansion of macro ‘g_test_initialized’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:770:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:91:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘main’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/tests/test-ndisc-linux.c: scope_hint: In function ‘main’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/tests/test-ndisc-linux.c:15: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/tests/test-ndisc-linux.c: scope_hint: In function ‘main’
# 79| ndisc = nm_lndp_ndisc_new(&config);
# 80| if (!ndisc) {
# 81|-> g_print("Failed to create NMNDisc instance: %s\n", error->message);
# 82| g_error_free(error);
# 83| return EXIT_FAILURE;
Error: CLANG_WARNING: [#def143]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/tests/test-ndisc-linux.c:81:60: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
# 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: CLANG_WARNING: [#def144]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1364:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'strv'
# 1362| break;
# 1363| }
# 1364|-> }
# 1365|
# 1366| static void
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c: scope_hint: In function 'build_message'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:140:29: warning[-Wanalyzer-malloc-leak]: leak of 'audit_encode_nv_string(*field.name, str, 0)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:348:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:349:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:349:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:182:5: note: in expansion of macro 'g_return_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.h:18:43: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:182:22: note: in expansion of macro 'NM_IS_AUDIT_MANAGER'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:182:5: note: in expansion of macro 'g_return_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.h:18:43: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:182:22: note: in expansion of macro 'NM_IS_AUDIT_MANAGER'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro 'G_UNLIKELY'
# 138| nm_auto_free char *value = NULL;
# 139|
# 140|-> value = audit_encode_nv_string(field->name, str, 0);
# 141| if (value)
# 142| nm_str_buf_append(strbuf, value);
Error: COMPILER_WARNING (CWE-252): [#def146]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c: scope_hint: In function 'nm_audit_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-audit-manager.c:188:9: warning[-Wunused-result]: ignoring return value of 'audit_log_user_message' declared with attribute 'warn_unused_result'
# 188 | audit_log_user_message(priv->auditd_fd,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 189 | AUDIT_USYS_CONFIG,
# | ~~~~~~~~~~~~~~~~~~
# 190 | build_message(&strbuf, BACKEND_AUDITD, fields),
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 191 | NULL,
# | ~~~~~
# 192 | NULL,
# | ~~~~~
# 193 | NULL,
# | ~~~~~
# 194 | success);
# | ~~~~~~~~
# 186|
# 187| if (priv->auditd_fd >= 0) {
# 188|-> audit_log_user_message(priv->auditd_fd,
# 189| AUDIT_USYS_CONFIG,
# 190| build_message(&strbuf, BACKEND_AUDITD, fields),
Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c: scope_hint: In function 'read_entire_config'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:1336:33: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:1320:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:1321:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:1260:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:1260:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:1260:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-config.c:1260:5: note: in expansion of macro 'g_return_val_if_fail'
# 1334| run_confs = _get_config_dir_files(run_config_dir);
# 1335|
# 1336|-> for (i = 0; i < system_confs->len;) {
# 1337| const char *filename = system_confs->pdata[i];
# 1338|
Error: CLANG_WARNING: [#def148]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:676:9: warning[deadcode.DeadStores]: Value stored to 'print_data' is never read
# 674| break;
# 675| case CURLINFO_HEADER_OUT:
# 676|-> print_data = TRUE;
# 677| msg = "=> Send header: ";
# 678| return 0;
Error: CLANG_WARNING: [#def149]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:677:9: warning[deadcode.DeadStores]: Value stored to 'msg' is never read
# 675| case CURLINFO_HEADER_OUT:
# 676| print_data = TRUE;
# 677|-> msg = "=> Send header: ";
# 678| return 0;
# 679| default:
Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c: scope_hint: In function 'check_platform_config'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:996:50: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:19: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:994:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:994:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:8: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'check_platform_config'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:994:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:994:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'check_platform_config'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:994:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c: scope_hint: In function 'check_platform_config'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-connectivity.c:995:21: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
# 994| nmp_cache_iter_for_each (&iter, routes, &plobj) {
# 995| route = NMP_OBJECT_CAST_IP4_ROUTE(plobj);
# 996|-> if (nm_platform_route_scope_inv(route->scope_inv) == RT_SCOPE_UNIVERSE) {
# 997| found_global = TRUE;
# 998| break;
Error: CLANG_WARNING: [#def151]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-dbus-manager.c:1528:12: warning[core.NullDereference]: Access to field 'shutting_down' results in a dereference of a null pointer
# 1526| nm_dbus_manager_is_stopping(NMDBusManager *self)
# 1527| {
# 1528|-> return NM_DBUS_MANAGER_GET_PRIVATE(self)->shutting_down;
# 1529| }
# 1530|
Error: CLANG_WARNING: [#def152]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-checkpoint-manager.c:8: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-checkpoint-manager.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-checkpoint.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-dbus-object.h:103:12: warning[core.NullDereference]: Dereference of null pointer
# 101| nm_assert(NM_IS_DBUS_OBJECT(obj));
# 102|
# 103|-> return obj->internal.bus_manager;
# 104| }
# 105|
Error: CLANG_WARNING: [#def153]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-dispatcher.c:660:32: warning[deadcode.DeadStores]: Value stored to 'connectivity_state_string' during its initialization is never read
# 658| gboolean is_action2)
# 659| {
# 660|-> const char *connectivity_state_string = "UNKNOWN";
# 661| GVariant *connection_dict;
# 662| GVariantBuilder connection_props;
Error: CLANG_WARNING: [#def154]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-firewalld-manager.c:584:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 582| priv = NM_FIREWALLD_MANAGER_GET_PRIVATE(self);
# 583|
# 584|-> g_clear_object(&priv->get_name_owner_cancellable);
# 585|
# 586| name_owner_changed(self, name_owner);
Error: CLANG_WARNING: [#def155]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-ip-config.c:225:21: warning[core.NullDereference]: Access to field 'l3cfg' results in a dereference of a null pointer (loaded from variable 'priv')
# 223| ptr = g_value_get_pointer(value);
# 224| nm_assert(NM_IS_L3CFG(ptr));
# 225|-> priv->l3cfg = g_object_ref(ptr);
# 226| break;
# 227| default:
Error: CLANG_WARNING: [#def156]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-keep-alive.c:123:12: warning[core.NullDereference]: Access to field 'alive' results in a dereference of a null pointer
# 121| nm_keep_alive_is_alive(NMKeepAlive *self)
# 122| {
# 123|-> return NM_KEEP_ALIVE_GET_PRIVATE(self)->alive;
# 124| }
# 125|
Error: CLANG_WARNING: [#def157]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-keep-alive.c:480:16: warning[core.NullDereference]: Access to field 'owner' results in a dereference of a null pointer
# 478| NMKeepAlive *self = NM_KEEP_ALIVE(object);
# 479|
# 480|-> nm_assert(!NM_KEEP_ALIVE_GET_PRIVATE(self)->owner);
# 481|
# 482| /* disarm also happens to free all resources. */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function '_l3_config_data_add_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:1105:78: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pl_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:5: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3030:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_l3_config_data_add_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3030:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3030:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_l3_config_data_add_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3030:9: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function '_l3_config_data_add_obj'
# 1103| r = obj_new ? NMP_OBJECT_CAST_IP_ROUTE(obj_new) : (NMPlatformIPRoute *) pl_new;
# 1104|
# 1105|-> if (nm_platform_route_type_is_nodev(nm_platform_route_type_uncoerce(r->type_coerced))) {
# 1106| /* such routes don't have a device/next-hop. We track them without ifindex. */
# 1107| ifindex = 0;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:1161:60: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3053:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_l3_config_data_add_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3053:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3053:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_l3_config_data_add_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3053:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function '_l3_config_data_add_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function '_l3_config_data_add_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:969:6: note: in expansion of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:1145:13: note: in expansion of macro 'NM_FLAGS_HAS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:601:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:1156:58: note: in expansion of macro 'NMP_OBJECT_CAST_IP_ADDRESS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:601:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:1161:25: note: in expansion of macro 'NMP_OBJECT_CAST_IP_ADDRESS'
# 1159| obj_new = nmp_object_stackinit_obj(&obj_new_stackinit, obj_new);
# 1160| obj_new_stackinit.ip_address.timestamp =
# 1161|-> NMP_OBJECT_CAST_IP_ADDRESS(obj_old)->timestamp;
# 1162| obj_new_stackinit.ip_address.lifetime =
# 1163| NMP_OBJECT_CAST_IP_ADDRESS(obj_old)->lifetime;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3262:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:601:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3238:48: note: in expansion of macro 'NMP_OBJECT_CAST_IP_ADDRESS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3260:13: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3260:13: note: in expansion of macro 'nm_assert'
# 3260| nm_assert(IS_IPv4 || hook_result.ip4acd_not_ready == NM_OPTION_BOOL_DEFAULT);
# 3261|
# 3262|-> if (a_src->ifindex != self->ifindex) {
# 3263| _ensure_a();
# 3264| a.ax.ifindex = self->ifindex;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3313:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3285:13: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:609:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3289:51: note: in expansion of macro 'NMP_OBJECT_CAST_IP_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 3311| nm_assert(hook_result.ip4acd_not_ready == NM_OPTION_BOOL_DEFAULT);
# 3312|
# 3313|-> if (r_src->ifindex != self->ifindex) {
# 3314| _ensure_r();
# 3315| r.rx.ifindex = self->ifindex;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3371:32: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c:3234:9: note: in expansion of macro 'nm_l3_config_data_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.c: scope_hint: In function 'nm_l3_config_data_merge'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro 'NM_FLAGS_ANY'
# 3369|
# 3370| if (!NM_FLAGS_ANY(self->flags, has_dns_priority_flag)
# 3371|-> && NM_FLAGS_ANY(src->flags, has_dns_priority_flag)) {
# 3372| int p = src->dns_priority_x[IS_IPv4];
# 3373|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def163]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:293:39: warning[-Wanalyzer-null-dereference]: dereference of NULL 'addr_without_acd_info'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c: scope_hint: In function '_ipv4ll_platform_find_addr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:5: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:3: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_ipv4ll_platform_find_addr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_ipv4ll_platform_find_addr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:678:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c: scope_hint: In function '_ipv4ll_platform_find_addr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:679:16: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ADDRESS'
# 291| nm_assert(a);
# 292|
# 293|-> return nm_ip4_addr_is_link_local(a->address) && a->plen == ADDR_IPV4LL_PREFIX_LEN
# 294| && a->address == a->peer_address;
# 295| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def164]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c: scope_hint: In function '_l3cd_config_get_addr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:360:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.h:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c: scope_hint: In function '_l3cd_config_get_addr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_l3cd_config_get_addr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1251:13: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1275:5: note: in expansion of macro '_nm_platform_dedup_multi_iter_next'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:274:10: note: in expansion of macro 'nm_platform_dedup_multi_iter_next_ip4_address'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1251:13: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1275:5: note: in expansion of macro '_nm_platform_dedup_multi_iter_next'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:274:10: note: in expansion of macro 'nm_platform_dedup_multi_iter_next_ip4_address'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1251:13: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1275:5: note: in expansion of macro '_nm_platform_dedup_multi_iter_next'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:274:10: note: in expansion of macro 'nm_platform_dedup_multi_iter_next_ip4_address'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:593:29: note: in definition of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1275:5: note: in expansion of macro '_nm_platform_dedup_multi_iter_next'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:274:10: note: in expansion of macro 'nm_platform_dedup_multi_iter_next_ip4_address'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1253:29: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1275:5: note: in expansion of macro '_nm_platform_dedup_multi_iter_next'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:274:10: note: in expansion of macro 'nm_platform_dedup_multi_iter_next_ip4_address'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:359:5: note: in expansion of macro 'nm_l3_config_data_iter_ip4_address_for_each'
# 358|
# 359| nm_l3_config_data_iter_ip4_address_for_each (&iter, l3cd, &pladdr) {
# 360|-> const in_addr_t addr = pladdr->address;
# 361|
# 362| nm_assert(_ip4_address_is_link_local(pladdr));
Error: CLANG_WARNING: [#def165]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv4ll.c:802:15: warning[deadcode.DeadStores]: Value stored to 'timeout_msec' during its initialization is never read
# 800|
# 801| if (self->reg_changed) {
# 802|-> guint timeout_msec = self->reg_timeout_msec;
# 803|
# 804| self->reg_changed = FALSE;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:269:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pladdr_tentative'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c: scope_hint: In function '_pladdr_find_ll'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:168:49: note: in definition of macro 'NM_PASTE_ARGS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro 'NM_PASTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:958:14: note: in expansion of macro 'NM_UNIQ_T'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:969:27: note: in expansion of macro '_NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:343:10: note: in expansion of macro 'NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:5: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:350:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_pladdr_find_ll'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:350:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:350:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function '_pladdr_find_ll'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:350:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c: scope_hint: In function '_pladdr_find_ll'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:607:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-ipv6ll.c:351:46: note: in expansion of macro 'NMP_OBJECT_CAST_IP6_ADDRESS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:971:39: note: in definition of macro 'NM_FLAGS_ANY'
# 267| nm_assert(IN6_IS_ADDR_LINKLOCAL(&addr->address));
# 268|
# 269|-> return NM_FLAGS_ANY(addr->n_ifa_flags, IFA_F_DADFAILED | IFA_F_DEPRECATED);
# 270| }
# 271|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def167]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c: scope_hint: In function '_l3cfg_update_combined_config'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3935:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3911:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3913:5: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1357:13: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3931:27: note: in expansion of macro 'nm_malloc_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3931:27: note: in expansion of macro 'nm_malloc_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3931:27: note: in expansion of macro 'nm_malloc_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2014:40: note: in definition of macro 'nm_g_array_index'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.c:3935:34: note: in expansion of macro '_l3_config_datas_at'
# 3933| &l3_config_datas_free);
# 3934| for (i = 0; i < l3_config_datas_len; i++)
# 3935|-> l3_config_datas_arr[i] = _l3_config_datas_at(self->priv.p->l3_config_datas, i);
# 3936|
# 3937| if (l3_config_datas_len > 1) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c: scope_hint: In function '_ecmp_track_sort_lst_cmp'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:202:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3cfg.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:199:45: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:200:45: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:200:45: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 200| const NMPlatformIP4Route *route_b = NMP_OBJECT_CAST_IP4_ROUTE(track_obj_b->obj);
# 201|
# 202|-> nm_assert(route_a->ifindex > 0);
# 203| nm_assert(route_a->n_nexthops <= 1);
# 204| nm_assert(route_b->ifindex > 0);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:204:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:199:45: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:199:45: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:200:45: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 202| nm_assert(route_a->ifindex > 0);
# 203| nm_assert(route_a->n_nexthops <= 1);
# 204|-> nm_assert(route_b->ifindex > 0);
# 205| nm_assert(route_b->n_nexthops <= 1);
# 206|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c: scope_hint: In function '_ecmp_track_init_merged_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:278:29: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:272:5: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:272:5: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:274:44: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
# 276|
# 277| *nh = (NMPlatformIP4RtNextHop){
# 278|-> .ifindex = r->ifindex,
# 279| .gateway = r->gateway,
# 280| .weight = r->weight,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c: scope_hint: In function 'nm_netns_ip_route_ecmp_register'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:690:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:612:40: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-netns.c:688:13: note: in expansion of macro 'NMP_OBJECT_CAST_IP4_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 688| route = NMP_OBJECT_CAST_IP4_ROUTE(obj);
# 689|
# 690|-> nm_assert(route->ifindex > 0);
# 691| nm_assert(route->ifindex == nm_l3cfg_get_ifindex(l3cfg));
# 692| nm_assert(route->n_nexthops <= 1);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c: scope_hint: In function 'link_add_pre'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:250:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:239:15: note: in expansion of macro 'nm_g_array_append_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-private.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:599:35: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:245:12: note: in expansion of macro 'NMP_OBJECT_CAST_LINK'
# 248| ifindex > 0 ? g_strdup_printf("fe80::fa1e:%0x:%0x", ifindex / 256, ifindex % 256) : NULL;
# 249|
# 250|-> link->ifindex = name ? ifindex : 0;
# 251| link->type = type;
# 252| link->kind = g_intern_string(nm_link_type_to_string(type));
Error: CLANG_WARNING: [#def173]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:435:15: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 433| device = link_add_pre(platform, name, NM_LINK_TYPE_VLAN, NULL, 0, 0);
# 434|
# 435|-> ifindex = NMP_OBJECT_CAST_LINK(device->obj)->ifindex;
# 436|
# 437| if (prepare_fcn)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c: scope_hint: In function 'ipx_address_delete'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1092:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:237:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:239:15: note: in expansion of macro 'nm_g_array_append_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:599:35: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:245:12: note: in expansion of macro 'NMP_OBJECT_CAST_LINK'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:599:35: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:245:12: note: in expansion of macro 'NMP_OBJECT_CAST_LINK'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:273:9: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:273:9: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-test-utils-core.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:20: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:79:1: note: in expansion of macro 'NM_AUTO_DEFINE_FCN_VOID0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c: scope_hint: In function 'ipx_address_delete'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:331:9: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:331:9: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:333:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:333:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:378:9: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:194:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:391:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:650:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:650:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:568:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:570:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:570:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c: scope_hint: In function 'ipx_address_delete'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1066:5: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'ipx_address_delete'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'ipx_address_delete'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c: scope_hint: In function 'ipx_address_delete'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1070:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:607:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1089:51: note: in expansion of macro 'NMP_OBJECT_CAST_IP6_ADDRESS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:607:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1089:51: note: in expansion of macro 'NMP_OBJECT_CAST_IP6_ADDRESS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1091:13: note: in expansion of macro 'g_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1091:13: note: in expansion of macro 'g_assert'
# 1090|
# 1091| g_assert(!peer_addr);
# 1092|-> if (address->ifindex != ifindex
# 1093| || (addr && !IN6_ARE_ADDR_EQUAL(&address->address, addr))
# 1094| || (plen && address->plen != *plen))
Error: CLANG_WARNING: [#def175]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/nm-fake-platform.c:1144:20: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 1142| NMP_OBJECT_TYPE_IP6_ROUTE));
# 1143| g_assert(ifindex == -1);
# 1144|-> ifindex = NMP_OBJECT_CAST_IP_ROUTE(obj)->ifindex;
# 1145| obj_type = NMP_OBJECT_GET_TYPE(obj);
# 1146| } else {
Error: CLANG_WARNING: [#def176]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-common.c:170:13: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 168| g_assert(ifindex <= 0 || a->ifindex == ifindex);
# 169|
# 170|-> if (memcmp(addr, a->address_ptr, nm_utils_addr_family_to_size(addr_family)) != 0)
# 171| continue;
# 172|
Error: CLANG_WARNING: [#def177]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-common.c:260:21: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 258| const NMPlatformIPAddress *a = NMP_OBJECT_CAST_IP_ADDRESS(plat_addrs->pdata[j]);
# 259|
# 260|-> if (memcmp(&addr_bin->addr,
# 261| a->address_ptr,
# 262| nm_utils_addr_family_to_size(addr_family))
Error: CLANG_WARNING: [#def178]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-common.c:601:13: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 599| c = 0;
# 600| nmp_cache_iter_for_each (&iter, nm_platform_lookup(platform, &lookup), &o) {
# 601|-> if (NMP_OBJECT_CAST_IP4_ROUTE(o)->ifindex != ifindex && ifindex > 0)
# 602| continue;
# 603| if (!r)
Error: CLANG_WARNING: [#def179]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-common.c:700:13: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 698| c = 0;
# 699| nmp_cache_iter_for_each (&iter, nm_platform_lookup(platform, &lookup), &o) {
# 700|-> if (NMP_OBJECT_CAST_IP6_ROUTE(o)->ifindex != ifindex && ifindex > 0)
# 701| continue;
# 702| if (!r)
Error: CLANG_WARNING: [#def180]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-common.c:1289:9: warning[deadcode.DeadStores]: Value stored to 'normalized' is never read
# 1287| arr2 = nm_platform_lookup_clone(platform2, &lookup, NULL, NULL) ?: g_ptr_array_new();
# 1288|
# 1289|-> normalized = _assert_platform_normalize_all(arr1);
# 1290| normalized = _assert_platform_normalize_all(arr2);
# 1291|
Error: CLANG_WARNING: [#def181]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-nmp-object.c:217:53: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 215| g_assert(NMP_OBJECT_IS_VALID(obj));
# 216|
# 217|-> obj_prev = nmp_cache_lookup_link(cache, NMP_OBJECT_CAST_LINK(obj)->ifindex);
# 218| obj_new_expected = nmp_object_clone(obj, FALSE);
# 219| if (obj_prev && obj_prev->_link.udev.device)
Error: CLANG_WARNING: [#def182]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-route.c:1066:13: warning[core.NullDereference]: Access to field 'priority' results in a dereference of a null pointer
# 1064| head_entry = nm_platform_lookup(platform, &lookup);
# 1065| nmp_cache_iter_for_each (&iter, head_entry, &o) {
# 1066|-> if (NMP_OBJECT_CAST_ROUTING_RULE(o)->priority != priority)
# 1067| continue;
# 1068| g_assert(!obj);
Error: CLANG_WARNING: [#def183]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-route.c:1471:42: warning[core.NullDereference]: Dereference of null pointer
# 1469| {
# 1470| const NMPlatformRoutingRule *rr = NMP_OBJECT_CAST_ROUTING_RULE(obj);
# 1471|-> NMPlatformRoutingRule rr_co = *NMP_OBJECT_CAST_ROUTING_RULE(obj_comp);
# 1472|
# 1473| switch (op_type) {
Error: CLANG_WARNING: [#def184]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-route.c:2253:13: warning[deadcode.DeadStores]: Value stored to 'ifindex' is never read
# 2251|
# 2252| if (NM_IN_STRSET(route_type, "blackhole")) {
# 2253|-> ifindex = 0;
# 2254| ifname = NULL;
# 2255| }
Error: CLANG_WARNING: [#def185]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-route.c:2332:13: warning[deadcode.DeadStores]: Value stored to 'ifindex' is never read
# 2330|
# 2331| ifname = NULL;
# 2332|-> ifindex = 0;
# 2333| }
# 2334|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:3: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c: scope_hint: In function ‘test_qdisc1’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:68:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:61:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:63:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:8: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:616:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:67:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
# 66| obj = plat->pdata[0];
# 67| qdisc = NMP_OBJECT_CAST_QDISC(obj);
# 68|-> g_assert_cmpint(qdisc->parent, ==, TC_H_ROOT);
# 69| g_assert_cmpstr(qdisc->kind, ==, "fq_codel");
# 70|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:73:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:73:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:61:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:63:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:616:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:67:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:616:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:67:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:616:38: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:72:13: note: in expansion of macro ‘NMP_OBJECT_CAST_QDISC’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:73:5: note: in expansion of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/platform/tests/test-tc.c:73:5: note: in expansion of macro ‘g_assert_cmpint’
# 71| obj = plat->pdata[1];
# 72| qdisc = NMP_OBJECT_CAST_QDISC(obj);
# 73|-> g_assert_cmpint(qdisc->parent, ==, TC_H_INGRESS);
# 74| g_assert_cmpstr(qdisc->kind, ==, "ingress");
# 75| }
Error: CLANG_WARNING: [#def188]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ppp/nm-ppp-manager.c:1305:28: warning[core.NullDereference]: Access to field 'parent_iface' results in a dereference of a null pointer (loaded from variable 'priv')
# 1303| case PROP_PARENT_IFACE:
# 1304| /* construct-only */
# 1305|-> priv->parent_iface = g_value_dup_string(value);
# 1306| break;
# 1307| default:
Error: CLANG_WARNING: [#def189]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-agent-manager.c:705:16: warning[core.NullDereference]: Access to field 'session_monitor' results in a dereference of a null pointer
# 703|
# 704| /* Prefer agents in active sessions */
# 705|-> sm = NM_AGENT_MANAGER_GET_PRIVATE(req->self)->session_monitor;
# 706| a_active = nm_session_monitor_session_exists(sm, nm_secret_agent_get_owner_uid(a), TRUE);
# 707| b_active = nm_session_monitor_session_exists(sm, nm_secret_agent_get_owner_uid(b), TRUE);
Error: GCC_ANALYZER_WARNING (CWE-835): [#def190]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-utils.c: scope_hint: In function 'nm_sett_util_storage_by_uuid_head_destroy'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-utils.c:72:20: warning[-Wanalyzer-infinite-loop]: infinite loop
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-utils.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-utils.c:8: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-utils.c: scope_hint: In function 'nm_sett_util_storage_by_uuid_head_destroy'
# 70| CList *iter;
# 71|
# 72|-> while ((iter = c_list_first(&sbuh->_storage_by_uuid_lst_head)))
# 73| c_list_unlink(iter);
# 74| g_free(sbuh);
Error: CPPCHECK_WARNING: [#def191]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nmdbus-ifcfg-rh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def192]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c: scope_hint: In function '_load_file'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:186:9: warning[-Wanalyzer-null-argument]: use of NULL 'filename' where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:16: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:107:37: note: in definition of macro 'c_list_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:509:9: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:509:9: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c: scope_hint: In function '_load_file'
/usr/include/glib-2.0/glib/gstdio.h:27: included_from: Included from here.
/usr/include/glib-2.0/glib-unix.h:37: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:16: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:8: included_from: Included from here.
/usr/include/sys/stat.h:205:12: note: argument 1 of 'stat' must be non-null
# 184| struct stat st;
# 185|
# 186|-> if (stat(filename, &st) != 0) {
# 187| int errsv = errno;
# 188|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def193]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c: scope_hint: In function 'delete_connection'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:750:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of 'unlink' must be non-null
# 748| int errsv;
# 749|
# 750|-> if (unlink(files[i]) == 0) {
# 751| any_deleted = TRUE;
# 752| continue;
Error: CLANG_WARNING: [#def194]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:863:9: warning[core.NullDereference]: Access to field 'unmanaged_specs' results in a dereference of a null pointer
# 861| {
# 862| return _unhandled_specs_from_hashtable(
# 863|-> NMS_IFCFG_RH_PLUGIN_GET_PRIVATE(plugin)->unmanaged_specs);
# 864| }
# 865|
Error: CLANG_WARNING: [#def195]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-plugin.c:870:9: warning[core.NullDereference]: Access to field 'unrecognized_specs' results in a dereference of a null pointer
# 868| {
# 869| return _unhandled_specs_from_hashtable(
# 870|-> NMS_IFCFG_RH_PLUGIN_GET_PRIVATE(plugin)->unrecognized_specs);
# 871| }
# 872|
Error: CLANG_WARNING: [#def196]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:1152:9: warning[deadcode.DeadStores]: Value stored to 'p_info' is never read
# 1150| }
# 1151|
# 1152|-> p_info = &parse_infos[PARSE_LINE_ATTR_ROUTE_TYPE];
# 1153| p_data = &parse_datas[PARSE_LINE_ATTR_ROUTE_TYPE];
# 1154| if (!p_data->has
Error: CLANG_WARNING: [#def197]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:5547:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'value'
# 5545|
# 5546| if (!_nm_setting_bond_validate_option(key, value, NULL)) {
# 5547|-> PARSE_WARNING("invalid bonding option '%s' = %s", key, value);
# 5548| return;
# 5549| }
Error: CLANG_WARNING: [#def198]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1711:16: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1709| u32 = nm_setting_bridge_get_forward_delay(s_bridge);
# 1710| if (u32
# 1711|-> != get_setting_default_checked_uint(NM_BRIDGE_FORWARD_DELAY_DEF,
# 1712| s_bridge,
# 1713| NM_SETTING_BRIDGE_FORWARD_DELAY))
Error: CLANG_WARNING: [#def199]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1720:16: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1718| u32 = nm_setting_bridge_get_hello_time(s_bridge);
# 1719| if (u32
# 1720|-> != get_setting_default_checked_uint(NM_BRIDGE_HELLO_TIME_DEF,
# 1721| s_bridge,
# 1722| NM_SETTING_BRIDGE_HELLO_TIME)) {
Error: CLANG_WARNING: [#def200]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1729:16: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1727| u32 = nm_setting_bridge_get_max_age(s_bridge);
# 1728| if (u32
# 1729|-> != get_setting_default_checked_uint(NM_BRIDGE_MAX_AGE_DEF,
# 1730| s_bridge,
# 1731| NM_SETTING_BRIDGE_MAX_AGE)) {
Error: CLANG_WARNING: [#def201]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1739:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1737| u = nm_setting_bridge_get_ageing_time(s_bridge);
# 1738| if (u
# 1739|-> != get_setting_default_checked_uint(NM_BRIDGE_AGEING_TIME_DEF,
# 1740| s_bridge,
# 1741| NM_SETTING_BRIDGE_AGEING_TIME)) {
Error: CLANG_WARNING: [#def202]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1754:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1752| u32 = nm_setting_bridge_get_group_forward_mask(s_bridge);
# 1753| if (u32
# 1754|-> != get_setting_default_checked_uint(0, s_bridge, NM_SETTING_BRIDGE_GROUP_FORWARD_MASK)) {
# 1755| nm_gstring_add_space_delimiter(opts);
# 1756| g_string_append_printf(opts, "group_fwd_mask=%u", u32);
Error: CLANG_WARNING: [#def203]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1761:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1759| u32 = nm_setting_bridge_get_multicast_hash_max(s_bridge);
# 1760| if (u32
# 1761|-> != get_setting_default_checked_uint(NM_BRIDGE_MULTICAST_HASH_MAX_DEF,
# 1762| s_bridge,
# 1763| NM_SETTING_BRIDGE_MULTICAST_HASH_MAX)) {
Error: CLANG_WARNING: [#def204]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1770:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1768| u32 = nm_setting_bridge_get_multicast_last_member_count(s_bridge);
# 1769| if (u32
# 1770|-> != get_setting_default_checked_uint(NM_BRIDGE_MULTICAST_LAST_MEMBER_COUNT_DEF,
# 1771| s_bridge,
# 1772| NM_SETTING_BRIDGE_MULTICAST_LAST_MEMBER_COUNT)) {
Error: CLANG_WARNING: [#def205]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1779:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1777| u64 = nm_setting_bridge_get_multicast_last_member_interval(s_bridge);
# 1778| if (u64
# 1779|-> != get_setting_default_checked_uint64(NM_BRIDGE_MULTICAST_LAST_MEMBER_INTERVAL_DEF,
# 1780| s_bridge,
# 1781| NM_SETTING_BRIDGE_MULTICAST_LAST_MEMBER_INTERVAL)) {
Error: CLANG_WARNING: [#def206]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1788:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1786| u64 = nm_setting_bridge_get_multicast_membership_interval(s_bridge);
# 1787| if (u64
# 1788|-> != get_setting_default_checked_uint64(NM_BRIDGE_MULTICAST_MEMBERSHIP_INTERVAL_DEF,
# 1789| s_bridge,
# 1790| NM_SETTING_BRIDGE_MULTICAST_MEMBERSHIP_INTERVAL)) {
Error: CLANG_WARNING: [#def207]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1797:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1795| b = nm_setting_bridge_get_multicast_querier(s_bridge);
# 1796| if (b
# 1797|-> != get_setting_default_checked_boolean(NM_BRIDGE_MULTICAST_QUERIER_DEF,
# 1798| s_bridge,
# 1799| NM_SETTING_BRIDGE_MULTICAST_QUERIER)) {
Error: CLANG_WARNING: [#def208]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1806:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1804| u64 = nm_setting_bridge_get_multicast_querier_interval(s_bridge);
# 1805| if (u64
# 1806|-> != get_setting_default_checked_uint64(NM_BRIDGE_MULTICAST_QUERIER_INTERVAL_DEF,
# 1807| s_bridge,
# 1808| NM_SETTING_BRIDGE_MULTICAST_QUERIER_INTERVAL)) {
Error: CLANG_WARNING: [#def209]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1815:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1813| u64 = nm_setting_bridge_get_multicast_query_interval(s_bridge);
# 1814| if (u64
# 1815|-> != get_setting_default_checked_uint64(NM_BRIDGE_MULTICAST_QUERY_INTERVAL_DEF,
# 1816| s_bridge,
# 1817| NM_SETTING_BRIDGE_MULTICAST_QUERY_INTERVAL)) {
Error: CLANG_WARNING: [#def210]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1824:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1822| u64 = nm_setting_bridge_get_multicast_query_response_interval(s_bridge);
# 1823| if (u64
# 1824|-> != get_setting_default_checked_uint64(
# 1825| NM_BRIDGE_MULTICAST_QUERY_RESPONSE_INTERVAL_DEF,
# 1826| s_bridge,
Error: CLANG_WARNING: [#def211]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1834:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1832| b = nm_setting_bridge_get_multicast_query_use_ifaddr(s_bridge);
# 1833| if (b
# 1834|-> != get_setting_default_checked_boolean(NM_BRIDGE_MULTICAST_QUERY_USE_IFADDR_DEF,
# 1835| s_bridge,
# 1836| NM_SETTING_BRIDGE_MULTICAST_QUERY_USE_IFADDR)) {
Error: CLANG_WARNING: [#def212]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1843:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1841| b = nm_setting_bridge_get_multicast_snooping(s_bridge);
# 1842| if (b
# 1843|-> != get_setting_default_checked_boolean(NM_BRIDGE_MULTICAST_SNOOPING_DEF,
# 1844| s_bridge,
# 1845| NM_SETTING_BRIDGE_MULTICAST_SNOOPING)) {
Error: CLANG_WARNING: [#def213]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1852:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1850| u32 = nm_setting_bridge_get_multicast_startup_query_count(s_bridge);
# 1851| if (u32
# 1852|-> != get_setting_default_checked_uint(NM_BRIDGE_MULTICAST_STARTUP_QUERY_COUNT_DEF,
# 1853| s_bridge,
# 1854| NM_SETTING_BRIDGE_MULTICAST_STARTUP_QUERY_COUNT)) {
Error: CLANG_WARNING: [#def214]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1861:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1859| u64 = nm_setting_bridge_get_multicast_startup_query_interval(s_bridge);
# 1860| if (u64
# 1861|-> != get_setting_default_checked_uint64(NM_BRIDGE_MULTICAST_STARTUP_QUERY_INTERVAL_DEF,
# 1862| s_bridge,
# 1863| NM_SETTING_BRIDGE_MULTICAST_STARTUP_QUERY_INTERVAL)) {
Error: CLANG_WARNING: [#def215]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1876:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1874| b = nm_setting_bridge_get_vlan_filtering(s_bridge);
# 1875| if (b
# 1876|-> != get_setting_default_checked_boolean(FALSE, s_bridge, NM_SETTING_BRIDGE_VLAN_FILTERING)) {
# 1877| nm_gstring_add_space_delimiter(opts);
# 1878| g_string_append_printf(opts, "vlan_filtering=%u", (guint32) b);
Error: CLANG_WARNING: [#def216]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1883:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1881| u32 = nm_setting_bridge_get_vlan_default_pvid(s_bridge);
# 1882| if (u32
# 1883|-> != get_setting_default_checked_uint(NM_BRIDGE_VLAN_DEFAULT_PVID_DEF,
# 1884| s_bridge,
# 1885| NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID)) {
Error: CLANG_WARNING: [#def217]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1898:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1896| b = nm_setting_bridge_get_vlan_stats_enabled(s_bridge);
# 1897| if (b
# 1898|-> != get_setting_default_checked_boolean(NM_BRIDGE_VLAN_STATS_ENABLED_DEF,
# 1899| s_bridge,
# 1900| NM_SETTING_BRIDGE_VLAN_STATS_ENABLED)) {
Error: CLANG_WARNING: [#def218]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1935:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1933| u32 = nm_setting_bridge_port_get_priority(s_port);
# 1934| if (u32
# 1935|-> != get_setting_default_checked_uint(NM_BRIDGE_PORT_PRIORITY_DEF,
# 1936| s_port,
# 1937| NM_SETTING_BRIDGE_PORT_PRIORITY))
Error: CLANG_WARNING: [#def219]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c:1942:12: warning[core.NullDereference]: Access to field 'default_value' results in a dereference of a null pointer
# 1940| u32 = nm_setting_bridge_port_get_path_cost(s_port);
# 1941| if (u32
# 1942|-> != get_setting_default_checked_uint(NM_BRIDGE_PORT_PATH_COST_DEF,
# 1943| s_port,
# 1944| NM_SETTING_BRIDGE_PORT_PATH_COST)) {
Error: CLANG_WARNING: [#def220]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c:2109:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 2107| g_assert_cmpint(nm_ip_address_get_prefix(ip4_addr), ==, 24);
# 2108| label = nm_ip_address_get_attribute(ip4_addr, NM_IP_ADDRESS_ATTRIBUTE_LABEL);
# 2109|-> if (expected_label[j])
# 2110| g_assert_cmpstr(g_variant_get_string(label, NULL), ==, expected_label[j]);
# 2111| else
Error: CLANG_WARNING: [#def221]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c:3459:5: warning[deadcode.DeadStores]: Value stored to 's_ethtool' is never read
# 3457| NULL);
# 3458|
# 3459|-> s_ethtool = _nm_connection_new_setting(connection, NM_TYPE_SETTING_ETHTOOL);
# 3460| _writer_new_connec_exp(connection,
# 3461| TEST_SCRATCH_DIR,
Error: CLANG_WARNING: [#def222]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c:3543:5: warning[deadcode.DeadStores]: Value stored to 's_ethtool' is never read
# 3541| g_object_set(s_wired, NM_SETTING_WIRED_AUTO_NEGOTIATE, TRUE, NULL);
# 3542|
# 3543|-> s_ethtool = _nm_connection_new_setting(connection, NM_TYPE_SETTING_ETHTOOL);
# 3544| _writer_new_connec_exp(connection,
# 3545| TEST_SCRATCH_DIR,
Error: CLANG_WARNING: [#def223]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:120:13: warning[deadcode.DeadStores]: Value stored to 'ch' is never read
# 118| nm_strbuf_append_c(&str, &str_len, ch);
# 119| nm_strbuf_append_str(&str, &str_len, "external");
# 120|-> ch = ',';
# 121| }
# 122| nm_strbuf_append_c(&str, &str_len, ')');
Error: GCC_ANALYZER_WARNING (CWE-688): [#def224]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c: scope_hint: In function '_load_file_from_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:107:37: note: in definition of macro 'c_list_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:708:9: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:708:9: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c: scope_hint: In function '_load_file_from_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:413:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:413:5: note: in expansion of macro 'nm_assert'
/usr/include/string.h:273:14: note: argument 1 of 'strrchr' must be non-null
# 413| nm_assert(full_filename && full_filename[0] == '/');
# 414|
# 415|-> f_filename = strrchr(full_filename, '/');
# 416| f_dirname = nm_strndup_a(300, full_filename, f_filename - full_filename, &f_dirname_free);
# 417| f_filename++;
Error: CLANG_WARNING: [#def225]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:418:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'f_dirname'
# 416| f_dirname = nm_strndup_a(300, full_filename, f_filename - full_filename, &f_dirname_free);
# 417| f_filename++;
# 418|-> return _load_file(self, f_dirname, f_filename, storage_type, error);
# 419| }
# 420|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def226]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c: scope_hint: In function 'delete_connection'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-plugin.c:1057:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:10: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of 'unlink' must be non-null
# 1055| success = FALSE;
# 1056| operation_message = "dropped readonly file from memory";
# 1057|-> } else if (unlink(previous_filename) != 0) {
# 1058| int errsv;
# 1059|
Error: CLANG_WARNING: [#def227]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-reader.c:114:20: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 112|
# 113| if (base_dir)
# 114|-> nm_assert(!strchr(filename, '/'));
# 115| else {
# 116| const char *s;
Error: CLANG_WARNING: [#def228]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-reader.c:118:19: warning[core.NullDereference]: Array access (from variable 'filename') results in a null pointer dereference
# 116| const char *s;
# 117|
# 118|-> nm_assert(filename[0] == '/');
# 119|
# 120| /* @base_dir may be NULL, in which case @filename must be an absolute path,
Error: CLANG_WARNING: [#def229]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-config.c:71:24: warning[core.NullDereference]: Access to field 'capabilities' results in a dereference of a null pointer (loaded from variable 'priv')
# 69| priv = NM_SUPPLICANT_CONFIG_GET_PRIVATE(self);
# 70|
# 71|-> priv->capabilities = capabilities;
# 72|
# 73| return self;
Error: CLANG_WARNING: [#def230]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-config.c:387:11: warning[unix.Malloc]: Potential memory leak
# 385| }
# 386|
# 387|-> f = g_strdup(nm_str_buf_get_str(&strbuf));
# 388|
# 389| if (!g_atomic_pointer_compare_and_exchange(f_p, NULL, f)) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def231]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function '_log_pretty_object_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:189:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'priv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function '_log_pretty_object_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function '_log_pretty_object_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:215:25: note: in expansion of macro 'nm_sprintf_buf'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:215:25: note: in expansion of macro 'nm_sprintf_buf'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:215:25: note: in expansion of macro 'nm_sprintf_buf'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
# 187| nm_assert(NM_IS_REF_STRING(priv->object_path));
# 188|
# 189|-> s = priv->object_path->str;
# 190| if (NM_STR_HAS_PREFIX(s, "/fi/w1/wpa_supplicant1/Interfaces/")) {
# 191| s += NM_STRLEN("/fi/w1/wpa_supplicant1/Interfaces/");
Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function '_wps_handle_set_pc_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1707:66: warning[-Wanalyzer-null-dereference]: dereference of NULL '*self._priv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function '_wps_handle_set_pc_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function '_wps_handle_set_pc_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:1699:9: note: in expansion of macro '_LOGT'
# 1705| NM_WPAS_DBUS_IFACE_INTERFACE_WPS,
# 1706| "Credentials",
# 1707|-> priv->object_path->str,
# 1708| NULL,
# 1709| G_DBUS_SIGNAL_FLAGS_NONE,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function 'assoc_set_ap_scan_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2456:48: warning[-Wanalyzer-null-dereference]: dereference of NULL '*(NMSupplicantInterface *)user_data._priv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'assoc_set_ap_scan_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function 'assoc_set_ap_scan_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
# 2454| _LOGT("assoc[" NM_HASH_OBFUSCATE_PTR_FMT "]: interface ap_scan set to %d",
# 2455| NM_HASH_OBFUSCATE_PTR(priv->assoc_data),
# 2456|-> nm_supplicant_config_get_ap_scan(priv->assoc_data->cfg));
# 2457|
# 2458| nm_assert(priv->assoc_data->calls_left > 0);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2458:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '*(NMSupplicantInterface *)user_data._priv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'assoc_set_ap_scan_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function 'assoc_set_ap_scan_cb.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2454:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 2456| nm_supplicant_config_get_ap_scan(priv->assoc_data->cfg));
# 2457|
# 2458|-> nm_assert(priv->assoc_data->calls_left > 0);
# 2459| if (--priv->assoc_data->calls_left == 0)
# 2460| add_network(self);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function 'assoc_set_pmk_lifetime.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2481:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '*(NMSupplicantInterface *)user_data._priv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2481:11: note: in expansion of macro 'NM_HASH_OBFUSCATE_PTR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'assoc_set_pmk_lifetime.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function 'assoc_set_pmk_lifetime.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2481:11: note: in expansion of macro 'NM_HASH_OBFUSCATE_PTR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:220:29: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2481:11: note: in expansion of macro 'NM_HASH_OBFUSCATE_PTR'
# 2479|
# 2480| _LOGT("assoc[" NM_HASH_OBFUSCATE_PTR_FMT "]: interface PMK lifetime set to %u",
# 2481|-> NM_HASH_OBFUSCATE_PTR(priv->assoc_data),
# 2482| PMK_LIFETIME_SEC);
# 2483|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def236]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2484:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '*(NMSupplicantInterface *)user_data._priv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'assoc_set_pmk_lifetime.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c: scope_hint: In function 'assoc_set_pmk_lifetime.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:209:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:174:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-interface.c:2480:5: note: in expansion of macro '_LOGT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 2482| PMK_LIFETIME_SEC);
# 2483|
# 2484|-> nm_assert(priv->assoc_data->calls_left > 0);
# 2485| if (--priv->assoc_data->calls_left == 0)
# 2486| add_network(self);
Error: CLANG_WARNING: [#def237]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-manager.c:201:33: warning[core.NullDereference]: Access to field 'dbus_connection' results in a dereference of a null pointer
# 199| const char *iface_path)
# 200| {
# 201|-> _dbus_call_remove_interface(NM_SUPPLICANT_MANAGER_GET_PRIVATE(self)->dbus_connection,
# 202| name_owner,
# 203| iface_path);
Error: CLANG_WARNING: [#def238]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-manager.c:529:30: warning[core.NullDereference]: Access to field 'name_owner' results in a dereference of a null pointer (loaded from variable 'priv')
# 527| g_variant_get(res, "(&o)", &iface_path_str);
# 528|
# 529|-> if (!handle->callback || priv->name_owner != handle->name_owner) {
# 530| if (!handle->callback) {
# 531| _LOGT("create-iface[" NM_HASH_OBFUSCATE_PTR_FMT
Error: CLANG_WARNING: [#def239]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-manager.c:1257:33: warning[deadcode.DeadStores]: Value stored to 'priv' during its initialization is never read
# 1255| {
# 1256| NMSupplicantManager *self = user_data;
# 1257|-> NMSupplicantManagerPrivate *priv = NM_SUPPLICANT_MANAGER_GET_PRIVATE(self);
# 1258|
# 1259| if (!name_owner && nm_utils_error_is_cancelled(error))
Error: CLANG_WARNING: [#def240]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-manager.c:1265:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 1263| priv = NM_SUPPLICANT_MANAGER_GET_PRIVATE(self);
# 1264|
# 1265|-> g_clear_object(&priv->get_name_owner_cancellable);
# 1266|
# 1267| name_owner_changed(self, nm_str_not_empty(name_owner), TRUE);
Error: CLANG_WARNING: [#def241]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/supplicant/nm-supplicant-settings-verify.c:224:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'value'
# 222|
# 223| if (value[0] == '\0')
# 224|-> return TRUE;
# 225|
# 226| s = strchr(value, ' ');
Error: GCC_ANALYZER_WARNING (CWE-787): [#def242]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c: scope_hint: In function ‘_remove_at_indexes_init_random_idx’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:497:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-test-utils-core.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:16: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:469:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:470:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:470:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:471:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:471:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
/usr/include/glib-2.0/glib/gmem.h:332:57: note: in expansion of macro ‘_G_NEW’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:473:12: note: in expansion of macro ‘g_new0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:486:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:487:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:487:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:491:13: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:491:13: note: in expansion of macro ‘g_assert’
# └──────────────────────┘
# ^
# 495| else {
# 496| max_test_idx--;
# 497|-> while (max_test_idx > 0 && mask[max_test_idx])
# 498| max_test_idx--;
# 499| if (mask[max_test_idx])
Error: CLANG_WARNING: [#def243]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-core-with-expect.c:510:21: warning[unix.Malloc]: Potential leak of memory pointed to by 'mask'
# 508| g_array_append_val(idx, i);
# 509| }
# 510|-> g_assert_cmpint(idx->len, ==, idx_len);
# 511| }
# 512|
Error: CLANG_WARNING: [#def244]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-l3cfg.c:190:23: warning[core.NullDereference]: Access to field 'address' results in a dereference of a null pointer
# 188|
# 189| nm_assert(NMP_OBJECT_GET_TYPE(ti->obj) == NMP_OBJECT_TYPE_IP4_ADDRESS);
# 190|-> nm_assert(NMP_OBJECT_CAST_IP4_ADDRESS(ti->obj)->address
# 191| == notify_data->acd_event.info.addr);
# 192| nm_assert(NM_IS_L3_CONFIG_DATA(ti->l3cd));
Error: CLANG_WARNING: [#def245]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-l3cfg.c:338:26: warning[deadcode.DeadStores]: Value stored to 'tdata' during its initialization is never read
# 336| .f = NULL,
# 337| };
# 338|-> TestL3cfgData *const tdata = &tdata_stack;
# 339|
# 340| _LOGD("test start (/l3cfg/%d)", TEST_IDX);
Error: CLANG_WARNING: [#def246]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-l3cfg.c:913:17: warning[core.NullDereference]: Array access (via field '__u6_addr32') results in a null pointer dereference
# 911| g_assert_cmpint(state, ==, NM_L3_IPV6LL_STATE_READY);
# 912| g_assert(
# 913|-> IN6_ARE_ADDR_EQUAL(lladdr, &NMP_OBJECT_CAST_IP6_ADDRESS(tdata->lladdr0)->address));
# 914| tdata->steps_done = TRUE;
# 915| } else
Error: GCC_ANALYZER_WARNING (CWE-121): [#def247]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c: scope_hint: In function ‘test_sd_event’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:75:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/nm-default-systemd-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:56:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:65:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:71:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:75:29: note: write of 8 bytes to beyond the end of ‘other_events’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:75:29: note: valid subscripts for ‘other_events’ are ‘[0]’ to ‘[2]’
# 73| event = sd_event_unref(event);
# 74| for (i = 0, n = (nmtst_get_rand_uint32() % (G_N_ELEMENTS(other_events) + 1)); i < n; i++)
# 75|-> other_events[i] = sd_event_unref(other_events[i]);
# 76| nm_clear_g_source(&sd_id);
# 77| for (i = 0, n = G_N_ELEMENTS(other_events); i < n; i++)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def248]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:75:31: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:56:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:65:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:71:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:75:31: note: read of 8 bytes from after the end of ‘other_events’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/tests/test-systemd.c:75:31: note: valid subscripts for ‘other_events’ are ‘[0]’ to ‘[2]’
# └─────────────────────────────────────┘
# ^
# 73| event = sd_event_unref(event);
# 74| for (i = 0, n = (nmtst_get_rand_uint32() % (G_N_ELEMENTS(other_events) + 1)); i < n; i++)
# 75|-> other_events[i] = sd_event_unref(other_events[i]);
# 76| nm_clear_g_source(&sd_id);
# 77| for (i = 0, n = G_N_ELEMENTS(other_events); i < n; i++)
Error: CLANG_WARNING: [#def249]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/vpn/nm-vpn-connection.c:1131:12: warning[core.NullDereference]: Access to field 'connection_can_persist' results in a dereference of a null pointer
# 1129| _service_and_connection_can_persist(NMVpnConnection *self)
# 1130| {
# 1131|-> return NM_VPN_CONNECTION_GET_PRIVATE(self)->connection_can_persist
# 1132| && NM_VPN_CONNECTION_GET_PRIVATE(self)->service_can_persist;
# 1133| }
Error: CLANG_WARNING: [#def250]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/vpn/nm-vpn-connection.c:2732:39: warning[core.NullDereference]: Dereference of null pointer
# 2730| priv = NM_VPN_CONNECTION_GET_PRIVATE(self);
# 2731|
# 2732|-> priv->dbus.name_owner_initialized = TRUE;
# 2733| _name_owner_changed(self, name_owner, TRUE);
# 2734| }
Error: CLANG_WARNING: [#def251]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-base/nm-ethtool-base.c:269:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p_id')
# 267|
# 268| nm_assert(p_id && p_id >= _by_name && p_id <= &_by_name[_NM_ETHTOOL_ID_NUM]);
# 269|-> nm_assert(*p_id < _NM_ETHTOOL_ID_NUM);
# 270|
# 271| return strcmp(nm_ethtool_data[*p_id]->optname, optname);
Error: CLANG_WARNING: [#def252]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-access-point.c:438:48: warning[core.NullDereference]: Access to field 'last_seen' results in a dereference of a null pointer
# 436| nm_access_point_init(NMAccessPoint *ap)
# 437| {
# 438|-> NM_ACCESS_POINT_GET_PRIVATE(ap)->last_seen = -1;
# 439| }
# 440|
Error: CLANG_WARNING: [#def253]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-device-wifi.c:560:21: warning[core.NullDereference]: Access to field 'last_scan' results in a dereference of a null pointer (loaded from variable 'priv')
# 558| NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE(device);
# 559|
# 560|-> priv->last_scan = -1;
# 561| }
# 562|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function '_nml_dbus_log_file_init'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:73:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 's'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-default-libnm.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function '_nml_dbus_log_file_init'
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro 'g_strdup'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h: scope_hint: In function '_nml_dbus_log_file_init'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro 'g_strdup'
# 71|
# 72| if (!g_atomic_pointer_compare_and_exchange(&_nml_dbus_log_file, NULL, s)) {
# 73|-> if (s[0] != '\0')
# 74| g_free((gpointer) s);
# 75| s = g_atomic_pointer_get(&_nml_dbus_log_file);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function '_nml_dbus_log_file_fd_init'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:89:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '_l'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro 'nml_dbus_log_file'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:42: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:85:14: note: in expansion of macro 'g_atomic_pointer_get'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro 'nml_dbus_log_file'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-glib.h:250:12: note: in expansion of macro 'g_atomic_pointer_get'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function '_nml_dbus_log_file_fd_init'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:86:13: note: in expansion of macro 'G_UNLIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro 'nml_dbus_log_file'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro 'nml_dbus_log_file'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro 'nml_dbus_log_file'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c: scope_hint: In function '_nml_dbus_log_file_fd_init'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro 'g_strdup'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h: scope_hint: In function '_nml_dbus_log_file_fd_init'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:472:12: note: in expansion of macro 'g_strdup'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro 'nml_dbus_log_file'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-libnm-utils.c:103:16: note: in expansion of macro 'nml_dbus_log_file'
# 87| _l = _nml_dbus_log_file_init(); \
# 88| \
# 89|-> _l[0] ? _l : NULL; \
# 90| })
# 91|
Error: CLANG_WARNING: [#def256]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-remote-connection.c:738:36: warning[core.NullDereference]: Access to field 'unsaved' results in a dereference of a null pointer
# 736| switch (prop_id) {
# 737| case PROP_UNSAVED:
# 738|-> g_value_set_boolean(value, NM_REMOTE_CONNECTION_GET_PRIVATE(object)->unsaved);
# 739| break;
# 740| case PROP_FLAGS:
Error: CLANG_WARNING: [#def257]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-remote-connection.c:741:33: warning[core.NullDereference]: Access to field 'flags' results in a dereference of a null pointer
# 739| break;
# 740| case PROP_FLAGS:
# 741|-> g_value_set_uint(value, NM_REMOTE_CONNECTION_GET_PRIVATE(object)->flags);
# 742| break;
# 743| case PROP_FILENAME:
Error: CLANG_WARNING: [#def258]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-remote-connection.c:744:35: warning[core.NullDereference]: Access to field 'filename' results in a dereference of a null pointer
# 742| break;
# 743| case PROP_FILENAME:
# 744|-> g_value_set_string(value, NM_REMOTE_CONNECTION_GET_PRIVATE(object)->filename);
# 745| break;
# 746| case PROP_VERSION_ID:
Error: CLANG_WARNING: [#def259]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-remote-connection.c:747:35: warning[core.NullDereference]: Access to field 'version_id' results in a dereference of a null pointer
# 745| break;
# 746| case PROP_VERSION_ID:
# 747|-> g_value_set_uint64(value, NM_REMOTE_CONNECTION_GET_PRIVATE(object)->version_id);
# 748| break;
# 749| case PROP_VISIBLE:
Error: CLANG_WARNING: [#def260]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-remote-connection.c:750:36: warning[core.NullDereference]: Access to field 'visible' results in a dereference of a null pointer
# 748| break;
# 749| case PROP_VISIBLE:
# 750|-> g_value_set_boolean(value, NM_REMOTE_CONNECTION_GET_PRIVATE(object)->visible);
# 751| break;
# 752| default:
Error: CLANG_WARNING: [#def261]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-wifi-p2p-peer.c:382:51: warning[core.NullDereference]: Access to field 'last_seen' results in a dereference of a null pointer
# 380| nm_wifi_p2p_peer_init(NMWifiP2PPeer *peer)
# 381| {
# 382|-> NM_WIFI_P2P_PEER_GET_PRIVATE(peer)->last_seen = -1;
# 383| }
# 384|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def262]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-default-libnm.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c: scope_hint: In function ‘test_make_invisible’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:169:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:120:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:120:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/gobject/gobject.h:30: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:15: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:123:5: note: in expansion of macro ‘g_signal_connect’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:132:13: note: in expansion of macro ‘g_strdup’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c: scope_hint: In function ‘test_make_invisible’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:141:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-test/nm-test-libnm-utils.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1503:14: note: in expansion of macro ‘nmtst_main_context_iterate_until_full’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1512:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert_full’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1102:24: note: in definition of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:1448:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:1448:1: note: in expansion of macro ‘NM_AUTO_DEFINE_FCN0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1503:14: note: in expansion of macro ‘nmtst_main_context_iterate_until_full’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1512:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert_full’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1512:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert_full’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:154:5: note: in expansion of macro ‘nmtst_main_context_iterate_until_assert’
/usr/include/glib-2.0/gobject/gsignal.h:590:44: note: in definition of macro ‘g_signal_handlers_disconnect_by_func’
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-connection.h:20:32: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:166:35: note: in expansion of macro ‘NM_CONNECTION’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:168:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/tests/test-remote-settings-client.c:169:9: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
# 167|
# 168| g_assert((gpointer) gl.remote != (gpointer) candidate);
# 169|-> g_assert(strcmp(path, nm_connection_get_path(candidate)) != 0);
# 170| }
# 171|
Error: CLANG_WARNING: [#def263]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-aux-intern/nm-libnm-core-utils.c:270:12: warning[unix.Malloc]: Potential leak of memory pointed to by 's1_free'
# 268| }
# 269|
# 270|-> v1 = _nm_utils_ascii_str_to_int64(nm_strndup_a(100, str, s1_len, &s1_free),
# 271| 10,
# 272| 0,
Error: CLANG_WARNING: [#def264]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-aux-intern/nm-libnm-core-utils.c:584:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'dns'
# 582| if (s && s[0] == '\0') {
# 583| /* "ADDR#" empty DoT SNI name is not allowed. */
# 584|-> return FALSE;
# 585| }
# 586|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c: scope_hint: In function 'nm_connection_for_each_setting_value'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2882:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2875:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2875:22: note: in expansion of macro 'NM_IS_CONNECTION'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2875:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-private.h:66:14: note: in expansion of macro 'NM_IS_SIMPLE_CONNECTION'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2875:22: note: in expansion of macro 'NM_IS_CONNECTION'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2876:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2828:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2828:26: note: in expansion of macro 'NM_IS_CONNECTION'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2828:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-private.h:66:14: note: in expansion of macro 'NM_IS_SIMPLE_CONNECTION'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2828:26: note: in expansion of macro 'NM_IS_CONNECTION'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2838:5: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-connection.c:2838:5: note: in expansion of macro 'NM_SET_OUT'
# 2880| g_object_ref(settings[i]);
# 2881| for (i = 0; i < length; i++)
# 2882|-> nm_setting_enumerate_values(settings[i], func, user_data);
# 2883| for (i = 1; i < length; i++)
# 2884| g_object_unref(settings[i]);
Error: CLANG_WARNING: [#def266]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile-utils.c:171:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'int_values'
# 169| v = _nm_utils_ascii_str_to_int64(values[i], 10, 0, G_MAXUINT, -1);
# 170| if (v == -1) {
# 171|-> g_set_error(error,
# 172| G_KEY_FILE_ERROR,
# 173| G_KEY_FILE_ERROR_INVALID_VALUE,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def267]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c: scope_hint: In function 'read_one_setting_value'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3363:63: warning[-Wanalyzer-null-dereference]: dereference of NULL 'setting_info'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3277:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3277:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3277:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3278:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3279:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3279:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:3279:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c: scope_hint: In function 'read_one_setting_value'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 3361| */
# 3362| if ((!pip || !pip->parser_no_check_key)
# 3363|-> && !nm_keyfile_plugin_kf_has_key(keyfile, setting_info->setting_name, key, &err)) {
# 3364| /* Key doesn't exist or an error occurred, thus nothing to do. */
# 3365| if (err) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def268]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c: scope_hint: In function 'nm_keyfile_utils_create_filename'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:4525:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:4494:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro 'G_UNLIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:542:5: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
# 4523|
# 4524| /* nm_keyfile_utils_create_filename() must mirror ignore_filename() */
# 4525|-> nm_assert(!strchr(p, '/'));
# 4526| nm_assert(!nm_keyfile_utils_ignore_filename(p, with_extension));
# 4527|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-8021x.c: scope_hint: In function '_cert_verify_property'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-8021x.c:688:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'local'
# 686| scheme = _nm_setting_802_1x_cert_get_scheme(bytes, &local);
# 687| if (scheme == NM_SETTING_802_1X_CK_SCHEME_UNKNOWN) {
# 688|-> g_set_error(error,
# 689| NM_CONNECTION_ERROR,
# 690| NM_CONNECTION_ERROR_INVALID_PROPERTY,
Error: CLANG_WARNING: [#def270]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-adsl.c:219:45: warning[core.NullDereference]: Access to field 'password' results in a dereference of a null pointer
# 217| verify_secrets(NMSetting *setting, NMConnection *connection, GError **error)
# 218| {
# 219|-> return _nm_setting_verify_secret_string(NM_SETTING_ADSL_GET_PRIVATE(setting)->password,
# 220| NM_SETTING_ADSL_SETTING_NAME,
# 221| NM_SETTING_ADSL_PASSWORD,
Error: CLANG_WARNING: [#def271]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:264:60: warning[core.BitwiseShift]: Left shift overflows the capacity of 'guint32'
# 262| nm_assert(_NM_INT_NOT_NEGATIVE(mode) && mode < 32);
# 263|
# 264|-> return !NM_FLAGS_ANY(_bond_option_unsupp_mode(option), BIT(mode));
# 265| }
# 266|
Error: CLANG_WARNING: [#def272]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:264:60: warning[core.BitwiseShift]: Right operand is negative in left shift
# 262| nm_assert(_NM_INT_NOT_NEGATIVE(mode) && mode < 32);
# 263|
# 264|-> return !NM_FLAGS_ANY(_bond_option_unsupp_mode(option), BIT(mode));
# 265| }
# 266|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c: scope_hint: In function '_nm_setting_bond_opt_value_as_u32'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:810:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro '_opt_value_as_u64'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro '_opt_value_as_u64'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2895:13: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2932:5: note: in expansion of macro '_NM_UTILS_STRING_TABLE_LOOKUP_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:173:8: note: in expansion of macro 'NM_UTILS_STRING_TABLE_LOOKUP_STRUCT_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c: scope_hint: In function '_nm_setting_bond_opt_value_as_u32'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro '_opt_value_as_u64'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:844:12: note: in expansion of macro '_opt_value_as_u64'
# 808| \
# 809| nm_assert(_meta); \
# 810|-> nm_assert(_meta->opt_type == NM_BOND_OPTION_TYPE_INT); \
# 811| nm_assert(_meta->min < _meta->max); \
# 812| nm_assert(_meta->max <= _v_max); \
Error: CLANG_WARNING: [#def274]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:1214:35: warning[core.NullDereference]: Access to field 'options' results in a dereference of a null pointer
# 1212| const char *key, *value;
# 1213|
# 1214|-> g_hash_table_iter_init(&iter, NM_SETTING_BOND_GET_PRIVATE(s_bond)->options);
# 1215| while (g_hash_table_iter_next(&iter, (gpointer *) &key, (gpointer *) &value)) {
# 1216| if (NM_FLAGS_HAS(flags, NM_SETTING_COMPARE_FLAG_INFERRABLE)) {
Error: CLANG_WARNING: [#def275]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bond.c:1286:19: warning[core.NullDereference]: Access to field 'options' results in a dereference of a null pointer (loaded from variable 'priv')
# 1284| NMSettingBondPrivate *priv = NM_SETTING_BOND_GET_PRIVATE(setting);
# 1285|
# 1286|-> priv->options = g_hash_table_new_full(nm_str_hash, g_str_equal, g_free, g_free);
# 1287|
# 1288| /* Default values: */
Error: CLANG_WARNING: [#def276]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge-port.c:305:12: warning[core.NullDereference]: Access to field 'vlans' results in a dereference of a null pointer
# 303| nm_assert(NM_IS_SETTING_BRIDGE_PORT(setting));
# 304|
# 305|-> return NM_SETTING_BRIDGE_PORT_GET_PRIVATE(setting)->vlans;
# 306| }
# 307|
Error: CLANG_WARNING: [#def277]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge-port.c:372:47: warning[core.NullDereference]: Access to field 'vlans' results in a dereference of a null pointer
# 370| {
# 371| if (set_b) {
# 372|-> return _nm_utils_bridge_compare_vlans(NM_SETTING_BRIDGE_PORT_GET_PRIVATE(set_a)->vlans,
# 373| NM_SETTING_BRIDGE_PORT_GET_PRIVATE(set_b)->vlans);
# 374| }
Error: CLANG_WARNING: [#def278]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge-port.c:423:17: warning[core.NullDereference]: Access to field 'vlans' results in a dereference of a null pointer (loaded from variable 'priv')
# 421| NMSettingBridgePortPrivate *priv = NM_SETTING_BRIDGE_PORT_GET_PRIVATE(setting);
# 422|
# 423|-> priv->vlans = g_ptr_array_new_with_free_func((GDestroyNotify) nm_bridge_vlan_unref);
# 424| }
# 425|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c: scope_hint: In function 'nm_bridge_vlan_new_clone'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:416:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:413:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:413:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:413:5: note: in expansion of macro 'g_return_val_if_fail'
# 414|
# 415| copy = nm_bridge_vlan_new(vlan->vid_start, vlan->vid_end);
# 416|-> copy->untagged = vlan->untagged;
# 417| copy->pvid = vlan->pvid;
# 418|
Error: CLANG_WARNING: [#def280]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:925:12: warning[core.NullDereference]: Access to field 'vlans' results in a dereference of a null pointer
# 923| nm_assert(NM_IS_SETTING_BRIDGE(setting));
# 924|
# 925|-> return NM_SETTING_BRIDGE_GET_PRIVATE(setting)->vlans;
# 926| }
# 927|
Error: CLANG_WARNING: [#def281]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:1337:47: warning[core.NullDereference]: Access to field 'vlans' results in a dereference of a null pointer
# 1335| {
# 1336| if (set_b) {
# 1337|-> return _nm_utils_bridge_compare_vlans(NM_SETTING_BRIDGE_GET_PRIVATE(set_a)->vlans,
# 1338| NM_SETTING_BRIDGE_GET_PRIVATE(set_b)->vlans);
# 1339| }
Error: CLANG_WARNING: [#def282]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-bridge.c:1388:17: warning[core.NullDereference]: Access to field 'vlans' results in a dereference of a null pointer (loaded from variable 'priv')
# 1386| NMSettingBridgePrivate *priv = NM_SETTING_BRIDGE_GET_PRIVATE(setting);
# 1387|
# 1388|-> priv->vlans = g_ptr_array_new_with_free_func((GDestroyNotify) nm_bridge_vlan_unref);
# 1389| }
# 1390|
Error: CLANG_WARNING: [#def283]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-cdma.c:168:45: warning[core.NullDereference]: Access to field 'password' results in a dereference of a null pointer
# 166| verify_secrets(NMSetting *setting, NMConnection *connection, GError **error)
# 167| {
# 168|-> return _nm_setting_verify_secret_string(NM_SETTING_CDMA_GET_PRIVATE(setting)->password,
# 169| NM_SETTING_CDMA_SETTING_NAME,
# 170| NM_SETTING_CDMA_PASSWORD,
Error: CLANG_WARNING: [#def284]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-connection.c:665:45: warning[core.NullDereference]: Access to field 'timestamp' results in a dereference of a null pointer
# 663|
# 664| v = options && options->timestamp.has ? options->timestamp.val
# 665|-> : NM_SETTING_CONNECTION_GET_PRIVATE(setting)->timestamp;
# 666|
# 667| if (v == 0u)
Error: CLANG_WARNING: [#def285]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-connection.c:874:12: warning[core.NullDereference]: Dereference of null pointer
# 872| _nm_setting_connection_get_secondaries(NMSettingConnection *setting)
# 873| {
# 874|-> return NM_SETTING_CONNECTION_GET_PRIVATE(setting)->secondaries.arr;
# 875| }
# 876|
Error: CLANG_WARNING: [#def286]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-connection.c:1819:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'strv'
# 1817| break;
# 1818| }
# 1819|-> }
# 1820|
# 1821| static void
Error: CLANG_WARNING: [#def287]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-connection.c:1848:25: warning[core.NullDereference]: Access to field 'timestamp' results in a dereference of a null pointer (loaded from variable 'priv')
# 1846| }
# 1847| case PROP_TIMESTAMP:
# 1848|-> priv->timestamp = g_value_get_uint64(value);
# 1849| break;
# 1850| default:
Error: CLANG_WARNING: [#def288]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-dcb.c:717:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 715| const guint total_len = len * sizeof(a[0]);
# 716|
# 717|-> memset(a, 0, total_len);
# 718| if (src) {
# 719| g_return_if_fail(g_array_get_element_size(src) == sizeof(a[0]));
Error: CLANG_WARNING: [#def289]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-gsm.c:514:45: warning[core.NullDereference]: Access to field 'password' results in a dereference of a null pointer
# 512| verify_secrets(NMSetting *setting, NMConnection *connection, GError **error)
# 513| {
# 514|-> return _nm_setting_verify_secret_string(NM_SETTING_GSM_GET_PRIVATE(setting)->password,
# 515| NM_SETTING_GSM_SETTING_NAME,
# 516| NM_SETTING_GSM_PASSWORD,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def290]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3772:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'local'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3401:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:969:6: note: in expansion of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3341:9: note: in expansion of macro 'NM_FLAGS_HAS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3458:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3458:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3466:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3474:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:822:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_4'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:821:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:822:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_3'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_4'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:821:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:822:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_3'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_4'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:820:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:821:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:822:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_3'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_4'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3480:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3490:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:820:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3490:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3508:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:820:133: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3508:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3518:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3528:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3537:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:819:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3546:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:813:37: note: in expansion of macro '_NM_IN_STRSET_EVAL_OP_STREQ'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:820:85: note: in expansion of macro '_NM_MACRO_CALL2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '_NM_VA_ARGS_FOREACH_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:941:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:997:19: note: in expansion of macro 'NM_VA_ARGS_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3565:13: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'nm_ip_routing_rule_from_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3672:10: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3672:10: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3688:10: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro '_NM_IN_STRSET_EVAL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3688:10: note: in expansion of macro 'NM_IN_STRSET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:168:49: note: in definition of macro 'NM_PASTE_ARGS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro 'NM_PASTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:958:14: note: in expansion of macro 'NM_UNIQ_T'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:969:27: note: in expansion of macro '_NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3704:10: note: in expansion of macro 'NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:1655:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib.h:82: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:1657:13: note: in expansion of macro 'g_slice_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:2388:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:2388:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:2388:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:969:6: note: in expansion of macro 'NM_FLAGS_ANY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:3768:9: note: in expansion of macro 'NM_FLAGS_HAS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:2723:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:2723:5: note: in expansion of macro 'g_return_val_if_fail'
# 3770|
# 3771| if (!nm_ip_routing_rule_validate(self, &local)) {
# 3772|-> g_set_error(error,
# 3773| NM_CONNECTION_ERROR,
# 3774| NM_CONNECTION_ERROR_FAILED,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def291]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c: scope_hint: In function 'verify'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ip-config.c:5667:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'local'
# 5665| }
# 5666| if (!nm_ip_routing_rule_validate(rule, &local)) {
# 5667|-> g_set_error(error,
# 5668| NM_CONNECTION_ERROR,
# 5669| NM_CONNECTION_ERROR_INVALID_PROPERTY,
Error: CLANG_WARNING: [#def292]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ovs-external-ids.c:230:12: warning[core.NullDereference]: Access to field 'data' results in a dereference of a null pointer
# 228| _nm_setting_ovs_external_ids_get_data(NMSettingOvsExternalIDs *self)
# 229| {
# 230|-> return NM_SETTING_OVS_EXTERNAL_IDS_GET_PRIVATE(self)->data;
# 231| }
# 232|
Error: CLANG_WARNING: [#def293]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-ovs-other-config.c:68:12: warning[core.NullDereference]: Access to field 'data' results in a dereference of a null pointer
# 66| _nm_setting_ovs_other_config_get_data(NMSettingOvsOtherConfig *self)
# 67| {
# 68|-> return NM_SETTING_OVS_OTHER_CONFIG_GET_PRIVATE(self)->data;
# 69| }
# 70|
Error: CLANG_WARNING: [#def294]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-serial.c:189:22: warning[core.NullDereference]: Access to field 'parity' results in a dereference of a null pointer (loaded from variable 'priv')
# 187| switch (prop_id) {
# 188| case PROP_PARITY:
# 189|-> priv->parity = g_value_get_enum(value);
# 190| break;
# 191| default:
Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-sriov.c: scope_hint: In function 'verify'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-sriov.c:1114:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'local'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-sriov.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-sriov.c:455:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-sriov.c:456:5: note: in expansion of macro 'g_return_val_if_fail'
# 1112|
# 1113| if (!_nm_sriov_vf_attribute_validate_all(vf, &local)) {
# 1114|-> g_set_error(error,
# 1115| NM_CONNECTION_ERROR,
# 1116| NM_CONNECTION_ERROR_INVALID_PROPERTY,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def296]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c: scope_hint: In function '_action_to_variant'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:1510:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:595:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:574:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:574:5: note: in expansion of macro 'g_return_val_if_fail'
# 1508| g_variant_new_string(nm_tc_action_get_kind(action)));
# 1509|
# 1510|-> for (i = 0; attrs[i]; i++) {
# 1511| g_variant_builder_add(&builder,
# 1512| "{sv}",
Error: CLANG_WARNING: [#def297]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:1517:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'attrs'
# 1515| }
# 1516|
# 1517|-> return g_variant_builder_end(&builder);
# 1518| }
# 1519|
Error: CLANG_WARNING: [#def298]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team-port.c:62:12: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 60| _nm_setting_team_port_get_team_setting(NMSettingTeamPort *setting)
# 61| {
# 62|-> return NM_SETTING_TEAM_PORT_GET_PRIVATE(setting)->team_setting;
# 63| }
# 64|
Error: CLANG_WARNING: [#def299]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team-port.c:396:42: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 394| {
# 395| _maybe_changed(NM_SETTING_TEAM_PORT(dst),
# 396|-> nm_team_setting_reset(NM_SETTING_TEAM_PORT_GET_PRIVATE(dst)->team_setting,
# 397| NM_SETTING_TEAM_PORT_GET_PRIVATE(src)->team_setting));
# 398| }
Error: CLANG_WARNING: [#def300]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team-port.c:397:42: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 395| _maybe_changed(NM_SETTING_TEAM_PORT(dst),
# 396| nm_team_setting_reset(NM_SETTING_TEAM_PORT_GET_PRIVATE(dst)->team_setting,
# 397|-> NM_SETTING_TEAM_PORT_GET_PRIVATE(src)->team_setting));
# 398| }
# 399|
Error: CLANG_WARNING: [#def301]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team-port.c:412:41: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 410|
# 411| success =
# 412|-> nm_team_setting_reset_from_dbus(NM_SETTING_TEAM_PORT_GET_PRIVATE(setting)->team_setting,
# 413| setting_dict,
# 414| keys,
Error: CLANG_WARNING: [#def302]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team-port.c:500:24: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer (loaded from variable 'priv')
# 498| NMSettingTeamPortPrivate *priv = NM_SETTING_TEAM_PORT_GET_PRIVATE(setting);
# 499|
# 500|-> priv->team_setting = nm_team_setting_new(TRUE, NULL);
# 501| }
# 502|
Error: GCC_ANALYZER_WARNING (CWE-131): [#def303]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c: scope_hint: In function 'nm_team_link_watcher_new_ethtool.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:128:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
# 126| NM_PRAGMA_WARNING_DISABLE("-Walloc-size")
# 127|
# 128|-> watcher = g_malloc(nm_offsetofend(NMTeamLinkWatcher, ethtool));
# 129|
# 130| watcher->ref_count = 1;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def304]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c: scope_hint: In function 'nm_team_link_watchers_cmp'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:483:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro 'NM_CMP_RETURN'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:477:13: note: in expansion of macro 'nm_memdup_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:477:13: note: in expansion of macro 'nm_memdup_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:478:13: note: in expansion of macro 'nm_memdup_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:478:13: note: in expansion of macro 'nm_memdup_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro 'NM_CMP_RETURN'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro 'NM_CMP_RETURN'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro 'NM_CMP_RETURN'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1343:26: note: in definition of macro 'NM_CMP_RETURN'
# 481| }
# 482| for (i = 0; i < len; i++) {
# 483|-> NM_CMP_RETURN(nm_team_link_watcher_cmp(a[i], b[i]));
# 484| }
# 485| return 0;
Error: CLANG_WARNING: [#def305]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:768:12: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 766| _nm_setting_team_get_team_setting(NMSettingTeam *setting)
# 767| {
# 768|-> return NM_SETTING_TEAM_GET_PRIVATE(setting)->team_setting;
# 769| }
# 770|
Error: CLANG_WARNING: [#def306]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:1327:42: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 1325| {
# 1326| _maybe_changed(NM_SETTING_TEAM(dst),
# 1327|-> nm_team_setting_reset(NM_SETTING_TEAM_GET_PRIVATE(dst)->team_setting,
# 1328| NM_SETTING_TEAM_GET_PRIVATE(src)->team_setting));
# 1329| }
Error: CLANG_WARNING: [#def307]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:1328:42: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 1326| _maybe_changed(NM_SETTING_TEAM(dst),
# 1327| nm_team_setting_reset(NM_SETTING_TEAM_GET_PRIVATE(dst)->team_setting,
# 1328|-> NM_SETTING_TEAM_GET_PRIVATE(src)->team_setting));
# 1329| }
# 1330|
Error: CLANG_WARNING: [#def308]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:1345:47: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer
# 1343| g_hash_table_remove(keys, "interface-name");
# 1344|
# 1345|-> success = nm_team_setting_reset_from_dbus(NM_SETTING_TEAM_GET_PRIVATE(setting)->team_setting,
# 1346| setting_dict,
# 1347| keys,
Error: CLANG_WARNING: [#def309]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-team.c:1467:24: warning[core.NullDereference]: Access to field 'team_setting' results in a dereference of a null pointer (loaded from variable 'priv')
# 1465| NMSettingTeamPrivate *priv = NM_SETTING_TEAM_GET_PRIVATE(setting);
# 1466|
# 1467|-> priv->team_setting = nm_team_setting_new(FALSE, NULL);
# 1468| }
# 1469|
Error: CLANG_WARNING: [#def310]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-vlan.c:161:16: warning[core.NullDereference]: Access to field 'ingress_priority_map' results in a dereference of a null pointer
# 159| {
# 160| if (map == NM_VLAN_INGRESS_MAP)
# 161|-> return NM_SETTING_VLAN_GET_PRIVATE(self)->ingress_priority_map;
# 162| else if (map == NM_VLAN_EGRESS_MAP)
# 163| return NM_SETTING_VLAN_GET_PRIVATE(self)->egress_priority_map;
Error: CLANG_WARNING: [#def311]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-vlan.c:163:16: warning[core.NullDereference]: Access to field 'egress_priority_map' results in a dereference of a null pointer
# 161| return NM_SETTING_VLAN_GET_PRIVATE(self)->ingress_priority_map;
# 162| else if (map == NM_VLAN_EGRESS_MAP)
# 163|-> return NM_SETTING_VLAN_GET_PRIVATE(self)->egress_priority_map;
# 164| nm_assert_not_reached();
# 165| return NULL;
Error: CLANG_WARNING: [#def312]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-vlan.c:789:21: warning[core.NullDereference]: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'priv')
# 787| switch (prop_id) {
# 788| case PROP_FLAGS:
# 789|-> priv->flags = g_value_get_flags(value);
# 790| break;
# 791| case PROP_INGRESS_PRIORITY_MAP:
Error: CLANG_WARNING: [#def313]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-vlan.c:814:17: warning[core.NullDereference]: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'priv')
# 812| NMSettingVlanPrivate *priv = NM_SETTING_VLAN_GET_PRIVATE(self);
# 813|
# 814|-> priv->flags = NM_VLAN_FLAG_REORDER_HEADERS;
# 815| }
# 816|
Error: CLANG_WARNING: [#def314]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-vpn.c:100:10: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p_hash')
# 98| _ensure_strdict(GHashTable **p_hash, gboolean for_secrets)
# 99| {
# 100|-> if (!*p_hash) {
# 101| *p_hash = g_hash_table_new_full(nm_str_hash,
# 102| g_str_equal,
Error: CLANG_WARNING: [#def315]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-vpn.c:1002:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 1000| p_hash = &priv->data;
# 1001|
# 1002|-> hash_free = g_steal_pointer(p_hash);
# 1003|
# 1004| if (src_hash && g_hash_table_size(src_hash) > 0) {
Error: CLANG_WARNING: [#def316]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wired.c:989:25: warning[core.NullDereference]: Access to field 'cloned_mac_address' results in a dereference of a null pointer
# 987| {
# 988| return !set_b
# 989|-> || nm_streq0(NM_SETTING_WIRED_GET_PRIVATE(set_a)->cloned_mac_address,
# 990| NM_SETTING_WIRED_GET_PRIVATE(set_b)->cloned_mac_address);
# 991| }
Error: CLANG_WARNING: [#def317]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:1331:35: warning[core.NullDereference]: Access to field 'peers_arr' results in a dereference of a null pointer (loaded from variable 'priv')
# 1329| _peers_append(NMSettingWireGuardPrivate *priv, NMWireGuardPeer *peer, gboolean check_same_key)
# 1330| {
# 1331|-> return _peers_set(priv, peer, priv->peers_arr->len, check_same_key);
# 1332| }
# 1333|
Error: CLANG_WARNING: [#def318]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:2128:24: warning[unix.Malloc]: Potential leak of memory pointed to by 'public_key'
# 2126| public_key = peers_psk_get_secret_parse_a(secret_name, &public_key_free);
# 2127| if (public_key && (pd = _peers_get_by_public_key(priv, public_key, FALSE))) {
# 2128|-> NM_SET_OUT(out_flags, nm_wireguard_peer_get_preshared_key_flags(pd->peer));
# 2129| return TRUE;
# 2130| }
Error: CLANG_WARNING: [#def319]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:2152:17: warning[unix.Malloc]: Potential leak of memory pointed to by 'public_key'
# 2150| public_key = peers_psk_get_secret_parse_a(secret_name, &public_key_free);
# 2151| if (public_key && (pd = _peers_get_by_public_key(priv, public_key, FALSE))) {
# 2152|-> if (nm_wireguard_peer_get_preshared_key_flags(pd->peer) != flags) {
# 2153| nm_auto_unref_wgpeer NMWireGuardPeer *peer = NULL;
# 2154|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c: scope_hint: In function 'set_secret_flags'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:2156:43: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:2143:9: note: in expansion of macro 'NM_STR_HAS_PREFIX'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:950:17: note: in expansion of macro 'NM_STR_HAS_SUFFIX'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:2150:22: note: in expansion of macro 'peers_psk_get_secret_parse_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:952:21: note: in expansion of macro 'nm_strndup_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:2150:22: note: in expansion of macro 'peers_psk_get_secret_parse_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:952:21: note: in expansion of macro 'nm_strndup_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:2150:22: note: in expansion of macro 'peers_psk_get_secret_parse_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:79:1: note: in expansion of macro 'NM_AUTO_DEFINE_FCN_VOID0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:79:1: note: in expansion of macro 'NM_AUTO_DEFINE_FCN_VOID0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:405:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:104:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireguard.c:104:5: note: in expansion of macro 'g_return_val_if_fail'
# 2154|
# 2155| peer = nm_wireguard_peer_new_clone(pd->peer, TRUE);
# 2156|-> peer->preshared_key_flags = flags;
# 2157| if (_peers_set(priv, peer, pd->idx, FALSE))
# 2158| _peers_notify(self);
Error: CLANG_WARNING: [#def321]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireless-security.c:1338:28: warning[core.NullDereference]: Access to field 'wep_key_type' results in a dereference of a null pointer (loaded from variable 'priv')
# 1336| break;
# 1337| case PROP_WEP_KEY_TYPE:
# 1338|-> priv->wep_key_type = g_value_get_enum(value);
# 1339| break;
# 1340| default:
Error: CLANG_WARNING: [#def322]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireless-security.c:1351:15: warning[core.NullDereference]: Access to field 'wep_key_type' results in a dereference of a null pointer
# 1349| nm_setting_wireless_security_init(NMSettingWirelessSecurity *self)
# 1350| {
# 1351|-> nm_assert(NM_SETTING_WIRELESS_SECURITY_GET_PRIVATE(self)->wep_key_type
# 1352| == NM_WEP_KEY_TYPE_UNKNOWN);
# 1353| }
Error: CLANG_WARNING: [#def323]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireless.c:1171:25: warning[core.NullDereference]: Access to field 'cloned_mac_address' results in a dereference of a null pointer
# 1169| {
# 1170| return !set_b
# 1171|-> || nm_streq0(NM_SETTING_WIRELESS_GET_PRIVATE(set_a)->cloned_mac_address,
# 1172| NM_SETTING_WIRELESS_GET_PRIVATE(set_b)->cloned_mac_address);
# 1173| }
Error: CLANG_WARNING: [#def324]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-wireless.c:1179:37: warning[core.NullDereference]: Access to field 'seen_bssids' results in a dereference of a null pointer
# 1177| {
# 1178| return !set_b
# 1179|-> || (nm_strv_ptrarray_cmp(NM_SETTING_WIRELESS_GET_PRIVATE(set_a)->seen_bssids,
# 1180| NM_SETTING_WIRELESS_GET_PRIVATE(set_b)->seen_bssids)
# 1181| == 0);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def325]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function '_init_direct'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1026:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1024| nm_assert(sett_info);
# 1025|
# 1026|-> for (i = 0; i < sett_info->property_infos_len; i++) {
# 1027| const NMSettInfoProperty *property_info = &sett_info->property_infos[i];
# 1028|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function '_finalize_direct'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1142:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1140| nm_assert(sett_info);
# 1141|
# 1142|-> for (i = 0; i < sett_info->property_infos_len; i++) {
# 1143| const NMSettInfoProperty *property_info = &sett_info->property_infos[i];
# 1144|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def327]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function '_nm_setting_to_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1956:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1941:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1941:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1941:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1941:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3990:5: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3990:5: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3991:5: note: in expansion of macro 'NM_SET_OUT'
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:15: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:571:66: note: in expansion of macro '_G_TYPE_IGC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:24:6: note: in expansion of macro 'G_TYPE_INSTANCE_GET_CLASS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:1955:49: note: in expansion of macro 'NM_SETTING_GET_CLASS'
# 1954|
# 1955| sett_info = _nm_setting_class_get_sett_info(NM_SETTING_GET_CLASS(setting));
# 1956|-> for (j = 0; j < sett_info->property_infos_len; j++) {
# 1957| const NMSettInfoProperty *property_info = &sett_info->property_infos[j];
# 1958| gs_unref_variant GVariant *dbus_value = NULL;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def328]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function 'init_from_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2187:28: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function 'init_from_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:551:13: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:584:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:587:5: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE_FULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:58:1: note: in expansion of macro 'NM_GOBJECT_PROPERTIES_DEFINE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function 'init_from_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 2185| * to handle this case differently. */
# 2186| nm_assert(nm_streq(G_OBJECT_TYPE_NAME(setting), "NMSettingEthtool"));
# 2187|-> nm_assert(sett_info->property_infos_len == 1);
# 2188|
# 2189| return TRUE;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def329]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2192:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 2190| }
# 2191|
# 2192|-> for (i = 0; i < sett_info->property_infos_len; i++) {
# 2193| const NMSettInfoProperty *property_info = &sett_info->property_infos[i];
# 2194| gs_unref_variant GVariant *value = NULL;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def330]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function '_nm_setting_compare'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2893:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2871:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2871:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2871:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2871:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2871:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2872:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:71: note: in expansion of macro 'NM_TYPE_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2872:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2872:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2872:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2872:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2872:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2872:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:657:82: note: in definition of macro 'G_TYPE_FROM_CLASS'
/usr/include/glib-2.0/gobject/gobject.h:98:38: note: in expansion of macro 'G_TYPE_FROM_INSTANCE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2878:9: note: in expansion of macro 'G_OBJECT_TYPE'
# 2891| }
# 2892|
# 2893|-> for (i = 0; i < sett_info->property_infos_len; i++) {
# 2894| if (_compare_property(sett_info, &sett_info->property_infos[i], con_a, a, con_b, b, flags)
# 2895| == NM_TERNARY_FALSE)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def331]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function '_nm_setting_diff'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3050:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2969:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2970:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:71: note: in expansion of macro 'NM_TYPE_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2970:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2970:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2970:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2970:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2970:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:2970:5: note: in expansion of macro 'g_return_val_if_fail'
# 3048| }
# 3049| } else {
# 3050|-> for (i = 0; i < sett_info->property_infos_len; i++) {
# 3051| NMSettingDiffResult r = NM_SETTING_DIFF_RESULT_UNKNOWN;
# 3052| const NMSettInfoProperty *property_info = &sett_info->property_infos[i];
Error: GCC_ANALYZER_WARNING (CWE-476): [#def332]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function 'nm_setting_enumerate_values'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3243:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3206:5: note: in expansion of macro 'g_return_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3206:22: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3206:5: note: in expansion of macro 'g_return_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3206:22: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3206:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3207:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3207:5: note: in expansion of macro 'g_return_if_fail'
# 3241| }
# 3242|
# 3243|-> for (j = 0; j < sett_info->property_infos_len; j++) {
# 3244| NM_SETTING_GET_CLASS(setting)->enumerate_values(
# 3245| _nm_sett_info_property_info_get_sorted(sett_info, j),
Error: GCC_ANALYZER_WARNING (CWE-476): [#def333]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function 'aggregate'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3264:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 3262|
# 3263| sett_info = _nm_setting_class_get_sett_info(NM_SETTING_GET_CLASS(setting));
# 3264|-> for (i = 0; i < sett_info->property_infos_len; i++) {
# 3265| const NMSettInfoProperty *property_info = &sett_info->property_infos[i];
# 3266| GParamSpec *prop_spec = property_info->param_spec;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def334]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function '_nm_setting_clear_secrets'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3395:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3390:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3390:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3390:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:21:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3390:26: note: in expansion of macro 'NM_IS_SETTING'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:3390:5: note: in expansion of macro 'g_return_val_if_fail'
# 3393|
# 3394| sett_info = _nm_setting_class_get_sett_info(NM_SETTING_GET_CLASS(setting));
# 3395|-> for (i = 0; i < sett_info->property_infos_len; i++) {
# 3396| changed |= klass->clear_secrets(sett_info,
# 3397| &sett_info->property_infos[i],
Error: GCC_ANALYZER_WARNING (CWE-476): [#def335]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c: scope_hint: In function 'nm_setting_get_enum_property_type'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:4547:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:4544:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro '_G_TYPE_CCT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_CLASS_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:4544:26: note: in expansion of macro 'NM_IS_SETTING_CLASS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:4544:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro '_G_TYPE_CCT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_CLASS_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:4544:26: note: in expansion of macro 'NM_IS_SETTING_CLASS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:11: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro '_G_TYPE_CCT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_CLASS_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:497:10: note: in expansion of macro 'NM_IS_SETTING_CLASS'
/usr/include/glib-2.0/gobject/gtype.h:610:66: note: in expansion of macro '_G_TYPE_CCT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-setting.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_CLASS_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting.c:497:10: note: in expansion of macro 'NM_IS_SETTING_CLASS'
# 4545|
# 4546| property_info = _nm_setting_class_get_property_info(setting_class, property_name);
# 4547|-> spec = property_info->param_spec;
# 4548|
# 4549| if (spec && (G_TYPE_IS_ENUM(spec->value_type) || G_TYPE_IS_FLAGS(spec->value_type)))
Error: CLANG_WARNING: [#def336]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-simple-connection.c:56:16: warning[core.NullDereference]: Access to field 'self' results in a dereference of a null pointer (loaded from variable 'priv')
# 54| priv = _NM_SIMPLE_CONNECTION_GET_CONNECTION_PRIVATE(self);
# 55|
# 56|-> priv->self = (NMConnection *) self;
# 57| }
# 58|
Error: CLANG_WARNING: [#def337]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-team-utils.c:580:9: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 578| v_ptrarray_src = *((const GPtrArray *const *) src);
# 579| v_ptrarray_dst = *((GPtrArray **) dst);
# 580|-> len = (v_ptrarray_src ? v_ptrarray_src->len : 0u);
# 581|
# 582| if (v_ptrarray_src && v_ptrarray_src->len > 0) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c: scope_hint: In function '_nm_utils_parse_tc_handle'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:2643:12: warning[-Wanalyzer-null-dereference]: dereference of NULL '_str_sls'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:2641:11: note: in expansion of macro 'nm_str_skip_leading_spaces'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:2641:11: note: in expansion of macro 'nm_str_skip_leading_spaces'
# 2641| sep = nm_str_skip_leading_spaces(sep);
# 2642|
# 2643|-> if (sep[0] == ':') {
# 2644| const char *str2 = &sep[1];
# 2645|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def339]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:2648:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '_str_sls'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:2641:11: note: in expansion of macro 'nm_str_skip_leading_spaces'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:2641:11: note: in expansion of macro 'nm_str_skip_leading_spaces'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:2647:15: note: in expansion of macro 'nm_str_skip_leading_spaces'
# 2646| min = nm_g_ascii_strtoll(str2, (char **) &sep, 0x10);
# 2647| sep = nm_str_skip_leading_spaces(sep);
# 2648|-> if (sep[0] != '\0')
# 2649| goto fail;
# 2650| } else if (sep[0] != '\0')
Error: CLANG_WARNING: [#def340]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:3040:9: warning[deadcode.DeadStores]: Value stored to 'kind' is never read
# 3038| variant = g_hash_table_lookup(ht, "kind");
# 3039| if (variant) {
# 3040|-> kind = g_variant_get_string(variant, NULL);
# 3041| } else {
# 3042| g_set_error_literal(error, 1, 0, _("action name missing."));
Error: CLANG_WARNING: [#def341]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:3269:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'values'
# 3267| }
# 3268|
# 3269|-> vlan_ids = nm_sriov_vf_get_vlan_ids(vf, &num_vlans);
# 3270| if (num_vlans != 0) {
# 3271| g_string_append(str, " vlans");
Error: CLANG_WARNING: [#def342]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:3419:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 3417| }
# 3418|
# 3419|-> return _nm_utils_sriov_vf_from_strparts(str, detail, FALSE, error);
# 3420| }
# 3421|
Error: CLANG_WARNING: [#def343]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:5186:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'option0'
# 5184|
# 5185| if (!validate_dns_option(option0, TRUE, addr_family, option_descs))
# 5186|-> return FALSE;
# 5187|
# 5188| option1_num = _nm_utils_ascii_str_to_int64(option1, 10, 0, G_MAXINT32, -1);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def344]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function 'nm_vpn_plugin_info_list_add'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:454:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:446:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:447:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-vpn-plugin-info.h:22:71: note: in expansion of macro 'NM_TYPE_VPN_PLUGIN_INFO'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:447:26: note: in expansion of macro 'NM_IS_VPN_PLUGIN_INFO'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:447:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:447:26: note: in expansion of macro 'NM_IS_VPN_PLUGIN_INFO'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:447:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:447:26: note: in expansion of macro 'NM_IS_VPN_PLUGIN_INFO'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:447:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:779:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:779:26: note: in expansion of macro 'NM_IS_VPN_PLUGIN_INFO'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:779:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:779:26: note: in expansion of macro 'NM_IS_VPN_PLUGIN_INFO'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:779:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-public/nm-vpn-plugin-info.h:22:37: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:779:26: note: in expansion of macro 'NM_IS_VPN_PLUGIN_INFO'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of 'strcmp' must be non-null
# 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): [#def345]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function 'nm_vpn_plugin_info_list_find_by_name'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:516:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
# 514|
# 515| for (iter = list; iter; iter = iter->next) {
# 516|-> if (strcmp(nm_vpn_plugin_info_get_name(iter->data), name) == 0)
# 517| return iter->data;
# 518| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def346]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function '_service_type_get_default_abbreviation'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:664:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'service_type'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:608:8: note: in expansion of macro 'NM_GOBJECT_CAST_NON_NULL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:58:5: note: in expansion of macro '_NM_GET_PRIVATE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:700:40: note: in expansion of macro 'NM_VPN_PLUGIN_INFO_GET_PRIVATE'
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:702:28: note: in expansion of macro 'g_strdup'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function '_service_type_get_default_abbreviation'
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro 'g_strdup'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:709:32: note: in expansion of macro 'g_strdup'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c: scope_hint: In function '_service_type_get_default_abbreviation'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro 'G_UNLIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:661:10: note: in expansion of macro 'g_str_has_prefix'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:661:10: note: in expansion of macro 'g_str_has_prefix'
# 662| return NULL;
# 663| service_type += NM_STRLEN(NM_DBUS_INTERFACE);
# 664|-> if (service_type[0] != '.')
# 665| return NULL;
# 666| service_type++;
Error: CLANG_WARNING: [#def347]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:1104:24: warning[core.NullDereference]: Access to field 'filename' results in a dereference of a null pointer (loaded from variable 'priv')
# 1102| switch (prop_id) {
# 1103| case PROP_FILENAME:
# 1104|-> priv->filename = g_value_dup_string(value);
# 1105| break;
# 1106| case PROP_KEYFILE:
Error: CLANG_WARNING: [#def348]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:1107:23: warning[core.NullDereference]: Access to field 'keyfile' results in a dereference of a null pointer (loaded from variable 'priv')
# 1105| break;
# 1106| case PROP_KEYFILE:
# 1107|-> priv->keyfile = g_value_dup_boxed(value);
# 1108| break;
# 1109| default:
Error: CLANG_WARNING: [#def349]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-vpn-plugin-info.c:1264:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 1262| NMVpnPluginInfoPrivate *priv = NM_VPN_PLUGIN_INFO_GET_PRIVATE(self);
# 1263|
# 1264|-> g_clear_object(&priv->editor_plugin);
# 1265|
# 1266| G_OBJECT_CLASS(nm_vpn_plugin_info_parent_class)->dispose(object);
Error: CLANG_WARNING: [#def350]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-general.c:678:17: warning[unix.Malloc]: Use of memory after it is freed
# 676| for (i = 0; i < words_len; i++) {
# 677| g_assert(exp_words[i]);
# 678|-> g_assert_cmpstr(exp_words[i], ==, words_g[i]);
# 679| }
# 680| g_assert(words_g[words_len] == NULL);
Error: CLANG_WARNING: [#def351]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-general.c:3304:5: warning[deadcode.DeadStores]: Value stored to 'conn' is never read
# 3302| "s",
# 3303| "ten"););
# 3304|-> conn = _connection_new_from_dbus(dict, &error);
# 3305| g_assert_error(error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_INVALID_PROPERTY);
# 3306| g_assert(g_str_has_prefix(error->message, "802-11-wireless.rate:"));
Error: CLANG_WARNING: [#def352]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-general.c:3316:5: warning[deadcode.DeadStores]: Value stored to 'conn' is never read
# 3314| "b",
# 3315| FALSE););
# 3316|-> conn = _connection_new_from_dbus(dict, &error);
# 3317| g_assert_error(error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_INVALID_PROPERTY);
# 3318| g_assert(g_str_has_prefix(error->message, "802-11-wireless.mode:"));
Error: CLANG_WARNING: [#def353]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-general.c:3328:5: warning[deadcode.DeadStores]: Value stored to 'conn' is never read
# 3326| "s",
# 3327| "fred"););
# 3328|-> conn = _connection_new_from_dbus(dict, &error);
# 3329| g_assert_error(error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_INVALID_PROPERTY);
# 3330| g_assert(g_str_has_prefix(error->message, "802-11-wireless.ssid:"));
Error: CLANG_WARNING: [#def354]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-general.c:3340:5: warning[deadcode.DeadStores]: Value stored to 'conn' is never read
# 3338| "i",
# 3339| 42););
# 3340|-> conn = _connection_new_from_dbus(dict, &error);
# 3341| g_assert_error(error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_INVALID_PROPERTY);
# 3342| g_assert(g_str_has_prefix(error->message, "802-11-wireless.bssid:"));
Error: CLANG_WARNING: [#def355]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-general.c:3352:5: warning[deadcode.DeadStores]: Value stored to 'conn' is never read
# 3350| "s",
# 3351| "private"););
# 3352|-> conn = _connection_new_from_dbus(dict, &error);
# 3353| g_assert_error(error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_INVALID_PROPERTY);
# 3354| g_assert(g_str_has_prefix(error->message, "ipv6.ip6-privacy:"));
Error: CLANG_WARNING: [#def356]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-general.c:3364:5: warning[deadcode.DeadStores]: Value stored to 'conn' is never read
# 3362| "s",
# 3363| "1234::5678"););
# 3364|-> conn = _connection_new_from_dbus(dict, &error);
# 3365| g_assert_error(error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_INVALID_PROPERTY);
# 3366| g_assert(g_str_has_prefix(error->message, "ipv6.addresses:"));
Error: CLANG_WARNING: [#def357]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-setting.c:3342:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'opt_keys'
# 3340| g_string_append_printf(keyfile_entries, "%s=%s\n", k, str_tmp->str);
# 3341| }
# 3342|-> for (i = 0; i < n_opts; i++)
# 3343| g_assert(opt_found[i]);
# 3344| if (n_opts > 0)
Error: CLANG_WARNING: [#def358]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-setting.c:3342:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'opt_vals'
# 3340| g_string_append_printf(keyfile_entries, "%s=%s\n", k, str_tmp->str);
# 3341| }
# 3342|-> for (i = 0; i < n_opts; i++)
# 3343| g_assert(opt_found[i]);
# 3344| if (n_opts > 0)
Error: CLANG_WARNING: [#def359]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/tests/test-setting.c:3344:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'opt_found'
# 3342| for (i = 0; i < n_opts; i++)
# 3343| g_assert(opt_found[i]);
# 3344|-> if (n_opts > 0)
# 3345| g_string_append_printf(keyfile_entries, "\n");
# 3346| *out_keyfile_entries = g_string_free(keyfile_entries, FALSE);
Error: CLANG_WARNING: [#def360]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-crypto/nm-crypto-gnutls.c:117:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'output..bin'
# 115| err = gnutls_cipher_init(&ctx, cipher_mech, &key_dt, &iv_dt);
# 116| if (err < 0) {
# 117|-> g_set_error(error,
# 118| _NM_CRYPTO_ERROR,
# 119| _NM_CRYPTO_ERROR_DECRYPTION_FAILED,
Error: CLANG_WARNING: [#def361]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-crypto/nm-crypto.c:325:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'str_p'
# 323| }
# 324|
# 325|-> parsed.bin = (guint8 *) g_base64_decode(str, &parsed.len);
# 326| if (!parsed.bin || parsed.len == 0) {
# 327| g_set_error(error,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def362]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-enum-utils.c: scope_hint: In function '_nm_utils_enum_get_values'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-enum-utils.c:325:63: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 323| int i;
# 324| GArray *values_full = _nm_utils_enum_get_values_full(type, from, to, NULL);
# 325|-> GPtrArray *values = g_ptr_array_sized_new(values_full->len + 1);
# 326|
# 327| for (i = 0; i < values_full->len; i++) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def363]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:42: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c: scope_hint: In function 'supplicant_interface_release'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-glib.h:56:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'self'
/usr/include/glib-2.0/gobject/gobject.h:695:36: note: in expansion of macro 'g_clear_pointer'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:253:9: note: in expansion of macro 'g_clear_object'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:198:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:208:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'supplicant_interface_release'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:25: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c: scope_hint: In function 'supplicant_interface_release'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c: scope_hint: In function 'supplicant_interface_release'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'supplicant_interface_release'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:439:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c: scope_hint: In function 'supplicant_interface_release'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:244:5: note: in expansion of macro 'nm_clear_pointer'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:244:5: note: in expansion of macro 'nm_clear_pointer'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:244:5: note: in expansion of macro 'nm_clear_pointer'
/usr/include/glib-2.0/gobject/gobject.h:695:36: note: in expansion of macro 'g_clear_pointer'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-macsec.c:253:9: note: in expansion of macro 'g_clear_object'
# 54| { \
# 55| typeof((pp)) _pp = (pp); \
# 56|-> typeof(*_pp) _ptr = *_pp; \
# 57| \
# 58| G_STATIC_ASSERT(sizeof *(pp) == sizeof(gpointer)); \
Error: CLANG_WARNING: [#def364]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-hash-utils.c:109:13: warning[core.NullDereference]: Dereference of null pointer
# 107| * Also, ensure that we don't return zero (like for nm_hash_complete()).
# 108| */
# 109|-> return ((*NM_CAST_ALIGN(guint, _get_hash_key())) ^ static_seed) ?: 3679500967u;
# 110| }
# 111|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def365]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-inet-utils.c: scope_hint: In function '_parse_legacy_addr4'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-inet-utils.c:398:13: warning[-Wanalyzer-null-argument]: use of NULL 's' where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-inet-utils.c:3: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1357:13: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1400:23: note: in expansion of macro 'nm_malloc_maybe_a'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-inet-utils.c:392:9: note: in expansion of macro 'nm_memdup_maybe_a'
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
# 396| gint32 v;
# 397|
# 398|-> s = strchr(s, '.');
# 399| if (s) {
# 400| s[0] = '\0';
Error: CLANG_WARNING: [#def366]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-inet-utils.c:407:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'current_token'
# 405| /* Exactly for the last digit, we expect to have no more following token.
# 406| * But this isn't the case. Abort. */
# 407|-> g_set_error(error,
# 408| NM_UTILS_ERROR,
# 409| NM_UTILS_ERROR_INVALID_ARGUMENT,
Error: CLANG_WARNING: [#def367]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-io-utils.c:273:21: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 271| errsv = errno;
# 272| if (ferror(f)) {
# 273|-> if (do_bzero_mem)
# 274| nm_explicit_bzero(buf, sizeof(buf));
# 275| return _get_contents_error(error, errsv, out_errsv, "error during fread");
Error: GCC_ANALYZER_WARNING (CWE-476): [#def368]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:21: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-json-aux.h: scope_hint: In function '_nm_auto_decref_json.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-json-aux.h:160:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 158| {
# 159| if (*p_json && (*p_json)->refcount != (size_t) -1 && --(*p_json)->refcount == 0)
# 160|-> nm_json_vt()->nm_json_delete(*p_json);
# 161| }
# 162|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def369]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-json-aux.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-json-aux.h: scope_hint: In function ‘_nm_auto_decref_json.part.0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-json-aux.h:160:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 158| {
# 159| if (*p_json && (*p_json)->refcount != (size_t) -1 && --(*p_json)->refcount == 0)
# 160|-> nm_json_vt()->nm_json_delete(*p_json);
# 161| }
# 162|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def370]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c: scope_hint: In function 'supplicant_iface_start'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:27: warning[-Wanalyzer-null-dereference]: dereference of NULL 'error'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:627:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:627:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'supplicant_iface_start'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:28:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:41: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c: scope_hint: In function 'supplicant_iface_start'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c: scope_hint: In function 'supplicant_iface_start'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'supplicant_iface_start'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c: scope_hint: In function 'supplicant_iface_start'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:94:40: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:42:28: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:94:40: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:812:37: note: in expansion of macro '__NM_UTILS_MACRO_REST_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:191:5: note: in expansion of macro '_NM_MACRO_CALL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:42:28: note: in expansion of macro '_NM_UTILS_MACRO_REST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:88:13: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:106:5: note: in expansion of macro 'nm_log_ptr'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-logging.h:33:13: note: in expansion of macro 'nm_log_obj'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:178:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/devices/nm-device-ethernet.c:707:9: note: in expansion of macro '_LOGE'
# 104| ...) _nm_printf(10, 11);
# 105|
# 106|-> #define _nm_log_full(...) _nm_log_impl(__VA_ARGS__)
# 107|
# 108| static inline NMLogLevel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def371]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c: scope_hint: In function 'nm_active_connection_get_state'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:615:64: warning[-Wanalyzer-null-dereference]: dereference of NULL 'self'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:360:66: note: in definition of macro 'NM_PROPAGATE_CONST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:101:5: note: in expansion of macro '_NM_GET_PRIVATE_PTR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:227:12: note: in expansion of macro 'NM_ACTIVE_CONNECTION_GET_PRIVATE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:360:66: note: in definition of macro 'NM_PROPAGATE_CONST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:101:5: note: in expansion of macro '_NM_GET_PRIVATE_PTR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:227:12: note: in expansion of macro 'NM_ACTIVE_CONNECTION_GET_PRIVATE'
# 613| NM_GOBJECT_CAST_NON_NULL(type, (self), is_check, ##__VA_ARGS__); \
# 614| \
# 615|-> NM_PROPAGATE_CONST(_self_get_private, _self_get_private->_priv); \
# 616| })
# 617| #else
Error: CLANG_WARNING: [#def372]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1414:12: warning[unix.Malloc]: Use of memory allocated with size zero
# 1412| if (len > 0)
# 1413| strncpy(s, str, len);
# 1414|-> s[len] = '\0';
# 1415| return s;
# 1416| NM_PRAGMA_WARNING_REENABLE;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def373]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function '_nm_utils_is_empty_ssid_arr.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:6120:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ssid'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2918:5: note: in expansion of macro 'g_return_val_if_fail'
# 6118|
# 6119| /* Single white space is for Linksys APs */
# 6120|-> if (len == 1 && ssid[0] == ' ')
# 6121| return TRUE;
# 6122|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def374]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-default-libnm-core.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c: scope_hint: In function '_qdiscs_to_variant'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:1772:5: warning[-Wanalyzer-null-dereference]: dereference of NULL 'qdisc'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:1781:5: note: in expansion of macro 'nm_utils_named_values_from_strdict_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:1398:21: note: in expansion of macro 'nm_utils_named_values_from_strdict'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:249:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:249:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:266:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:266:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:301:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:301:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:1781:5: note: in expansion of macro 'nm_utils_named_values_from_strdict_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-setting-tc-config.c:1398:21: note: in expansion of macro 'nm_utils_named_values_from_strdict'
# 1770| provided_buffer_len, \
# 1771| out_allocated_buffer) \
# 1772|-> nm_utils_hash_to_array_full((hash), \
# 1773| (out_len), \
# 1774| (compare_func), \
Error: CLANG_WARNING: [#def375]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:174:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 172| new_len = strbuf->_priv_len - l;
# 173| if (pos + l < strbuf->_priv_len) {
# 174|-> memmove(&strbuf->_priv_str[pos],
# 175| &strbuf->_priv_str[pos + l],
# 176| strbuf->_priv_len - (pos + l));
Error: GCC_ANALYZER_WARNING (CWE-476): [#def376]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:200:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function 'nm_utils_buf_utf8safe_escape'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2918:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro '_nm_str_buf_append_c_n2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro '_nm_str_buf_append_c_n1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro 'nm_str_buf_append_c'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro '_nm_str_buf_append_c_n2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro '_nm_str_buf_append_c_n1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro 'nm_str_buf_append_c'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro 'G_UNLIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro '_nm_str_buf_append_c_n2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro '_nm_str_buf_append_c_n1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro 'nm_str_buf_append_c'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:220:13: note: in expansion of macro '_nm_str_buf_append_c_2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro '_nm_str_buf_append_c_n2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro '_nm_str_buf_append_c_n1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2962:17: note: in expansion of macro 'nm_str_buf_append_c'
# 198| _nm_str_buf_append_c_1(NMStrBuf *strbuf, char ch)
# 199| {
# 200|-> strbuf->_priv_str[strbuf->_priv_len++] = ch;
# 201| }
# 202|
Error: CLANG_WARNING: [#def377]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-io-utils.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:200:44: warning[core.NullDereference]: Array access (via field '_priv_str') results in a null pointer dereference
# 198| _nm_str_buf_append_c_1(NMStrBuf *strbuf, char ch)
# 199| {
# 200|-> strbuf->_priv_str[strbuf->_priv_len++] = ch;
# 201| }
# 202|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def378]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h: scope_hint: In function 'nm_str_buf_append_len.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:256:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2752:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2753:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c:2753:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h: scope_hint: In function 'nm_str_buf_append_len.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro 'G_UNLIKELY'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 254| if (len > 0) {
# 255| nm_str_buf_maybe_expand(strbuf, len + 1, FALSE);
# 256|-> memcpy(&strbuf->_priv_str[strbuf->_priv_len], str, len);
# 257| strbuf->_priv_len += len;
# 258| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def379]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h: scope_hint: In function 'nm_str_buf_append_len0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:271:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:4494:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro 'G_UNLIKELY'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 269| nm_str_buf_maybe_expand(strbuf, len + 1u, FALSE);
# 270| if (len > 0) {
# 271|-> memcpy(&strbuf->_priv_str[strbuf->_priv_len], str, len);
# 272| strbuf->_priv_len += len;
# 273| }
Error: CLANG_WARNING: [#def380]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/ndisc/nm-lndp-ndisc.c:16: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:357:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 355| if (len > 0) {
# 356| nm_str_buf_maybe_expand(strbuf, len, FALSE);
# 357|-> memset(&strbuf->_priv_str[strbuf->_priv_len], ch, len);
# 358| strbuf->_priv_len += len;
# 359| }
Error: CLANG_WARNING: [#def381]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-aux-extern/tests/test-libnm-client-aux.c:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:701:9: warning[deadcode.DeadStores]: Value stored to 'log_level' is never read
# 699| /* if the log level is not specified (but the domain is), we assume
# 700| * the caller wants to set it depending on is_debug */
# 701|-> log_level = is_debug ? "TRACE" : "WARN";
# 702| }
# 703|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def382]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1841:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:30:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:31:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1053:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1055:9: note: in expansion of macro ‘G_UNLIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:605:5: note: in expansion of macro ‘_NMP_OBJECT_CAST’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-l3-config-data.h:325:12: note: in expansion of macro ‘NMP_OBJECT_CAST_IP4_ADDRESS’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:98:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:99:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:100:5: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
/usr/include/glib-2.0/glib/gtestutils.h:73:61: note: in definition of macro ‘g_assert_cmpint’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1841:51: note: in definition of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c: scope_hint: In function ‘test_generic_options’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-test-utils.h:1871:13: note: in expansion of macro ‘nmtst_assert_ip4_address’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/dhcp/tests/test-dhcp-utils.c:103:5: note: in expansion of macro ‘nmtst_assert_ip_address’
# 1839| }
# 1840| #define nmtst_assert_ip4_address(addr, str_expected) \
# 1841|-> _nmtst_assert_ip4_address(__FILE__, __LINE__, addr, str_expected)
# 1842|
# 1843| static inline void
Error: COMPILER_WARNING (CWE-457): [#def383]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-uuid.c: scope_hint: In function 'nm_uuid_generate_from_strings_strv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-uuid.c:490:12: warning[-Wmaybe-uninitialized]: '_1' may be used uninitialized
# 490 | return nm_uuid_generate_from_string_str(s, slen, uuid_type, type_args);
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-uuid.c:392:1: note: by argument 1 of type 'const char *' to 'nm_uuid_generate_from_string_str' declared here
# 392 | nm_uuid_generate_from_string_str(const char *s,
# | ^
# 488| }
# 489|
# 490|-> return nm_uuid_generate_from_string_str(s, slen, uuid_type, type_args);
# 491| }
Error: CLANG_WARNING: [#def384]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:338:17: warning[unix.Malloc]: Potential leak of memory pointed to by '__s1'
# 336| g_assert(!dup_free);
# 337| else
# 338|-> g_assert(dup == dup_free);
# 339| }
# 340|
Error: CLANG_WARNING: [#def385]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:601:16: warning[unix.Malloc]: Potential leak of memory pointed to by '__s2'
# 599| g_assert(!str4);
# 600| g_assert(s3 == s4);
# 601|-> } else if (s4 && strlen(s4) >= 10) {
# 602| g_assert(str4);
# 603| g_assert(s4 == str4);
Error: CLANG_WARNING: [#def386]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:603:9: warning[unix.Malloc]: Potential leak of memory pointed to by '__s2'
# 601| } else if (s4 && strlen(s4) >= 10) {
# 602| g_assert(str4);
# 603|-> g_assert(s4 == str4);
# 604| } else
# 605| g_assert(!str4);
Error: CLANG_WARNING: [#def387]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:1831:63: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1829|
# 1830| for (j = 0; j < encoded_wrapped.len; j++)
# 1831|-> g_assert((nm_str_buf_get_str(&encoded_wrapped)[j] == '\n') == (j % (m + 1) == m));
# 1832| }
# 1833| }
Error: CLANG_WARNING: [#def388]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:2071:18: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 2069| g_assert(e);
# 2070| g_assert(strcspn(e, "/") == (size_t) r);
# 2071|-> g_assert(strlen(*expected) == (size_t) r);
# 2072| g_assert(strncmp(e, *expected++, r) == 0);
# 2073| }
Error: CLANG_WARNING: [#def389]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/tests/test-shared-general.c:2071:25: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'expected')
# 2069| g_assert(e);
# 2070| g_assert(strcspn(e, "/") == (size_t) r);
# 2071|-> g_assert(strlen(*expected) == (size_t) r);
# 2072| g_assert(strncmp(e, *expected++, r) == 0);
# 2073| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def390]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c: scope_hint: In function 'nlmsg_alloc_convert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:410:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1549:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1549:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1621:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1621:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1621:9: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1622:9: note: in expansion of macro 'NM_SET_OUT'
/usr/include/sys/socket.h:33: included_from: Included from here.
/usr/include/netinet/in.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:168:49: note: in definition of macro 'NM_PASTE_ARGS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro 'NM_PASTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1590:27: note: in expansion of macro 'NM_UNIQ_T'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1596:34: note: in expansion of macro '_NM_CAST_ALIGN'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1259:11: note: in expansion of macro 'NM_CAST_ALIGN'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c: scope_hint: In function 'nlmsg_alloc_convert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:392:9: note: in expansion of macro 'g_return_val_if_reached'
# 408|
# 409| nm = nlmsg_alloc(NLMSG_ALIGN(hdr->nlmsg_len));
# 410|-> memcpy(nm->nm_nlh, hdr, hdr->nlmsg_len);
# 411| return nm;
# 412| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def391]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c: scope_hint: In function 'nlmsg_put'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:480:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'n'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:392:9: note: in expansion of macro 'g_return_val_if_reached'
# 478| uint16_t flags)
# 479| {
# 480|-> struct nlmsghdr *nlh = (struct nlmsghdr *) n->nm_nlh;
# 481|
# 482| nm_assert(nlh->nlmsg_len >= NLMSG_HDRLEN);
Error: CLANG_WARNING: [#def392]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1362:9: warning[deadcode.DeadStores]: Value stored to 'nmerr' is never read
# 1360| }
# 1361| skip:
# 1362|-> nmerr = 0;
# 1363| hdr = nlmsg_next(hdr, &n);
# 1364| }
Error: CLANG_WARNING: [#def393]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-netlink.c:1370:9: warning[deadcode.DeadStores]: Value stored to 'nmerr' is never read
# 1368| nm_clear_g_free(&buf);
# 1369|
# 1370|-> nmerr = 0;
# 1371| goto continue_reading;
# 1372| }
Error: CLANG_WARNING: [#def394]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-utils.c:208:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'edata_backup'
# 206| * managed to complete the call. In both cases, the error code is good. */
# 207| failure_reason =
# 208|-> "cannot resolve ifindex after ioctl call. Probably the device was just removed";
# 209| goto out;
# 210| }
Error: CLANG_WARNING: [#def395]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-utils.c:847:9: warning[deadcode.DeadStores]: Value stored to 'success' is never read
# 845| r = _ethtool_call_handle(&shandle, sfeatures, sfeatures_len);
# 846| if (r < 0) {
# 847|-> success = FALSE;
# 848| nm_log_trace(LOGD_PLATFORM,
# 849| "ethtool[%d]: %s: failure setting features (%s)",
Error: GCC_ANALYZER_WARNING (CWE-775): [#def396]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-utils.c: scope_hint: In function 'nmp_utils_sysctl_open_netdir'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-utils.c:2130:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&sysdir, 589824)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-utils.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-utils.c:2102:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform-utils.c: scope_hint: In function 'nmp_utils_sysctl_open_netdir'
# 2128| nm_assert_not_reached();
# 2129|
# 2130|-> fd_dir = open(sysdir, O_DIRECTORY | O_CLOEXEC);
# 2131| if (fd_dir < 0)
# 2132| continue;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def397]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c: scope_hint: In function 'nm_utils_ip_routes_to_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform.h:414:81: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1770:20: note: in expansion of macro 'NM_PLATFORM_IP_ROUTE_IS_DEFAULT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_utils_ip_routes_to_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_utils_ip_routes_to_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c: scope_hint: In function 'nm_utils_ip_routes_to_dbus'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:611:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1700:39: note: in expansion of macro 'NMP_OBJECT_CAST_IPX_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1770:20: note: in expansion of macro 'NM_PLATFORM_IP_ROUTE_IS_DEFAULT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1770:20: note: in expansion of macro 'NM_PLATFORM_IP_ROUTE_IS_DEFAULT'
# 412| NMPlatformIP6Route)
# 413|
# 414|-> #define NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route) (NM_PLATFORM_IP_ROUTE_CAST(route)->plen <= 0)
# 415|
# 416| struct _NMPlatformIP4Route {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def398]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c: scope_hint: In function 'nm_utils_platform_capture_ip_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nm-platform.h:414:81: warning[-Wanalyzer-null-dereference]: dereference of NULL 'best_default_route'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1898:13: note: in expansion of macro 'NM_PLATFORM_IP_ROUTE_IS_DEFAULT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1827:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1827:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1827:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_utils_platform_capture_ip_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1827:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c: scope_hint: In function 'nm_utils_platform_capture_ip_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1888:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_utils_platform_capture_ip_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1888:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1888:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nm_utils_platform_capture_ip_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1888:5: note: in expansion of macro 'nm_platform_iter_obj_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1071:26: note: in definition of macro 'NM_SET_OUT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c: scope_hint: In function 'nm_utils_platform_capture_ip_setting'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:611:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1889:53: note: in expansion of macro 'NMP_OBJECT_CAST_IPX_ROUTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/NetworkManagerUtils.c:1898:13: note: in expansion of macro 'NM_PLATFORM_IP_ROUTE_IS_DEFAULT'
# 412| NMPlatformIP6Route)
# 413|
# 414|-> #define NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route) (NM_PLATFORM_IP_ROUTE_CAST(route)->plen <= 0)
# 415|
# 416| struct _NMPlatformIP4Route {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def399]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c: scope_hint: In function 'nmp_global_tracker_track_rule_from_platform'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:1137:43: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:3: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:1123:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:1134:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nmp_global_tracker_track_rule_from_platform'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:1134:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:1134:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nmp_global_tracker_track_rule_from_platform'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:1134:5: note: in expansion of macro 'nmp_cache_iter_for_each'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c: scope_hint: In function 'nmp_global_tracker_track_rule_from_platform'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:615:5: note: in expansion of macro '_NMP_OBJECT_CAST'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-global-tracker.c:1135:43: note: in expansion of macro 'NMP_OBJECT_CAST_ROUTING_RULE'
# 1135| const NMPlatformRoutingRule *rr = NMP_OBJECT_CAST_ROUTING_RULE(o);
# 1136|
# 1137|-> if (addr_family != AF_UNSPEC && rr->addr_family != addr_family)
# 1138| continue;
# 1139|
Error: CLANG_WARNING: [#def400]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:166:59: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
# 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): [#def401]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c: scope_hint: In function 'nmp_netns_bind_to_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:635:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'creat(filename, 292)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:617:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:488:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib.h:33: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2037:10: note: in expansion of macro 'g_array_index'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:245:17: note: in expansion of macro 'nm_g_array_last'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c: scope_hint: In function 'nmp_netns_bind_to_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:452:5: note: in expansion of macro 'g_return_val_if_fail'
# 633| }
# 634|
# 635|-> if ((fd = creat(filename, S_IRUSR | S_IRGRP | S_IROTH)) == -1) {
# 636| errsv = errno;
# 637| _LOGE(self, "bind: failed to create %s: %s", filename, nm_strerror_native(errsv));
Error: GCC_ANALYZER_WARNING (CWE-775): [#def402]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:654:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(filename, 524288)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:616:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:617:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.h:16:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:487:26: note: in expansion of macro 'NMP_IS_NETNS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:488:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2037:10: note: in expansion of macro 'g_array_index'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:245:17: note: in expansion of macro 'nm_g_array_last'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c: scope_hint: In function 'nmp_netns_bind_to_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-netns.c:452:5: note: in expansion of macro 'g_return_val_if_fail'
# 652|
# 653| if (out_fd) {
# 654|-> if ((fd = open(filename, O_RDONLY | O_CLOEXEC)) == -1) {
# 655| errsv = errno;
# 656| _LOGE(self, "bind: failed to open %s: %s", filename, nm_strerror_native(errsv));
Error: CLANG_WARNING: [#def403]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:410:16: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 408| obj_type = NMP_OBJECT_GET_TYPE(obj_a);
# 409| if (!NM_IN_SET(obj_type, NMP_OBJECT_TYPE_IP4_ROUTE, NMP_OBJECT_TYPE_IP6_ROUTE)
# 410|-> || NMP_OBJECT_CAST_IP_ROUTE(obj_a)->ifindex < 0) {
# 411| if (h)
# 412| nm_hash_update_val(h, obj_a);
Error: CLANG_WARNING: [#def404]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:1088:13: warning[deadcode.DeadStores]: Value stored to 'b' is never read
# 1086| buf_size);
# 1087| l = strlen(b);
# 1088|-> b += l;
# 1089| buf_size -= l;
# 1090| }
Error: CLANG_WARNING: [#def405]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:1089:13: warning[deadcode.DeadStores]: Value stored to 'buf_size' is never read
# 1087| l = strlen(b);
# 1088| b += l;
# 1089|-> buf_size -= l;
# 1090| }
# 1091|
Error: CLANG_WARNING: [#def406]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:1867:12: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 1865| _vt_cmd_obj_is_alive_link(const NMPObject *obj)
# 1866| {
# 1867|-> return NMP_OBJECT_CAST_LINK(obj)->ifindex > 0
# 1868| && (obj->_link.netlink.is_in_netlink || obj->_link.udev.device);
# 1869| }
Error: CLANG_WARNING: [#def407]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:1874:12: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 1872| _vt_cmd_obj_is_alive_ipx_address(const NMPObject *obj)
# 1873| {
# 1874|-> return NMP_OBJECT_CAST_IP_ADDRESS(obj)->ifindex > 0;
# 1875| }
# 1876|
Error: CLANG_WARNING: [#def408]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:1895:13: warning[core.NullDereference]: Access to field 'r_rtm_flags' results in a dereference of a null pointer
# 1893| * will remove the old version of the update.
# 1894| **/
# 1895|-> return !NM_FLAGS_HAS(NMP_OBJECT_CAST_IP_ROUTE(obj)->r_rtm_flags, RTM_F_CLONED);
# 1896| }
# 1897|
Error: CLANG_WARNING: [#def409]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:1907:12: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 1905| _vt_cmd_obj_is_alive_qdisc(const NMPObject *obj)
# 1906| {
# 1907|-> return NMP_OBJECT_CAST_QDISC(obj)->ifindex > 0;
# 1908| }
# 1909|
Error: CLANG_WARNING: [#def410]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:1913:12: warning[core.NullDereference]: Access to field 'ifindex' results in a dereference of a null pointer
# 1911| _vt_cmd_obj_is_alive_tfilter(const NMPObject *obj)
# 1912| {
# 1913|-> return NMP_OBJECT_CAST_TFILTER(obj)->ifindex > 0;
# 1914| }
# 1915|
Error: CLANG_WARNING: [#def411]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:2426:50: warning[core.NullDereference]: Access to field 'addr_family' results in a dereference of a null pointer
# 2424| nm_assert_addr_family(addr_family);
# 2425| o = _nmp_object_stackinit_from_type(&lookup->selector_obj, obj_type);
# 2426|-> NMP_OBJECT_CAST_ROUTING_RULE(o)->addr_family = addr_family;
# 2427| lookup->cache_id_type = NMP_CACHE_ID_TYPE_OBJECT_BY_ADDR_FAMILY;
# 2428| return _L(lookup);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def412]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c: scope_hint: In function 'nmp_cache_update_link_udev'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:3153:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cache'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:2201:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:2201:5: note: in expansion of macro 'g_return_val_if_fail'
# 3151| obj_new->_link.udev.device = udev_device_ref(udevice);
# 3152|
# 3153|-> _nmp_object_fixup_link_udev_fields(&obj_new, NULL, cache->use_udev);
# 3154|
# 3155| _idxcache_update(cache, NULL, obj_new, FALSE, &entry_new);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def413]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h: scope_hint: In function 'nmp_cache_reresolve_main_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:1022:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.h:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:8: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:325:5: note: in expansion of macro 'g_return_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/c-list-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h: scope_hint: In function 'nmp_cache_reresolve_main_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-dedup-multi.h:355:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:2190:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:2191:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:2191:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-platform/nmp-object.c:2191:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
# 1020|
# 1021| nm_assert(main_entry);
# 1022|-> nm_assert(main_entry->obj == entry->obj);
# 1023|
# 1024| return main_entry;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def414]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c: scope_hint: In function 'svWarnInvalid'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:173:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '_str_sls'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:168:49: note: in definition of macro 'NM_PASTE_ARGS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro 'NM_PASTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:958:14: note: in expansion of macro 'NM_UNIQ_T'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:969:27: note: in expansion of macro '_NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1561:18: note: in expansion of macro 'NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1547:10: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'svWarnInvalid'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:118:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1547:10: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c: scope_hint: In function 'svWarnInvalid'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/c-list/src/c-list.h:107:37: note: in definition of macro 'c_list_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1551:5: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1551:5: note: in expansion of macro 'c_list_for_each_entry'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:66: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1560:19: note: in expansion of macro 'nm_str_skip_leading_spaces'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1560:19: note: in expansion of macro 'nm_str_skip_leading_spaces'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:168:49: note: in definition of macro 'NM_PASTE_ARGS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro 'NM_PASTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:958:14: note: in expansion of macro 'NM_UNIQ_T'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:969:27: note: in expansion of macro '_NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1561:18: note: in expansion of macro 'NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:168:49: note: in definition of macro 'NM_PASTE_ARGS'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:173:28: note: in expansion of macro 'NM_PASTE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:958:14: note: in expansion of macro 'NM_UNIQ_T'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:969:27: note: in expansion of macro '_NM_IN_SET'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/shvar.c:1561:18: note: in expansion of macro 'NM_IN_SET'
# 171| /* Taken from systemd's UNIQ_T and UNIQ macros. */
# 172|
# 173|-> #define NM_UNIQ_T(x, uniq) NM_PASTE(__unique_prefix_, NM_PASTE(x, uniq))
# 174| #define NM_UNIQ __COUNTER__
# 175|
Error: COMPILER_WARNING: [#def415]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-lldp/nm-lldp-neighbor.c:3: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-lldp/nm-lldp-neighbor.c: scope_hint: In function 'nm_lldp_neighbor_tlv_get_oui'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:12: warning[-Wnonnull-compare]: 'nonnull' argument 'oui' compared to NULL
# 191 | if (expr) \
# | ^
# 189| int NM_UNIQ_T(V, v); \
# 190| \
# 191|-> if (expr) \
# 192| NM_UNIQ_T(V, v) = 1; \
# 193| else \
Error: GCC_ANALYZER_WARNING (CWE-688): [#def416]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:626:12: warning[-Wanalyzer-null-argument]: use of NULL 'key' where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-io-utils.c: scope_hint: In function 'parse_env_file_push'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-io-utils.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro '_nm_str_buf_append_c_n2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro '_nm_str_buf_append_c_n1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-io-utils.c:908:17: note: in expansion of macro 'nm_str_buf_append_c'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro '_nm_str_buf_append_c_n2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro '_nm_str_buf_append_c_n1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-io-utils.c:908:17: note: in expansion of macro 'nm_str_buf_append_c'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro '_G_BOOLEAN_EXPR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:99:9: note: in expansion of macro 'G_UNLIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:225:49: note: in expansion of macro '_nm_str_buf_append_c_n2'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:228:5: note: in expansion of macro '_nm_str_buf_append_c_n1'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-io-utils.c:908:17: note: in expansion of macro 'nm_str_buf_append_c'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h: scope_hint: In function 'parse_env_file_push'
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
# 624| nm_streq(const char *s1, const char *s2)
# 625| {
# 626|-> return strcmp(s1, s2) == 0;
# 627| }
# 628|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def417]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:626:12: warning[-Wanalyzer-null-argument]: use of NULL 'kind' where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c: scope_hint: In function 'nm_utils_tc_qdisc_from_str'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:5488:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:5489:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:5489:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:5490:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:5490:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-core-impl/nm-utils.c:5491:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:79:1: note: in expansion of macro 'NM_AUTO_DEFINE_FCN_VOID0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h: scope_hint: In function 'nm_utils_tc_qdisc_from_str'
/usr/include/string.h:156:12: note: argument 2 of 'strcmp' must be non-null
# 624| nm_streq(const char *s1, const char *s2)
# 625| {
# 626|-> return strcmp(s1, s2) == 0;
# 627| }
# 628|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def418]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:626:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function 'nm_path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function 'nm_path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function 'nm_path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.c: scope_hint: In function 'nm_path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h: scope_hint: In function 'nm_path_find_first_component'
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
# 624| nm_streq(const char *s1, const char *s2)
# 625| {
# 626|-> return strcmp(s1, s2) == 0;
# 627| }
# 628|
Error: CLANG_WARNING: [#def419]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-device.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-impl/nm-default-libnm.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:626:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 624| nm_streq(const char *s1, const char *s2)
# 625| {
# 626|-> return strcmp(s1, s2) == 0;
# 627| }
# 628|
Error: CLANG_WARNING: [#def420]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-dbus-manager.c:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:626:12: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 624| nm_streq(const char *s1, const char *s2)
# 625| {
# 626|-> return strcmp(s1, s2) == 0;
# 627| }
# 628|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def421]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c: scope_hint: In function 'dispose'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1259:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '*(NMActiveConnection *)object._priv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:716:29: note: in expansion of macro 'nm_clear_pointer'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1525:5: note: in expansion of macro 'nm_clear_g_free'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:23: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:126:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1521:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h: scope_hint: In function 'dispose'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:58:13: note: in expansion of macro 'nm_logging_enabled'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:126:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1521:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c: scope_hint: In function 'dispose'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:126:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1521:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:106:40: note: in definition of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:126:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-hash-utils.h:328:16: note: in expansion of macro 'nm_sprintf_buf'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:134:16: note: in expansion of macro 'NM_HASH_OBFUSCATE_PTR_STR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1521:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:126:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1521:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:33:5: note: in expansion of macro '_nm_log_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:45:5: note: in expansion of macro '_nm_log_mt'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-log-core/nm-logging.h:59:13: note: in expansion of macro '_nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:126:9: note: in expansion of macro 'nm_log'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-logging-fwd.h:175:20: note: in expansion of macro '_NMLOG'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1521:5: note: in expansion of macro '_LOGD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:716:29: note: in expansion of macro 'nm_clear_pointer'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-active-connection.c:1525:5: note: in expansion of macro 'nm_clear_g_free'
# 1257| int _changed = false; \
# 1258| \
# 1259|-> if (_pp && (_p = *_pp)) { \
# 1260| _NM_ENSURE_POINTER(_p); \
# 1261| \
Error: GCC_ANALYZER_WARNING (CWE-688): [#def422]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c: scope_hint: In function 'cmp_fcn.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1405:57: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro 'NM_CMP_RETURN_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro 'NM_CMP_DIRECT_STRCMP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1436:5: note: in expansion of macro 'NM_CMP_DIRECT_UNSAFE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:77:5: note: in expansion of macro 'NM_CMP_FIELD_UNSAFE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro 'NM_CMP_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:85:9: note: in expansion of macro 'NM_CMP_FIELD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro 'NM_CMP_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:85:9: note: in expansion of macro 'NM_CMP_FIELD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro 'NM_CMP_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:86:9: note: in expansion of macro 'NM_CMP_FIELD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1430:35: note: in expansion of macro 'NM_CMP_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:86:9: note: in expansion of macro 'NM_CMP_FIELD'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro 'NM_CMP_RETURN_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro 'NM_CMP_DIRECT_STRCMP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h: scope_hint: In function 'cmp_fcn.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:86:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:18:38: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:86:26: note: in expansion of macro 'NM_IS_SETTINGS_STORAGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:86:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:18:38: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:86:26: note: in expansion of macro 'NM_IS_SETTINGS_STORAGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro 'NM_CMP_RETURN_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro 'NM_CMP_DIRECT_STRCMP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c: scope_hint: In function 'cmp_fcn.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro 'NM_CMP_RETURN_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro 'NM_CMP_DIRECT_STRCMP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h: scope_hint: In function 'cmp_fcn.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:191:13: note: in definition of macro '_NM_BOOLEAN_EXPR_IMPL'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:86:5: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:18:38: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:86:26: note: in expansion of macro 'NM_IS_SETTINGS_STORAGE'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:64: included_from: Included from here.
/usr/include/glib-2.0/glib/gmessages.h:668:9: note: in expansion of macro 'g_return_if_fail_warning'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/nm-settings-storage.h:86:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro 'NM_CMP_RETURN_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro 'NM_CMP_DIRECT_STRCMP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c: scope_hint: In function 'cmp_fcn.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1354:26: note: in definition of macro 'NM_CMP_RETURN_DIRECT'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/core/settings/plugins/keyfile/nms-keyfile-storage.c:88:9: note: in expansion of macro 'NM_CMP_DIRECT_STRCMP'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
# 1403| #define NM_CMP_DIRECT_MEMCMP(a, b, size) NM_CMP_RETURN(nm_memcmp((a), (b), (size)))
# 1404|
# 1405|-> #define NM_CMP_DIRECT_STRCMP(a, b) NM_CMP_RETURN_DIRECT(strcmp((a), (b)))
# 1406|
# 1407| #define NM_CMP_DIRECT_STRCMP0(a, b) NM_CMP_RETURN_DIRECT(nm_strcmp0((a), (b)))
Error: CPPCHECK_WARNING: [#def423]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def424]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:281:19: warning[unix.Malloc]: Potential leak of memory pointed to by 'p'
# 279| memcpy(p + 8, options->data, options->length);
# 280|
# 281|-> r = dhcp6_option_append(buf, offset, SD_DHCP6_OPTION_VENDOR_OPTS, total, p);
# 282| if (r < 0)
# 283| return r;
Error: COMPILER_WARNING: [#def425]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c: scope_hint: In function 'dhcp6_option_parse_ia_address'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:583:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 583 | a = new(DHCP6Address, 1);
# | ^~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:583:17: note: earlier argument should specify number of elements, later size of each element
# 583 | a = new(DHCP6Address, 1);
# | ^~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 581| return -EBADMSG;
# 582|
# 583|-> a = new(DHCP6Address, 1);
# 584| if (!a)
# 585| return -ENOMEM;
Error: CLANG_WARNING: [#def426]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:593:55: warning[unix.Malloc]: Potential leak of memory pointed to by 'a'
# 591|
# 592| if (lt_valid == 0)
# 593|-> return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL),
# 594| "Received an IA address with zero valid lifetime, ignoring.");
# 595| if (lt_pref > lt_valid)
Error: COMPILER_WARNING: [#def427]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c: scope_hint: In function 'dhcp6_option_parse_ia_pdprefix'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:626:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 626 | a = new(DHCP6Address, 1);
# | ^~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:626:17: note: earlier argument should specify number of elements, later size of each element
# 626 | a = new(DHCP6Address, 1);
# | ^~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 624| return -EBADMSG;
# 625|
# 626|-> a = new(DHCP6Address, 1);
# 627| if (!a)
# 628| return -ENOMEM;
Error: CLANG_WARNING: [#def428]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:636:55: warning[unix.Malloc]: Potential leak of memory pointed to by 'a'
# 634|
# 635| if (lt_valid == 0)
# 636|-> return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL),
# 637| "Received a PD prefix with zero valid lifetime, ignoring.");
# 638| if (lt_pref > lt_valid)
Error: COMPILER_WARNING: [#def429]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c: scope_hint: In function 'dhcp6_option_parse_ia'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:696:18: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 696 | ia = new(DHCP6IA, 1);
# | ^~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:696:18: note: earlier argument should specify number of elements, later size of each element
# 696 | ia = new(DHCP6IA, 1);
# | ^~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 694| return -EBADMSG;
# 695|
# 696|-> ia = new(DHCP6IA, 1);
# 697| if (!ia)
# 698| return -ENOMEM;
Error: CLANG_WARNING: [#def430]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:708:55: warning[unix.Malloc]: Potential leak of memory pointed to by 'ia'
# 706| * but not necessary to ignore or refuse the whole message. */
# 707| if (ia->header.id != iaid)
# 708|-> return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(ENOANO),
# 709| "Received an IA option with a different IAID "
# 710| "from the one chosen by the client, ignoring.");
Error: COMPILER_WARNING: [#def431]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c: scope_hint: In function 'sd_dhcp6_option_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:934:34: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 934 | sd_dhcp6_option *p = new(sd_dhcp6_option, 1);
# | ^~~~~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/dhcp6-option.c:934:34: note: earlier argument should specify number of elements, later size of each element
# 934 | sd_dhcp6_option *p = new(sd_dhcp6_option, 1);
# | ^~~~~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 932| return -ENOMEM;
# 933|
# 934|-> sd_dhcp6_option *p = new(sd_dhcp6_option, 1);
# 935| if (!p)
# 936| return -ENOMEM;
Error: COMPILER_WARNING: [#def432]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:19: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'sd_dhcp6_client_set_prefix_delegation_hint'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:150:22: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 150 | prefix = new(DHCP6Address, 1);
# | ^~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:150:22: note: earlier argument should specify number of elements, later size of each element
# 150 | prefix = new(DHCP6Address, 1);
# | ^~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 148| assert_return(prefixlen > 0 && prefixlen <= 128, -EINVAL);
# 149|
# 150|-> prefix = new(DHCP6Address, 1);
# 151| if (!prefix)
# 152| return -ENOMEM;
Error: CLANG_WARNING: [#def433]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:282:25: warning[unix.Malloc]: Potential leak of memory pointed to by 's'
# 280| t = hexmem(&client->duid.raw.data, client->duid_len);
# 281| if (!t)
# 282|-> return -ENOMEM;
# 283|
# 284| p = strjoin(s, ":", t);
Error: COMPILER_WARNING: [#def434]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'client_append_oro'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:680:25: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 680 | p = new(be16_t, n + 2);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:680:25: note: earlier argument should specify number of elements, later size of each element
# 680 | p = new(be16_t, n + 2);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 678| case DHCP6_STATE_INFORMATION_REQUEST:
# 679| n = client->n_req_opts;
# 680|-> p = new(be16_t, n + 2);
# 681| if (!p)
# 682| return -ENOMEM;
Error: COMPILER_WARNING: [#def435]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:694:25: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 694 | p = new(be16_t, n + 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:694:25: note: earlier argument should specify number of elements, later size of each element
# 694 | p = new(be16_t, n + 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 692| case DHCP6_STATE_SOLICITATION:
# 693| n = client->n_req_opts;
# 694|-> p = new(be16_t, n + 1);
# 695| if (!p)
# 696| return -ENOMEM;
Error: CLANG_WARNING: [#def436]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:714:24: warning[unix.Malloc]: Potential leak of memory pointed to by 'req_opts'
# 712|
# 713| if (n == 0)
# 714|-> return 0;
# 715|
# 716| return dhcp6_option_append(buf, offset, SD_DHCP6_OPTION_ORO, n * sizeof(be16_t), req_opts);
Error: GCC_ANALYZER_WARNING (CWE-416): [#def437]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/async.h:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/sd-adapt-core/nm-sd-adapt-core.h:89: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'client_start_transaction'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:937:22: warning[-Wanalyzer-use-after-free]: use after 'free' of 'client'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:44: note: in definition of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:937:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:98:17: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:93:26: note: in expansion of macro '_ASSERT_PTR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1275:35: note: in expansion of macro 'ASSERT_PTR'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1276:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1276:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:348:21: note: in definition of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:375:9: note: in expansion of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:375:9: note: in expansion of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1276:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:32: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1332:30: note: in expansion of macro 'CMSG_FIND_AND_COPY_DATA'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1168:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1169:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1169:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:348:21: note: in definition of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:375:9: note: in expansion of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:375:9: note: in expansion of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:586:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:558:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:565:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:546:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/sd-dhcp6-client.h:289:1: note: in expansion of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'client_start_transaction'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:362:21: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:382:9: note: in expansion of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:371:24: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:371:24: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1547:16: note: in expansion of macro 'mfree'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:371:24: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'client_start_transaction'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:936:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:44: note: in definition of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:937:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:44: note: in definition of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:937:9: note: in expansion of macro 'assert'
# 935|
# 936| assert(client);
# 937|-> assert(client->event);
# 938|
# 939| switch (state) {
Error: GCC_ANALYZER_WARNING (CWE-416): [#def438]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'sd_dhcp6_client_stop'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1400:35: warning[-Wanalyzer-use-after-free]: use after 'free' of 'client'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1370:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:348:21: note: in definition of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:375:9: note: in expansion of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:375:9: note: in expansion of macro '_DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:389:9: note: in expansion of macro 'DEFINE_TRIVIAL_REF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:586:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:558:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:565:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:546:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/sd-dhcp6-client.h:289:1: note: in expansion of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'sd_dhcp6_client_stop'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:362:21: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:382:9: note: in expansion of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:371:24: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:371:24: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1547:16: note: in expansion of macro 'mfree'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:371:24: note: in definition of macro '_DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:390:9: note: in expansion of macro 'DEFINE_TRIVIAL_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1550:1: note: in expansion of macro 'DEFINE_TRIVIAL_REF_UNREF_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:584:9: note: in expansion of macro 'DHCP6_CLIENT_DONT_DESTROY'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/systemd/_sd-common.h:98:25: note: in definition of macro '_SD_DEFINE_POINTER_CLEANUP_FUNC'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'sd_dhcp6_client_stop'
# 1398| client_stop(client, SD_DHCP6_CLIENT_EVENT_STOP);
# 1399|
# 1400|-> client->receive_message = sd_event_source_unref(client->receive_message);
# 1401| client->fd = safe_close(client->fd);
# 1402|
Error: COMPILER_WARNING: [#def439]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c: scope_hint: In function 'sd_dhcp6_client_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1557:22: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1557 | client = new(sd_dhcp6_client, 1);
# | ^~~~~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c:1557:22: note: earlier argument should specify number of elements, later size of each element
# 1557 | client = new(sd_dhcp6_client, 1);
# | ^~~~~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 1555| assert_return(ret, -EINVAL);
# 1556|
# 1557|-> client = new(sd_dhcp6_client, 1);
# 1558| if (!client)
# 1559| return -ENOMEM;
Error: COMPILER_WARNING: [#def440]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-lease.c:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-lease.c: scope_hint: In function 'dhcp6_lease_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-lease.c:685:21: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 685 | lease = new(sd_dhcp6_lease, 1);
# | ^~~~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-lease.c:685:21: note: earlier argument should specify number of elements, later size of each element
# 685 | lease = new(sd_dhcp6_lease, 1);
# | ^~~~~~~~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 683| assert(ret);
# 684|
# 685|-> lease = new(sd_dhcp6_lease, 1);
# 686| if (!lease)
# 687| return -ENOMEM;
Error: COMPILER_WARNING: [#def441]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c: scope_hint: In function 'sd_event_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:394:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 394 | e = new(sd_event, 1);
# | ^~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:394:17: note: earlier argument should specify number of elements, later size of each element
# 394 | e = new(sd_event, 1);
# | ^~~~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 392| assert_return(ret, -EINVAL);
# 393|
# 394|-> e = new(sd_event, 1);
# 395| if (!e)
# 396| return -ENOMEM;
Error: COMPILER_WARNING: [#def442]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c: scope_hint: In function 'event_make_signal_data'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:735:25: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 735 | d = new(struct signal_data, 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:735:25: note: earlier argument should specify number of elements, later size of each element
# 735 | d = new(struct signal_data, 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 733| }
# 734| } else {
# 735|-> d = new(struct signal_data, 1);
# 736| if (!d)
# 737| return -ENOMEM;
Error: COMPILER_WARNING: [#def443]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c: scope_hint: In function 'event_make_inotify_data'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:2189:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 2189 | d = new(struct inotify_data, 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:2189:17: note: earlier argument should specify number of elements, later size of each element
# 2189 | d = new(struct inotify_data, 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 2187| fd = fd_move_above_stdio(fd);
# 2188|
# 2189|-> d = new(struct inotify_data, 1);
# 2190| if (!d)
# 2191| return -ENOMEM;
Error: COMPILER_WARNING: [#def444]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c: scope_hint: In function 'event_make_inode_data'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:2359:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 2359 | d = new(struct inode_data, 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:2359:17: note: earlier argument should specify number of elements, later size of each element
# 2359 | d = new(struct inode_data, 1);
# | ^~~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 2357| return r;
# 2358|
# 2359|-> d = new(struct inode_data, 1);
# 2360| if (!d)
# 2361| return -ENOMEM;
Error: COMPILER_WARNING: [#def445]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/escape.c:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/escape.c: scope_hint: In function 'cescape_length'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/escape.c:90:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 90 | r = new(char, n*4 + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/escape.c:90:17: note: earlier argument should specify number of elements, later size of each element
# 90 | r = new(char, n*4 + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 88| * cunescape(). */
# 89|
# 90|-> r = new(char, n*4 + 1);
# 91| if (!r)
# 92| return NULL;
Error: COMPILER_WARNING: [#def446]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hash-funcs.h:4: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/ether-addr-util.h:8: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/ether-addr-util.c:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/ether-addr-util.c: scope_hint: In function 'ether_addr_to_string_alloc'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/ether-addr-util.c:96:19: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 96 | buf = new(char, ETHER_ADDR_TO_STRING_MAX);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/ether-addr-util.c:96:19: note: earlier argument should specify number of elements, later size of each element
# 96 | buf = new(char, ETHER_ADDR_TO_STRING_MAX);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 94| assert(ret);
# 95|
# 96|-> buf = new(char, ETHER_ADDR_TO_STRING_MAX);
# 97| if (!buf)
# 98| return -ENOMEM;
Error: COMPILER_WARNING: [#def447]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c: scope_hint: In function 'readlinkat_malloc'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c:128:25: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 128 | c = new(char, l+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c:128:25: note: earlier argument should specify number of elements, later size of each element
# 128 | c = new(char, l+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 126| ssize_t n;
# 127|
# 128|-> c = new(char, l+1);
# 129| if (!c)
# 130| return -ENOMEM;
Error: CLANG_WARNING: [#def448]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c:134:33: warning[unix.Malloc]: Potential leak of memory pointed to by 'c'
# 132| n = readlinkat(fd, p, c, l);
# 133| if (n < 0)
# 134|-> return -errno;
# 135|
# 136| if ((size_t) n < l) {
Error: CLANG_WARNING: [#def449]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c:971:25: warning[unix.Malloc]: Potential leak of memory pointed to by 'h'
# 969|
# 970| if (!hostname_is_valid(h, 0))
# 971|-> return -EINVAL;
# 972|
# 973| e++;
Error: CLANG_WARNING: [#def450]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c:982:25: warning[unix.Malloc]: Potential leak of memory pointed to by 'ss'
# 980|
# 981| if (!filename_is_valid(ss))
# 982|-> return -EINVAL;
# 983|
# 984| if (!isempty(d)) {
Error: CLANG_WARNING: [#def451]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fs-util.c:995:33: warning[unix.Malloc]: Potential leak of memory pointed to by 'i'
# 993|
# 994| if (!path_is_valid(x))
# 995|-> return -EINVAL;
# 996|
# 997| path_simplify(x);
Error: COMPILER_WARNING: [#def452]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hashmap.c:14: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hashmap.c: scope_hint: In function '_hashmap_get_strv'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hashmap.c:1779:18: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 1779 | sv = new(char*, n_entries(h)+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hashmap.c:1779:18: note: earlier argument should specify number of elements, later size of each element
# 1779 | sv = new(char*, n_entries(h)+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 1777| return new0(char*, 1);
# 1778|
# 1779|-> sv = new(char*, n_entries(h)+1);
# 1780| if (!sv)
# 1781| return NULL;
Error: CLANG_WARNING: [#def453]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hashmap.c:2048:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 2046|
# 2047| if (wrap_with_separator) {
# 2048|-> memcpy(str + len, separator, separator_len);
# 2049| len += separator_len;
# 2050| }
Error: CLANG_WARNING: [#def454]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hashmap.c:2052:18: warning[core.NullDereference]: Array access (from variable 'str') results in a null pointer dereference
# 2050| }
# 2051|
# 2052|-> str[len] = '\0';
# 2053|
# 2054| *ret = TAKE_PTR(str);
Error: COMPILER_WARNING: [#def455]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hexdecoct.c:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hexdecoct.c: scope_hint: In function 'hexmem'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hexdecoct.c:66:21: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 66 | z = r = new(char, l * 2 + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hexdecoct.c:66:21: note: earlier argument should specify number of elements, later size of each element
# 66 | z = r = new(char, l * 2 + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 64| assert(p || l == 0);
# 65|
# 66|-> z = r = new(char, l * 2 + 1);
# 67| if (!r)
# 68| return NULL;
Error: CLANG_WARNING: [#def456]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hexdecoct.c:147:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'z'
# 145| break;
# 146| if (a < 0)
# 147|-> return a;
# 148|
# 149| b = unhex_next(&x, &l);
Error: CLANG_WARNING: [#def457]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/hexdecoct.c:805:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'z'
# 803| break;
# 804| if (a < 0)
# 805|-> return a;
# 806| if (a == INT_MAX) /* Padding is not allowed at the beginning of a 4ch block */
# 807| return -EINVAL;
Error: COMPILER_WARNING: [#def458]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/in-addr-util.c:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/in-addr-util.c: scope_hint: In function 'in_addr_to_string'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/in-addr-util.c:462:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 462 | x = new(char, l);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/in-addr-util.c:462:17: note: earlier argument should specify number of elements, later size of each element
# 462 | x = new(char, l);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 460| return -EAFNOSUPPORT;
# 461|
# 462|-> x = new(char, l);
# 463| if (!x)
# 464| return -ENOMEM;
Error: CLANG_WARNING: [#def459]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/in-addr-util.c:468:24: warning[unix.Malloc]: Potential leak of memory pointed to by 'x'
# 466| errno = 0;
# 467| if (!typesafe_inet_ntop(family, u, x, l))
# 468|-> return errno_or_else(EINVAL);
# 469|
# 470| *ret = TAKE_PTR(x);
Error: CLANG_WARNING: [#def460]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:575:38: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 573|
# 574| if (old_sz > 0)
# 575|-> slash = nx[old_sz-1] == '/';
# 576| else {
# 577| nx[old_sz] = 0;
Error: CLANG_WARNING: [#def461]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:1127:25: warning[unix.Malloc]: Potential leak of memory pointed to by 'a'
# 1125|
# 1126| if (!path_is_valid(a))
# 1127|-> return -EINVAL;
# 1128|
# 1129| *ret = TAKE_PTR(a);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def462]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_is_valid_full.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:1166:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'e'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:832:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_is_valid_full.part.0'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_is_valid_full.part.0'
# 1164| * *with* the trailing NUL byte) */
# 1165| return false;
# 1166|-> if (*e == 0) /* End of string? Yay! */
# 1167| return true;
# 1168| }
Error: COMPILER_WARNING: [#def463]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/prioq.c:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/prioq.c: scope_hint: In function 'prioq_new'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/prioq.c:37:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 37 | q = new(Prioq, 1);
# | ^~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/prioq.c:37:17: note: earlier argument should specify number of elements, later size of each element
# 37 | q = new(Prioq, 1);
# | ^~~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 35| Prioq *q;
# 36|
# 37|-> q = new(Prioq, 1);
# 38| if (!q)
# 39| return q;
Error: GCC_ANALYZER_WARNING (CWE-775): [#def464]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/random-util.c: scope_hint: In function 'random_bytes'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/random-util.c:113:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/urandom", 524544)'
# 111| }
# 112|
# 113|-> fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
# 114| if (fd >= 0 && loop_read_exact(fd, p, n, false) == 0)
# 115| return;
Error: GCC_ANALYZER_WARNING (CWE-775): [#def465]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/random-util.c: scope_hint: In function 'crypto_random_bytes'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/random-util.c:154:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/random", 524544)'
# 152| int r;
# 153|
# 154|-> ready_fd = open("/dev/random", O_RDONLY|O_CLOEXEC|O_NOCTTY);
# 155| if (ready_fd < 0)
# 156| return -errno;
Error: GCC_ANALYZER_WARNING (CWE-775): [#def466]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/random-util.c:163:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/urandom", 524544)'
# 161| }
# 162|
# 163|-> fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
# 164| if (fd < 0)
# 165| return -errno;
Error: COMPILER_WARNING: [#def467]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.c:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.c: scope_hint: In function 'strnappend'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.c:80:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 80 | r = new(char, a+b+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.c:80:17: note: earlier argument should specify number of elements, later size of each element
# 80 | r = new(char, a+b+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 78| return NULL;
# 79|
# 80|-> r = new(char, a+b+1);
# 81| if (!r)
# 82| return NULL;
Error: COMPILER_WARNING: [#def468]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.c: scope_hint: In function 'strjoin_real'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.c:109:21: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 109 | p = r = new(char, l);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.c:109:21: note: earlier argument should specify number of elements, later size of each element
# 109 | p = r = new(char, l);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 107| va_end(ap);
# 108|
# 109|-> p = r = new(char, l);
# 110| if (!r)
# 111| return NULL;
Error: COMPILER_WARNING: [#def469]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'strv_copy_n'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:97:22: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 97 | result = new(char*, MIN(strv_length(l), m) + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:97:22: note: earlier argument should specify number of elements, later size of each element
# 97 | result = new(char*, MIN(strv_length(l), m) + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 95| char **k;
# 96|
# 97|-> result = new(char*, MIN(strv_length(l), m) + 1);
# 98| if (!result)
# 99| return NULL;
Error: CLANG_WARNING: [#def470]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:108:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'k'
# 106| *k = strdup(*i);
# 107| if (!*k)
# 108|-> return NULL;
# 109| k++;
# 110|
Error: COMPILER_WARNING: [#def471]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'strv_new_ap'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:147:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 147 | a = new(char*, n+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:147:17: note: earlier argument should specify number of elements, later size of each element
# 147 | a = new(char*, n+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 145| va_end(aq);
# 146|
# 147|-> a = new(char*, n+1);
# 148| if (!a)
# 149| return NULL;
Error: CLANG_WARNING: [#def472]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:157:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'a'
# 155| a[i] = strdup(s);
# 156| if (!a[i])
# 157|-> return NULL;
# 158|
# 159| i++;
Error: COMPILER_WARNING: [#def473]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'strv_join_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:400:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 400 | r = new(char, n+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:400:17: note: earlier argument should specify number of elements, later size of each element
# 400 | r = new(char, n+1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 398| }
# 399|
# 400|-> r = new(char, n+1);
# 401| if (!r)
# 402| return NULL;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'string_strv_hashmap_put_internal'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:440:24: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(key)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'string_strv_hashmap_put_internal'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/escape.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/string-util-fundamental.h:103:9: note: in expansion of macro '_STRV_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:122:9: note: in expansion of macro 'STRV_FOREACH'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'string_strv_hashmap_put_internal'
# 438| size_t size = n ? *n : SIZE_MAX;
# 439| if (size == SIZE_MAX)
# 440|-> size = strv_length(*l);
# 441|
# 442| /* Check for overflow */
Error: COMPILER_WARNING: [#def475]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'strv_insert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:502:17: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 502 | c = new(char*, m);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:502:17: note: earlier argument should specify number of elements, later size of each element
# 502 | c = new(char*, m);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 500| return -ENOMEM;
# 501|
# 502|-> c = new(char*, m);
# 503| if (!c)
# 504| return -ENOMEM;
Error: CLANG_WARNING: [#def476]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:878:32: warning[unix.Malloc]: Potential leak of memory pointed to by 't'
# 876| r = strv_extend(&l2, value);
# 877| if (r < 0)
# 878|-> return r;
# 879|
# 880| r = hashmap_put(h, t, l2);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:880:21: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(key)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c: scope_hint: In function 'string_strv_hashmap_put_internal'
# 878| return r;
# 879|
# 880|-> r = hashmap_put(h, t, l2);
# 881| if (r < 0)
# 882| return r;
Error: CLANG_WARNING: [#def478]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/strv.c:884:17: warning[unix.Malloc]: Potential leak of memory pointed to by '_var_'
# 882| return r;
# 883| TAKE_PTR(t);
# 884|-> TAKE_PTR(l2);
# 885| }
# 886|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def479]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c: scope_hint: In function 'verify_timezone'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1512:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(__builtin_alloca(max(_n_, 1)), 524288)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c: scope_hint: In function 'verify_timezone'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1482:13: note: in expansion of macro 'streq'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c: scope_hint: In function 'verify_timezone'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1510:13: note: in expansion of macro 'strjoina'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1510:13: note: in expansion of macro 'strjoina'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1510:13: note: in expansion of macro 'strjoina'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:15: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:31:17: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:39:22: note: in expansion of macro 'alloca_safe'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.h:114:29: note: in expansion of macro 'newa'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1510:13: note: in expansion of macro 'strjoina'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1510:13: note: in expansion of macro 'strjoina'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/time-util.c:1510:13: note: in expansion of macro 'strjoina'
# 1510| t = strjoina("/usr/share/zoneinfo/", name);
# 1511|
# 1512|-> fd = open(t, O_RDONLY|O_CLOEXEC);
# 1513| if (fd < 0)
# 1514| return log_full_errno(log_level, errno, "Failed to open timezone file '%s': %m", t);
Error: CLANG_WARNING: [#def480]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/tmpfile-util.c:177:25: warning[unix.Malloc]: Potential leak of memory pointed to by 'd'
# 175| nf = strjoin(".#", strempty(pre), strempty(fn), strempty(post));
# 176| if (!nf)
# 177|-> return -ENOMEM;
# 178|
# 179| if (d) {
Error: COMPILER_WARNING: [#def481]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/utf8.c:32: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/utf8.c: scope_hint: In function 'utf8_to_ascii'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/utf8.c:325:40: warning[-Wcalloc-transposed-args]: 'malloc_multiply' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 325 | _cleanup_free_ char *ans = new(char, strlen(str) + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/utf8.c:325:40: note: earlier argument should specify number of elements, later size of each element
# 325 | _cleanup_free_ char *ans = new(char, strlen(str) + 1);
# | ^~~~
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:24:48: note: in definition of macro 'new'
# 24 | #define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
# | ^
# 323| * by replacement_char. */
# 324|
# 325|-> _cleanup_free_ char *ans = new(char, strlen(str) + 1);
# 326| if (!ans)
# 327| return -ENOMEM;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:17: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c: scope_hint: In function 'xfopenat_regular'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:41: warning[-Wanalyzer-malloc-leak]: leak of 'take_fdopen(&fd, mode)'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:77:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:939:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:940:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:940:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:941:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:941:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:942:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:942:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:892:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:77:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:77:9: note: in expansion of macro 'assert'
# 32| #define _section_(x) __attribute__((__section__(x)))
# 33| #define _sentinel_ __attribute__((__sentinel__))
# 34|-> #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# 35| #define _unused_ __attribute__((__unused__))
# 36| #define _used_ __attribute__((__used__))
Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c: scope_hint: In function 'xfopenat_unix_socket'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:41: warning[-Wanalyzer-malloc-leak]: leak of 'take_fdopen(&sk, "r")'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:77:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:972:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:973:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:973:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:974:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:974:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:77:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:186:21: note: in expansion of macro '_unlikely_'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fileio.c:77:9: note: in expansion of macro 'assert'
# 32| #define _section_(x) __attribute__((__section__(x)))
# 33| #define _sentinel_ __attribute__((__sentinel__))
# 34|-> #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# 35| #define _unused_ __attribute__((__unused__))
# 36| #define _used_ __attribute__((__used__))
Error: COMPILER_WARNING: [#def484]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fd-util.c:16: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fd-util.h: scope_hint: In function 'format_proc_fd_path'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:41: warning[-Wnonnull-compare]: 'nonnull' argument 'buf' compared to NULL
# 34 | #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# | ^~~~~
# 32| #define _section_(x) __attribute__((__section__(x)))
# 33| #define _sentinel_ __attribute__((__sentinel__))
# 34|-> #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# 35| #define _unused_ __attribute__((__unused__))
# 36| #define _used_ __attribute__((__used__))
Error: COMPILER_WARNING: [#def485]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/ether-addr-util.c: scope_hint: In function 'hw_addr_to_string_full'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:41: warning[-Wnonnull-compare]: 'nonnull' argument 'buffer' compared to NULL
# 34 | #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# | ^~~~~
# 32| #define _section_(x) __attribute__((__section__(x)))
# 33| #define _sentinel_ __attribute__((__sentinel__))
# 34|-> #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# 35| #define _unused_ __attribute__((__unused__))
# 36| #define _used_ __attribute__((__used__))
Error: COMPILER_WARNING: [#def486]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/fd-util.c: scope_hint: In function 'safe_close_pair'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/macro-fundamental.h:34:41: warning[-Wnonnull-compare]: 'nonnull' argument 'p' compared to NULL
# 34 | #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# | ^~~~~
# 32| #define _section_(x) __attribute__((__section__(x)))
# 33| #define _sentinel_ __attribute__((__sentinel__))
# 34|-> #define _unlikely_(x) (__builtin_expect(!!(x), 0))
# 35| #define _unused_ __attribute__((__unused__))
# 36| #define _used_ __attribute__((__used__))
Error: GCC_ANALYZER_WARNING (CWE-688): [#def487]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/string-util-fundamental.h:26:21: warning[-Wanalyzer-null-argument]: use of NULL 'next' where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:893:21: note: in expansion of macro 'streq'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:832:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:876:13: note: in expansion of macro 'streq'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:893:21: note: in expansion of macro 'streq'
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
# 24| #endif
# 25|
# 26|-> #define streq(a,b) (strcmp((a),(b)) == 0)
# 27| #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
# 28| #define strcaseeq(a,b) (strcasecmp((a),(b)) == 0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def488]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/string-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:20: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/fundamental/string-util-fundamental.h:26:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:893:21: note: in expansion of macro 'streq'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/alloc-util.h:10: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:12: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/macro.h:203:22: note: in expansion of macro 'assert_message_se'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:832:9: note: in expansion of macro 'assert'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c: scope_hint: In function 'path_find_first_component'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:876:13: note: in expansion of macro 'streq'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:893:21: note: in expansion of macro 'streq'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:7: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/nm-default-systemd-shared.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/sd-adapt-shared/nm-sd-adapt-shared.h:9: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-systemd-shared/src/basic/path-util.c:3: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
# 24| #endif
# 25|
# 26|-> #define streq(a,b) (strcmp((a),(b)) == 0)
# 27| #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
# 28| #define strcaseeq(a,b) (strcasecmp((a),(b)) == 0)
Error: CLANG_WARNING: [#def489]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-base/nm-client-utils.c:115:21: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 113|
# 114| if (nmc_string_is_valid(str, NM_MAKE_STRV("true", "yes", "on"), NULL))
# 115|-> *val_bool = TRUE;
# 116| else if (nmc_string_is_valid(str, NM_MAKE_STRV("false", "no", "off"), NULL))
# 117| *val_bool = FALSE;
Error: CLANG_WARNING: [#def490]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-base/nm-client-utils.c:159:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 157|
# 158| if (nmc_string_is_valid(str, NM_MAKE_STRV("true", "yes", "on"), NULL))
# 159|-> *val = NM_TERNARY_TRUE;
# 160| else if (nmc_string_is_valid(str, NM_MAKE_STRV("false", "no", "off"), NULL))
# 161| *val = NM_TERNARY_FALSE;
Error: CLANG_WARNING: [#def491]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-base/nm-secret-agent-simple.c:1330:20: warning[core.NullDereference]: Access to field 'requests' results in a dereference of a null pointer (loaded from variable 'priv')
# 1328|
# 1329| G_STATIC_ASSERT_EXPR(G_STRUCT_OFFSET(RequestData, request_id) == 0);
# 1330|-> priv->requests = g_hash_table_new_full(nm_pstr_hash, nm_pstr_equal, NULL, _request_data_free);
# 1331| }
# 1332|
Error: CLANG_WARNING: [#def492]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-base/nm-client-utils.c:666: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-base/qrcodegen.c:232:30: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 230| assert(0 <= numBits && numBits <= 16 && (unsigned long) val >> numBits == 0);
# 231| for (int i = numBits - 1; i >= 0; i--, (*bitLen)++)
# 232|-> buffer[*bitLen >> 3] |= ((val >> i) & 1) << (7 - (*bitLen & 7));
# 233| }
# 234|
Error: CLANG_WARNING: [#def493]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-base/qrcodegen.c:806:66: warning[core.DivideZero]: Division by zero
# 804| int total = qrsize * qrsize; // Note that size is odd, so black/total != 1/2
# 805| // Compute the smallest integer k >= 0 such that (45-5k)% <= black/total <= (55+5k)%
# 806|-> int k = (int) ((labs(black * 20L - total * 10L) + total - 1) / total) - 1;
# 807| result += k * PENALTY_N4;
# 808| return result;
Error: CLANG_WARNING: [#def494]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-setting/nm-meta-setting-desc.c:132:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'arr'
# 130| i64 = _nm_utils_ascii_str_to_int64(s, 10, 0, G_MAXINT64, -1);
# 131| if (i64 == -1)
# 132|-> return NULL;
# 133|
# 134| if (len >= n_alloc) {
Error: CLANG_WARNING: [#def495]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-setting/nm-meta-setting-desc.c:132:20: warning[unix.Malloc]: Potential leak of memory pointed to by 's'
# 130| i64 = _nm_utils_ascii_str_to_int64(s, 10, 0, G_MAXINT64, -1);
# 131| if (i64 == -1)
# 132|-> return NULL;
# 133|
# 134| if (len >= n_alloc) {
Error: CLANG_WARNING: [#def496]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-setting/nm-meta-setting-desc.c:302:15: warning[unix.Malloc]: Potential leak of memory pointed to by 'str_clean'
# 300|
# 301| str_clean = nm_strstrip_avoid_copy_a(300, str, &str_clean_free);
# 302|-> routev = nm_strsplit_set(str_clean, " \t");
# 303| if (!routev) {
# 304| nm_utils_error_set(error,
Error: CLANG_WARNING: [#def497]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-setting/nm-meta-setting-desc.c:1412:25: warning[unix.Malloc]: Potential leak of memory pointed to by 'vv'
# 1410| for (; value_infos->nick; value_infos++) {
# 1411| if (nm_streq(value_infos->nick, vv)) {
# 1412|-> v = value_infos->value;
# 1413| goto have_value_from_nick;
# 1414| }
Error: CLANG_WARNING: [#def498]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-setting/nm-meta-setting-desc.c:2082:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'strv_val'
# 2080| }
# 2081|
# 2082|-> return TRUE;
# 2083| }
# 2084|
Error: CLANG_WARNING: [#def499]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-setting/nm-meta-setting-desc.c:2265:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'val_strip'
# 2263|
# 2264| /* First try hex string in the format of AAbbCCDd */
# 2265|-> bytes = nm_utils_hexstr2bin(val_strip);
# 2266| if (bytes)
# 2267| goto done;
Error: CLANG_WARNING: [#def500]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmc-setting/nm-meta-setting-desc.c:2372:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'value'
# 2370| gsize len;
# 2371|
# 2372|-> strv = nm_utils_escaped_tokens_split(value, NM_ASCII_SPACES);
# 2373| len = NM_PTRARRAY_LEN(strv);
# 2374| if (len > 2) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def501]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_get_components’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:116:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.children’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:30: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:112:16: note: in expansion of macro ‘nm_g_array_first_p’
# 114| cos = g_ptr_array_new();
# 115|
# 116|-> for (i = 0; i < priv->children->len; i++) {
# 117| if (!nmt_newt_widget_get_visible(children[i].widget))
# 118| continue;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def502]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_size_request’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:152:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:135:36: note: in expansion of macro ‘nm_g_array_first_p’
# 150| for (col = 0; col < priv->max_x + 1; col++) {
# 151| for (i = 0; i < priv->children->len; i++) {
# 152|-> if (children[i].x != col || children[i].y != row)
# 153| continue;
# 154| if (!nmt_newt_widget_get_visible(children[i].widget))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def503]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_size_allocate’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:230:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.children’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:193:36: note: in expansion of macro ‘nm_g_array_first_p’
# 228| }
# 229|
# 230|-> for (i = 0; i < priv->children->len; i++) {
# 231| child = &children[i];
# 232| if (!nmt_newt_widget_get_visible(child->widget))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def504]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘nmt_newt_grid_find_size’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:275:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:271:36: note: in expansion of macro ‘nm_g_array_first_p’
# 273|
# 274| priv->max_x = priv->max_y = 0;
# 275|-> for (i = 0; i < priv->children->len; i++) {
# 276| if (children[i].x > priv->max_x)
# 277| priv->max_x = children[i].x;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def505]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c: scope_hint: In function ‘find_child’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:321:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:318:36: note: in expansion of macro ‘nm_g_array_first_p’
# 319| int i;
# 320|
# 321|-> for (i = 0; i < priv->children->len; i++) {
# 322| if (children[i].widget == widget)
# 323| return i;
Error: CLANG_WARNING: [#def506]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-grid.c:419:27: warning[core.NullDereference]: Dereference of null pointer
# 417| i = find_child(grid, widget);
# 418| if (i != -1)
# 419|-> children[i].flags = flags;
# 420| }
# 421|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def507]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-popup.c: scope_hint: In function ‘nmt_newt_popup_activated’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-popup.c:129:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-popup.c:16: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-popup.c:121:36: note: in expansion of macro ‘nm_g_array_first_p’
# 127| int i, active;
# 128|
# 129|-> listbox = nmt_newt_listbox_new(priv->entries->len, 0);
# 130| nmt_newt_widget_set_exit_on_activate(listbox, TRUE);
# 131| for (i = 0; i < priv->entries->len; i++)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def508]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-popup.c: scope_hint: In function ‘nmt_newt_popup_set_active_id’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-popup.c:254:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.entries’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnmt-newt/nmt-newt-popup.c:251:36: note: in expansion of macro ‘nm_g_array_first_p’
# 252| int i;
# 253|
# 254|-> for (i = 0; i < priv->entries->len; i++) {
# 255| if (!g_strcmp0(active_id, entries[i].id)) {
# 256| nmt_newt_popup_set_active(popup, i);
Error: CPPCHECK_WARNING: [#def509]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd-probe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def510]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def511]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:143:9: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 141|
# 142| *fdp = s;
# 143|-> s = -1;
# 144| return 0;
# 145|
Error: CPPCHECK_WARNING (CWE-401): [#def512]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def513]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def514]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def515]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def516]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def517]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def518]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def519]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:388: error[memleak]: Memory leak: acd
# 386| r = epoll_ctl(acd->fd_epoll, EPOLL_CTL_ADD, acd->fd_socket, &eevent);
# 387| if (r < 0)
# 388|-> return -c_errno();
# 389|
# 390| *acdp = acd;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def520]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c: scope_hint: In function 'n_acd_packet_is_valid'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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.46.0-build/NetworkManager-1.46.0/src/n-acd/src/n-acd.c:59: included_from: Included from here.
# 752| arp = packet;
# 753|
# 754|-> if (arp->arp_hrd != htobe16(ARPHRD_ETHER))
# 755| return false;
# 756|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-c-connection.c: scope_hint: In function 'n_dhcp4_c_connection_dispatch_io'
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-c-connection.c:1177:27: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(65535)'
# 1175| return -ENOMEM;
# 1176|
# 1177|-> switch (connection->state) {
# 1178| case N_DHCP4_C_CONNECTION_STATE_PACKET:
# 1179| r = n_dhcp4_c_socket_packet_recv(connection->fd_packet,
Error: CPPCHECK_WARNING: [#def522]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-c-lease.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def523]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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: [#def524]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-c-probe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def525]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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): [#def526]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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: [#def527]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def528]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-incoming.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def529]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/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: CLANG_WARNING: [#def530]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-incoming.c:214:24: warning[unix.Malloc]: Potential leak of memory pointed to by '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: [#def531]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-outgoing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def532]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-outgoing.c:82: error[memleak]: Memory leak: outgoing
# 80| outgoing->message = calloc(1, outgoing->n_message);
# 81| if (!outgoing->message)
# 82|-> return -ENOMEM;
# 83|
# 84| outgoing->message->magic = htonl(N_DHCP4_MESSAGE_MAGIC);
Error: CLANG_WARNING: [#def533]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-outgoing.c:82:25: warning[unix.Malloc]: Potential leak of memory pointed to by 'outgoing'
# 80| outgoing->message = calloc(1, outgoing->n_message);
# 81| if (!outgoing->message)
# 82|-> return -ENOMEM;
# 83|
# 84| outgoing->message->magic = htonl(N_DHCP4_MESSAGE_MAGIC);
Error: CPPCHECK_WARNING: [#def534]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def535]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-socket.c:126:9: warning[deadcode.DeadStores]: Value stored to 'sockfd' is never read
# 124|
# 125| *sockfdp = sockfd;
# 126|-> sockfd = -1;
# 127| return 0;
# 128| }
Error: CLANG_WARNING: [#def536]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-socket.c:230:9: warning[deadcode.DeadStores]: Value stored to 'sockfd' is never read
# 228|
# 229| *sockfdp = sockfd;
# 230|-> sockfd = -1;
# 231| return 0;
# 232| }
Error: CLANG_WARNING: [#def537]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-socket.c:251:9: warning[deadcode.DeadStores]: Value stored to 'sockfd' is never read
# 249|
# 250| *sockfdp = sockfd;
# 251|-> sockfd = -1;
# 252| return 0;
# 253| }
Error: CLANG_WARNING: [#def538]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/n-dhcp4-socket.c:336:9: warning[deadcode.DeadStores]: Value stored to 'sockfd' is never read
# 334|
# 335| *sockfdp = sockfd;
# 336|-> sockfd = -1;
# 337| return 0;
# 338| }
Error: CPPCHECK_WARNING: [#def539]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/n-dhcp4/src/util/packet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def540]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nm-cloud-setup/nm-http-client.c:96:39: warning[core.NullDereference]: Access to field 'context' results in a dereference of a null pointer
# 94| _source_attach(NMHttpClient *self, GSource *source)
# 95| {
# 96|-> return nm_g_source_attach(source, NM_HTTP_CLIENT_GET_PRIVATE(self)->context);
# 97| }
# 98|
Error: CLANG_WARNING: [#def541]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nm-cloud-setup/nm-http-client.c:756:36: warning[core.NullDereference]: Access to field 'source_sockets_hashtable' results in a dereference of a null pointer (loaded from variable 'priv')
# 754| NMHttpClientPrivate *priv = NM_HTTP_CLIENT_GET_PRIVATE(self);
# 755|
# 756|-> priv->source_sockets_hashtable =
# 757| g_hash_table_new_full(nm_direct_hash,
# 758| NULL,
Error: CPPCHECK_WARNING: [#def542]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nm-dispatcher/nmdbus-dispatcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def543]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nm-initrd-generator/nmi-cmdline-reader.c:450:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'kind'
# 448| * depends on whether we have IP addresses too.
# 449| * https://github.com/dracutdevs/dracut/blob/3cc9f1c10c67dcdb5254e0eb69f19e9ab22abf20/modules.d/35network-legacy/parse-ip-opts.sh#L62 */
# 450|-> return "auto";
# 451| }
# 452|
Error: CLANG_WARNING: [#def544]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nm-initrd-generator/nmi-cmdline-reader.c:1574:13: warning[deadcode.DeadStores]: Value stored to 'connection' is never read
# 1572| bootif,
# 1573| -1))) {
# 1574|-> connection = reader_create_connection(reader,
# 1575| "bootif_connection",
# 1576| "BOOTIF Connection",
Error: GCC_ANALYZER_WARNING (CWE-476): [#def545]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c: scope_hint: In function ‘nmc_find_active_connection’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:578:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘filter_val’
/usr/include/glib-2.0/glib.h:33: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:6: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:560:41: note: in expansion of macro ‘g_ptr_array_index’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:8: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:571:17: note: in expansion of macro ‘nmc_complete_strings’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:571:17: note: in expansion of macro ‘nmc_complete_strings’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:27: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:1572:9: note: in expansion of macro ‘nmc_print’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:571:17: note: in expansion of macro ‘nmc_complete_strings’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:1004:31: note: in expansion of macro ‘_NM_IN_STRSET_EVAL’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:576:13: note: in expansion of macro ‘NM_IN_STRSET’
# 576| if (NM_IN_STRSET(filter_type, NULL, "uuid")) {
# 577| v = nm_active_connection_get_uuid(candidate);
# 578|-> if (complete && (filter_type || *filter_val))
# 579| nmc_complete_strings(filter_val, v);
# 580| if (nm_streq0(filter_val, v))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def546]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c: scope_hint: In function ‘nmc_complete_help’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:1452:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prefix’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:1451:5: note: in expansion of macro ‘nmc_complete_strings’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:1572:9: note: in expansion of macro ‘nmc_print’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/common.c:1451:5: note: in expansion of macro ‘nmc_complete_strings’
# 1450| {
# 1451| nmc_complete_strings(prefix, "help");
# 1452|-> if (*prefix == '-')
# 1453| nmc_complete_strings(prefix, "-help", "--help");
# 1454| }
Error: CLANG_WARNING: [#def547]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/nmcli.c:742:9: warning[deadcode.DeadStores]: Value stored to 'base' is never read
# 740| base = strrchr(argv_orig[0], '/');
# 741| if (base == NULL)
# 742|-> base = argv_orig[0];
# 743| else
# 744| base++;
Error: CLANG_WARNING: [#def548]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/utils.c:194:21: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 192| } else {
# 193| /* Match literally. */
# 194|-> if (strcmp(**argv, cmd_option) == 0) {
# 195| va_end(args);
# 196| return cmd_option_pos;
Error: CLANG_WARNING: [#def549]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/utils.c:1308:13: warning[deadcode.DeadStores]: Value stored to 'lines_len' is never read
# 1306| continue;
# 1307|
# 1308|-> lines_len = 0;
# 1309| switch (cell->text_format) {
# 1310| case PRINT_DATA_CELL_FORMAT_TYPE_PLAIN:
Error: GCC_ANALYZER_WARNING (CWE-775): [#def550]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/utils.c: scope_hint: In function ‘nmc_terminal_spawn_pager’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/utils.c:1517:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
# 1515|
# 1516| /* Return in the parent */
# 1517|-> if (dup2(fd[1], STDOUT_FILENO) < 0) {
# 1518| errsv = errno;
# 1519| nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));
Error: GCC_ANALYZER_WARNING (CWE-775): [#def551]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmcli/utils.c:1521:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 2)’
# 1519| nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));
# 1520| }
# 1521|-> if (dup2(fd[1], STDERR_FILENO) < 0) {
# 1522| errsv = errno;
# 1523| nmc_printerr(_("Failed to duplicate pager pipe: %s\n"), nm_strerror_native(errsv));
Error: CLANG_WARNING: [#def552]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nm-editor-bindings.c:130:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'strings'
# 128|
# 129| g_value_take_boxed(target_value, strings);
# 130|-> return TRUE;
# 131| }
# 132|
Error: CLANG_WARNING: [#def553]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-8021x-fields.c:118:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'strv'
# 116|
# 117| g_value_take_boxed(target_value, strv);
# 118|-> return TRUE;
# 119| }
# 120|
Error: CLANG_WARNING: [#def554]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-8021x-fields.c:611:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 609|
# 610| nm_clear_g_free(&priv->eap_methods);
# 611|-> g_clear_object(&priv->authentication);
# 612|
# 613| G_OBJECT_CLASS(nmt_8021x_fields_parent_class)->finalize(object);
Error: CLANG_WARNING: [#def555]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-8021x-fields.c:627:23: warning[core.NullDereference]: Access to field 'setting' results in a dereference of a null pointer (loaded from variable 'priv')
# 625| switch (prop_id) {
# 626| case PROP_SETTING:
# 627|-> priv->setting = g_object_ref(g_value_get_object(value));
# 628| break;
# 629| case PROP_IS_WIRED:
Error: CLANG_WARNING: [#def556]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-8021x-fields.c:630:24: warning[core.NullDereference]: Access to field 'is_wired' results in a dereference of a null pointer (loaded from variable 'priv')
# 628| break;
# 629| case PROP_IS_WIRED:
# 630|-> priv->is_wired = g_value_get_boolean(value);
# 631| break;
# 632| default:
Error: GCC_ANALYZER_WARNING (CWE-476): [#def557]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_find_widget’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:153:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_arr_55’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:67: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-lib.h:13: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-client-aux-extern/nm-default-client.h:11: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:27: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:150:34: note: in expansion of macro ‘nm_g_array_first_p’
# 151| int i;
# 152|
# 153|-> for (i = 0; i < priv->rows->len; i++) {
# 154| if (rows[i].label == widget || rows[i].widget == widget || rows[i].extra == widget)
# 155| return i;
Error: CLANG_WARNING: [#def558]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:190:23: warning[core.NullDereference]: Dereference of null pointer
# 188| i = nmt_editor_grid_find_widget(grid, widget);
# 189| if (i != -1)
# 190|-> rows[i].flags = flags;
# 191| }
# 192|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def559]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_get_components’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:229:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:222:34: note: in expansion of macro ‘nm_g_array_first_p’
# 227| cos = g_ptr_array_new();
# 228|
# 229|-> for (i = 0; i < priv->rows->len; i++) {
# 230| if (!nmt_newt_widget_get_visible(rows[i].widget))
# 231| continue;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def560]
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:18: included_from: Included from here.
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_size_request’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:317:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
/usr/include/glib-2.0/glib/gmem.h:261:32: note: in definition of macro ‘_G_NEW’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:317:25: note: in expansion of macro ‘g_new0’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:311:43: note: in expansion of macro ‘nm_g_array_first_p’
/usr/include/glib-2.0/glib/gmem.h:261:32: note: in definition of macro ‘_G_NEW’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:317:25: note: in expansion of macro ‘g_new0’
# 315|
# 316| g_free(priv->row_heights);
# 317|-> priv->row_heights = g_new0(int, priv->rows->len);
# 318|
# 319| *height = 0;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def561]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c: scope_hint: In function ‘nmt_editor_grid_size_allocate’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:368:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.rows’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/libnm-glib-aux/nm-shared-utils.h:2026:39: note: in expansion of macro ‘nm_g_array_index_p’
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor-grid.c:359:37: note: in expansion of macro ‘nm_g_array_first_p’
# 366| col2_width = state->col_widths[2];
# 367|
# 368|-> for (i = row = 0; i < priv->rows->len; i++) {
# 369| if (!nmt_newt_widget_get_visible(rows[i].widget))
# 370| continue;
Error: CLANG_WARNING: [#def562]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-editor.c:274:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'perms'
# 272| }
# 273| g_value_take_boxed(target_value, perms);
# 274|-> return TRUE;
# 275| }
# 276|
Error: CLANG_WARNING: [#def563]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-page-bridge.c:87:14: warning[deadcode.DeadStores]: Although the value stored to 'stp' is used in the enclosing expression, the value is never actually read from 'stp'
# 85| nmt_editor_grid_append(grid, NULL, widget, NULL);
# 86|
# 87|-> widget = stp = nmt_newt_checkbox_new(_("Enable STP (Spanning Tree Protocol)"));
# 88| g_object_bind_property(s_bridge,
# 89| NM_SETTING_BRIDGE_STP,
Error: CLANG_WARNING: [#def564]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-page-ethernet.c:149:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_pp')
# 147| NmtPageEthernetPrivate *priv = NMT_PAGE_ETHERNET_GET_PRIVATE(object);
# 148|
# 149|-> g_clear_object(&priv->s_8021x);
# 150|
# 151| G_OBJECT_CLASS(nmt_page_ethernet_parent_class)->finalize(object);
Error: CLANG_WARNING: [#def565]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-page-ip-tunnel.c:130:14: warning[deadcode.DeadStores]: Although the value stored to 'parent' is used in the enclosing expression, the value is never actually read from 'parent'
# 128| nmt_editor_grid_append(grid, _("Mode"), widget, NULL);
# 129|
# 130|-> widget = parent = nmt_device_entry_new(_("Parent"), 40, G_TYPE_NONE);
# 131| g_object_bind_property(s_ip_tunnel,
# 132| NM_SETTING_IP_TUNNEL_PARENT,
Error: CLANG_WARNING: [#def566]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-page-macsec.c:97:19: warning[core.NullDereference]: Access to field 's_8021x' results in a dereference of a null pointer (loaded from variable 'priv')
# 95| nm_setting_802_1x_add_eap_method(s_8021x, "MD5");
# 96| }
# 97|-> priv->s_8021x = g_object_ref(s_8021x);
# 98|
# 99| section = nmt_editor_section_new(_("MACsec"), NULL, TRUE);
Error: CLANG_WARNING: [#def567]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-page-vlan.c:62:14: warning[deadcode.DeadStores]: Although the value stored to 'parent' is used in the enclosing expression, the value is never actually read from 'parent'
# 60| nm_editor_bind_vlan_name(s_vlan, nm_connection_get_setting_connection(conn));
# 61|
# 62|-> widget = parent = nmt_device_entry_new(_("Parent"), 40, G_TYPE_NONE);
# 63| nmt_device_entry_set_device_filter(NMT_DEVICE_ENTRY(widget), vlan_device_filter, vlan);
# 64| g_object_bind_property(s_vlan,
Error: CLANG_WARNING: [#def568]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmt-page-vlan.c:76:14: warning[deadcode.DeadStores]: Although the value stored to 'id_entry' is used in the enclosing expression, the value is never actually read from 'id_entry'
# 74| nmt_editor_grid_append(grid, NULL, widget, NULL);
# 75|
# 76|-> widget = id_entry = nmt_newt_entry_numeric_new(8, 0, 4094);
# 77| g_object_bind_property(s_vlan,
# 78| NM_SETTING_VLAN_ID,
Error: CLANG_WARNING: [#def569]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/src/nmtui/nmtui.c:254:10: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 252| if (g_str_has_prefix(prgname, "lt-"))
# 253| prgname += 3;
# 254|-> if (!strcmp(prgname, "nmtui")) {
# 255| if (argc > 1) {
# 256| for (i = 0; i < num_subprograms; i++) {
Error: CPPCHECK_WARNING: [#def570]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/tmp-introspect0k42sr21/test-None.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def571]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/tmp-introspect0k42sr21/test-None.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
Error: CPPCHECK_WARNING: [#def572]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/tmp-introspectx6r9o4on/NM-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def573]
NetworkManager-1.46.0-build/NetworkManager-1.46.0/tmp-introspectx6r9o4on/NM-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-130.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | NetworkManager-1.46.0-2.fc41 |
store-results-to | /tmp/tmptdwtgpzt/NetworkManager-1.46.0-2.fc41.tar.xz |
time-created | 2024-07-03 12:15:07 |
time-finished | 2024-07-03 12:33:23 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptdwtgpzt/NetworkManager-1.46.0-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmptdwtgpzt/NetworkManager-1.46.0-2.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |