Fixed defects

List of Defects

Error: CPPCHECK_WARNING: [#def1]
nautilus-46.0-build/nautilus-46.0/src/nautilus-date-utilities.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c: scope_hint: In function ‘nautilus_filename_validator_name_is_valid’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:119:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:7: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/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’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181: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’
nautilus-46.0-build/nautilus-46.0/src/nautilus-directory.h:49:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181:23: note: in expansion of macro ‘NAUTILUS_IS_DIRECTORY’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/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’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181: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’
nautilus-46.0-build/nautilus-46.0/src/nautilus-directory.h:49:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181:23: note: in expansion of macro ‘NAUTILUS_IS_DIRECTORY’
/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.
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:107:12: note: in expansion of macro ‘g_strdup’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c: scope_hint: In function ‘nautilus_filename_validator_name_is_valid’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:107:12: note: in expansion of macro ‘g_strdup’
#  117|   
#  118|       is_valid = TRUE;
#  119|->     if (strlen (name) == 0)
#  120|       {
#  121|           is_valid = FALSE;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-211.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namenautilus-46.2-1.fc41
diffbase-store-results-to/tmp/tmpzrq9208q/nautilus-46.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 16:28:42
diffbase-time-finished2024-07-03 16:34:27
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpzrq9208q/nautilus-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpzrq9208q/nautilus-46.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-211.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namenautilus-46.0-1.fc40
store-results-to/tmp/tmp60b0ztll/nautilus-46.0-1.fc40.tar.xz
time-created2024-07-03 16:22:10
time-finished2024-07-03 16:28:23
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp60b0ztll/nautilus-46.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp60b0ztll/nautilus-46.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9