Task #1620 - added.err
back to task #1620download
Error: GCC_ANALYZER_WARNING (CWE-476):
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c: scope_hint: In function 'make_connection_setting'
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:607:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '_str_sls'
NetworkManager-1.46.0/src/libnm-std-aux/nm-default-std.h:102: included_from: Included from here.
NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib.h:11: included_from: Included from here.
NetworkManager-1.46.0/src/libnm-glib-aux/nm-default-glib-i18n-prog.h:13: included_from: Included from here.
NetworkManager-1.46.0/src/core/nm-default-daemon.h:11: included_from: Included from here.
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:6: included_from: Included from here.
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/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/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/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:6482:5: note: in expansion of macro 'g_return_val_if_fail'
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/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/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/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:6483:5: note: in expansion of macro 'g_return_val_if_fail'
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/src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro 'NM_BOOLEAN_EXPR'
/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/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:6483:5: note: in expansion of macro 'g_return_val_if_fail'
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:6485:5: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:6485:5: note: in expansion of macro 'NM_SET_OUT'
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:6390:5: note: in expansion of macro 'nm_assert'
NetworkManager-1.46.0/src/libnm-std-aux/nm-std-aux.h:307:38: note: in definition of macro 'nm_assert'
/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/src/libnm-glib-aux/nm-macros-internal.h:15: included_from: Included from here.
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:2656:57: note: in definition of macro '_G_TYPE_CIC'
NetworkManager-1.46.0/src/libnm-core-public/nm-setting-connection.h:20:6: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST'
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:404:13: note: in expansion of macro 'NM_SETTING_CONNECTION'
NetworkManager-1.46.0/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:606:22: note: in expansion of macro 'nm_str_skip_leading_spaces'
# 605| d = nm_g_ascii_strtod(v, &endptr);
# 606| endptr = nm_str_skip_leading_spaces(endptr);
# 607|-> if (errno == 0 && endptr[0] == '\0' && d >= 0.0) {
# 608| d *= 1000.0;
# 609|
Error: CLANG_WARNING:
NetworkManager-1.46.0/src/libnm-core-impl/nm-keyfile.c:22: included_from: Included from here.
NetworkManager-1.46.0/src/libnm-glib-aux/nm-str-buf.h:274:42: warning[core.NullDereference]: Array access (via field '_priv_str') results in a null pointer dereference
# 272| strbuf->_priv_len += len;
# 273| }
# 274|-> strbuf->_priv_str[strbuf->_priv_len] = '\0';
# 275| return strbuf->_priv_str;
# 276| }