nautilus-47.0-2.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view-dnd.c: scope_hint: In function ‘get_drop_filename’
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view-dnd.c:108:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘current_char’
/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.
/usr/include/gtk-4.0/gtk/css/gtkcss.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:29: included_from: Included from here.
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view.h:27: included_from: Included from here.
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view-dnd.h:29: included_from: Included from here.
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view-dnd.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view-dnd.c:103:30: note: in expansion of macro ‘_’
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view-dnd.c:103:20: note: in expansion of macro ‘g_strdup’
nautilus-47.0-build/nautilus-47.0/src/nautilus-files-view-dnd.c: scope_hint: In function ‘get_drop_filename’
#  106|       /* Remove any invalid characters */
#  107|       for (current_char = filename;
#  108|->          *current_char;
#  109|            current_char = g_utf8_next_char (current_char))
#  110|       {

Error: CPPCHECK_WARNING (CWE-682): [#def2]
nautilus-47.0-build/nautilus-47.0/src/nautilus-query.c:411: error[nullPointerArithmetic]: Overflow in pointer arithmetic, NULL pointer is subtracted.
#  409|        * smaller amount.
#  410|        */
#  411|->     retval = MAX (MIN_RANK, MAX_RANK - (gdouble) (ptr - prepared_string) - (gdouble) nonexact_malus / RANK_SCALE_FACTOR);
#  412|       g_free (prepared_string);
#  413|   

Error: CPPCHECK_WARNING (CWE-457): [#def3]
nautilus-47.0-build/nautilus-47.0/src/nautilus-window.c:324: error[legacyUninitvar]: Uninitialized variable: position
#  322|       /* Re-enable all of the actions if the menu is closed */
#  323|       g_simple_action_set_enabled (G_SIMPLE_ACTION (move_tab_left_action),
#  324|->                                  menu_is_closed || position > 0);
#  325|       g_simple_action_set_enabled (G_SIMPLE_ACTION (move_tab_right_action),
#  326|                                    menu_is_closed || position < n_pages - 1);

Error: CPPCHECK_WARNING (CWE-457): [#def4]
nautilus-47.0-build/nautilus-47.0/src/nautilus-window.c:326: error[legacyUninitvar]: Uninitialized variable: n_pages
#  324|                                    menu_is_closed || position > 0);
#  325|       g_simple_action_set_enabled (G_SIMPLE_ACTION (move_tab_right_action),
#  326|->                                  menu_is_closed || position < n_pages - 1);
#  327|       g_simple_action_set_enabled (G_SIMPLE_ACTION (restore_tab_action),
#  328|                                    menu_is_closed || g_queue_get_length (window->tab_data_queue) > 0);

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-207.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namenautilus-47.0-2.fc42
store-results-to/tmp/tmps6t18kkq/nautilus-47.0-2.fc42.tar.xz
time-created2024-11-13 02:07:27
time-finished2024-11-13 02:13:39
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmps6t18kkq/nautilus-47.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmps6t18kkq/nautilus-47.0-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9