Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] 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: [#def2] 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| }
| analyzer-version-clang | 18.1.1 |
| analyzer-version-cppcheck | 2.13.0 |
| analyzer-version-gcc | 14.0.1 |
| analyzer-version-gcc-analyzer | 14.0.1 |
| analyzer-version-shellcheck | 0.9.0 |
| diffbase-analyzer-version-clang | 18.1.1 |
| diffbase-analyzer-version-cppcheck | 2.13.0 |
| diffbase-analyzer-version-gcc | 14.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 14.0.1 |
| diffbase-analyzer-version-shellcheck | 0.9.0 |
| diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-83.us-west-2.compute.internal |
| diffbase-mock-config | fedora-40-x86_64 |
| diffbase-project-name | NetworkManager-1.46.0-2.fc40 |
| diffbase-store-results-to | /tmp/tmpn5ia7tpx/NetworkManager-1.46.0-2.fc40.tar.xz |
| diffbase-time-created | 2024-04-17 05:36:25 |
| diffbase-time-finished | 2024-04-17 06:00:17 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-40-x86_64' '-t' 'shellcheck,clang,cppcheck,gcc' '-o' '/tmp/tmpn5ia7tpx/NetworkManager-1.46.0-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpn5ia7tpx/NetworkManager-1.46.0-2.fc40.src.rpm' |
| diffbase-tool-version | csmock-3.5.3-1.el9 |
| enabled-plugins | clang, cppcheck, gcc, shellcheck |
| exit-code | 0 |
| host | ip-172-16-1-83.us-west-2.compute.internal |
| mock-config | fedora-40-x86_64 |
| project-name | NetworkManager-1.46.0-2.fc41 |
| store-results-to | /tmp/tmpdydhapje/NetworkManager-1.46.0-2.fc41.tar.xz |
| time-created | 2024-04-17 06:01:23 |
| time-finished | 2024-04-17 06:26:07 |
| title | Newly introduced defects |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-40-x86_64' '-t' 'shellcheck,clang,cppcheck,gcc' '-o' '/tmp/tmpdydhapje/NetworkManager-1.46.0-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdydhapje/NetworkManager-1.46.0-2.fc41.src.rpm' |
| tool-version | csmock-3.5.3-1.el9 |