libxfce4ui-4.20.1-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
libxfce4ui-4.20.1/libxfce4kbd-private/xfce-shortcuts-grabber.c:617: error[uninitvar]: Uninitialized variable: g.refcount
#  615|                 if (pg->refcount == 0)
#  616|                   {
#  617|->                   xfce_shortcuts_grabber_xgrab (g, FALSE);
#  618|                     g_hash_table_remove (grabber->priv->grabbed_keycodes, pg);
#  619|                   }

Error: GCC_ANALYZER_WARNING (CWE-686): [#def2]
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:670:11: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'const gchar *' {{aka 'const char *'}} but received 'int' for variadic argument 1 of 'args'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:428:1: enter_function: entry to 'IA__xfce_dialog_confirm'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:440:3: branch_true: following 'true' branch...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:441:3: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:448:6: branch_true: following 'true' branch (when 'stock_id' is non-NULL)...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:448:28: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:451:10: branch_false: following 'false' branch (when 'confirm_label' is non-NULL)...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:459:17: branch_false: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:459:17: call_function: calling 'IA__xfce_message_dialog' from 'IA__xfce_dialog_confirm' with 6 variadic arguments
#  668|           {
#  669|             /* get arguments */
#  670|->           stock_id = va_arg (args, const gchar *);
#  671|             label = va_arg (args, const gchar *);
#  672|             response = va_arg (args, gint);

Error: GCC_ANALYZER_WARNING (CWE-686): [#def3]
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:683:11: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'GdkPixbuf *' {{aka 'struct _GdkPixbuf *'}} but received 'int' for variadic argument 1 of 'args'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:428:1: enter_function: entry to 'IA__xfce_dialog_confirm'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:440:3: branch_true: following 'true' branch...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:441:3: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:448:6: branch_true: following 'true' branch (when 'stock_id' is non-NULL)...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:448:28: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:451:10: branch_false: following 'false' branch (when 'confirm_label' is non-NULL)...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:459:17: branch_false: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:459:17: call_function: calling 'IA__xfce_message_dialog' from 'IA__xfce_dialog_confirm' with 6 variadic arguments
#  681|           {
#  682|             /* get arguments */
#  683|->           pixbuf = va_arg (args, GdkPixbuf *);
#  684|             label = va_arg (args, const gchar *);
#  685|             response = va_arg (args, gint);

Error: GCC_ANALYZER_WARNING (CWE-686): [#def4]
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:713:11: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'gint' {{aka 'int'}} but received 'char (*)[22]' for variadic argument 1 of 'args'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:386:1: enter_function: entry to 'IA__xfce_dialog_show_error'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:400:3: branch_true: following 'true' branch (when 'error' is non-NULL)...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:400:3: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:400:3: call_function: calling 'IA__xfce_message_dialog' from 'IA__xfce_dialog_show_error' with 4 variadic arguments
#  711|             /* get arguments */
#  712|             stock_id = text;
#  713|->           response = va_arg (args, gint);
#  714|   
#  715|             /* add a stock button to the dialog */

Error: GCC_ANALYZER_WARNING (CWE-686): [#def5]
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:713:11: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'gint' {{aka 'int'}} but received 'const gchar *' {{aka 'const char *'}} for variadic argument 3 of 'args'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:428:1: enter_function: entry to 'IA__xfce_dialog_confirm'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:440:3: branch_true: following 'true' branch...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:441:3: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:448:6: branch_true: following 'true' branch (when 'stock_id' is non-NULL)...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:448:28: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:451:10: branch_false: following 'false' branch (when 'confirm_label' is non-NULL)...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:459:17: branch_false: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:459:17: call_function: calling 'IA__xfce_message_dialog' from 'IA__xfce_dialog_confirm' with 6 variadic arguments
#  711|             /* get arguments */
#  712|             stock_id = text;
#  713|->           response = va_arg (args, gint);
#  714|   
#  715|             /* add a stock button to the dialog */

Error: GCC_ANALYZER_WARNING (CWE-686): [#def6]
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:713:11: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'gint' {{aka 'int'}} but received 'void *' for variadic argument 1 of 'args'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:502:1: enter_function: entry to 'IA__xfce_dialog_confirm_close_tabs'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:513:3: branch_true: following 'true' branch...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:515:18: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:526:12: call_function: calling 'IA__xfce_message_dialog_new' from 'IA__xfce_dialog_confirm_close_tabs' with 12 variadic arguments
#  711|             /* get arguments */
#  712|             stock_id = text;
#  713|->           response = va_arg (args, gint);
#  714|   
#  715|             /* add a stock button to the dialog */

Error: GCC_ANALYZER_WARNING (CWE-686): [#def7]
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:713:11: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'gint' {{aka 'int'}} but received 'void *' for variadic argument 5 of 'args'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:502:1: enter_function: entry to 'IA__xfce_dialog_confirm_close_tabs'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:513:3: branch_true: following 'true' branch...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:515:18: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:526:12: call_function: calling 'IA__xfce_message_dialog_new' from 'IA__xfce_dialog_confirm_close_tabs' with 12 variadic arguments
#  711|             /* get arguments */
#  712|             stock_id = text;
#  713|->           response = va_arg (args, gint);
#  714|   
#  715|             /* add a stock button to the dialog */

Error: GCC_ANALYZER_WARNING (CWE-686): [#def8]
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:713:11: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'gint' {{aka 'int'}} but received 'void *' for variadic argument 9 of 'args'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:502:1: enter_function: entry to 'IA__xfce_dialog_confirm_close_tabs'
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:513:3: branch_true: following 'true' branch...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:515:18: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:516:6: branch_true: following 'true' branch (when 'num_tabs < 0')...
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:517:22: branch_true: ...to here
libxfce4ui-4.20.1/libxfce4ui/xfce-dialogs.c:526:12: call_function: calling 'IA__xfce_message_dialog_new' from 'IA__xfce_dialog_confirm_close_tabs' with 12 variadic arguments
#  711|             /* get arguments */
#  712|             stock_id = text;
#  713|->           response = va_arg (args, gint);
#  714|   
#  715|             /* add a stock button to the dialog */

Error: CPPCHECK_WARNING (CWE-190): [#def9]
libxfce4ui-4.20.1/libxfce4ui/xfce-gdk-extensions.c:153: error[integerOverflow]: Signed integer underflow for expression 'w-x'.
#  151|       }
#  152|   
#  153|->   geometry->width = w - x;
#  154|     geometry->height = h - y;
#  155|   

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-152.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibxfce4ui-4.20.1-1.fc43
store-results-to/tmp/tmpk2ztfamd/libxfce4ui-4.20.1-1.fc43.tar.xz
time-created2025-04-25 14:24:27
time-finished2025-04-25 14:26:40
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpk2ztfamd/libxfce4ui-4.20.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpk2ztfamd/libxfce4ui-4.20.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9