ibus-1.5.32-1.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/bin/ibus-desktop-testing-runner:28:1: warning[SC2034]: TEST_CASE_DIR appears unused. Verify use (or export if used externally).
#   26|   
#   27|   PROGNAME=`basename $0`
#   28|-> TEST_CASE_DIR="/usr/share/installed-tests"
#   29|   MODULE_SH='ibus-desktop-testing-module'
#   30|   MODULE_SH_PATH="/usr/libexec/$MODULE_SH"

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/ibus-desktop-testing-runner:31:1: warning[SC2034]: AUTOSTART_DESKTOP_DIR appears unused. Verify use (or export if used externally).
#   29|   MODULE_SH='ibus-desktop-testing-module'
#   30|   MODULE_SH_PATH="/usr/libexec/$MODULE_SH"
#   31|-> AUTOSTART_DESKTOP_DIR="/usr/share/ibus/tests"
#   32|   TEST_LOG="test-suite.log"
#   33|   TESTING_RUNNER="default"

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/ibus-desktop-testing-runner:33:1: warning[SC2034]: TESTING_RUNNER appears unused. Verify use (or export if used externally).
#   31|   AUTOSTART_DESKTOP_DIR="/usr/share/ibus/tests"
#   32|   TEST_LOG="test-suite.log"
#   33|-> TESTING_RUNNER="default"
#   34|   
#   35|   

Error: SHELLCHECK_WARNING (CWE-156): [#def4]
/usr/bin/ibus-desktop-testing-runner:38:14: warning[SC2046]: Quote this to prevent word splitting.
#   36|   if test -f $MODULE_SH_PATH ; then
#   37|     . $MODULE_SH_PATH
#   38|-> elif test -f $(dirname $0)/$MODULE_SH ; then
#   39|     . $(dirname $0)/$MODULE_SH
#   40|   else

Error: SHELLCHECK_WARNING (CWE-156): [#def5]
/usr/bin/ibus-desktop-testing-runner:39:5: warning[SC2046]: Quote this to prevent word splitting.
#   37|     . $MODULE_SH_PATH
#   38|   elif test -f $(dirname $0)/$MODULE_SH ; then
#   39|->   . $(dirname $0)/$MODULE_SH
#   40|   else
#   41|     echo "Not found $MODULE_SH"

Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/usr/libexec/ibus-desktop-testing-autostart:26:1: warning[SC2034]: TEST_CASE_DIR appears unused. Verify use (or export if used externally).
#   24|   
#   25|   PROGNAME=`basename $0`
#   26|-> TEST_CASE_DIR="/usr/share/installed-tests"
#   27|   MODULE_SH='ibus-desktop-testing-module'
#   28|   MODULE_SH_PATH="/usr/libexec/$MODULE_SH"

Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/libexec/ibus-desktop-testing-autostart:30:1: warning[SC2034]: TESTING_RUNNER appears unused. Verify use (or export if used externally).
#   28|   MODULE_SH_PATH="/usr/libexec/$MODULE_SH"
#   29|   TEST_LOG="test-autostart.log"
#   30|-> TESTING_RUNNER=""
#   31|   
#   32|   

Error: SHELLCHECK_WARNING (CWE-156): [#def8]
/usr/libexec/ibus-desktop-testing-autostart:35:14: warning[SC2046]: Quote this to prevent word splitting.
#   33|   if test -f $MODULE_SH_PATH ; then
#   34|     . $MODULE_SH_PATH
#   35|-> elif test -f $(dirname $0)/$MODULE_SH ; then
#   36|     . $(dirname $0)/$MODULE_SH
#   37|   else

Error: SHELLCHECK_WARNING (CWE-156): [#def9]
/usr/libexec/ibus-desktop-testing-autostart:36:5: warning[SC2046]: Quote this to prevent word splitting.
#   34|     . $MODULE_SH_PATH
#   35|   elif test -f $(dirname $0)/$MODULE_SH ; then
#   36|->   . $(dirname $0)/$MODULE_SH
#   37|   else
#   38|     echo "Not found $MODULE_SH"

Error: SHELLCHECK_WARNING (CWE-569): [#def10]
/usr/libexec/ibus-desktop-testing-module:467:29: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
#  465|       fi
#  466|       if [ x"$V" = x"''" ] ; then
#  467|->         SET_WELCOME_DIALOG="gsettings set org.gnome.shell welcome-dialog-last-shown-version '100'"
#  468|           if test $LOGIN_USER = $USER ; then
#  469|               dbus-run-session $SET_WELCOME_DIALOG

Error: SHELLCHECK_WARNING (CWE-569): [#def11]
/usr/libexec/ibus-desktop-testing-module:469:30: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
#  467|           SET_WELCOME_DIALOG="gsettings set org.gnome.shell welcome-dialog-last-shown-version '100'"
#  468|           if test $LOGIN_USER = $USER ; then
#  469|->             dbus-run-session $SET_WELCOME_DIALOG
#  470|           else
#  471|               sudo -u $LOGIN_USER dbus-run-session $SET_WELCOME_DIALOG

Error: SHELLCHECK_WARNING (CWE-569): [#def12]
/usr/libexec/ibus-desktop-testing-module:471:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
#  469|               dbus-run-session $SET_WELCOME_DIALOG
#  470|           else
#  471|->             sudo -u $LOGIN_USER dbus-run-session $SET_WELCOME_DIALOG
#  472|           fi
#  473|       fi

Error: SHELLCHECK_WARNING (CWE-252): [#def13]
/usr/libexec/ibus-desktop-testing-module:513:17: warning[SC2164]: Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.
#  511|               if test ! -f "$SYSTEMD_USER_DIR/$SHELL_SERVICE_FILE" ; then
#  512|                   mkdir -p "$SYSTEMD_USER_DIR"
#  513|->                 pushd "$SYSTEMD_USER_DIR"
#  514|                   sed -e "s|^ExecStart=.*|ExecStart=$GNOME_SHELL_WAYLAND_COMMAND|" \
#  515|                       $SYSTEMD_SYSTEM_DIR/$SHELL_SERVICE_FILE \

Error: SHELLCHECK_WARNING: [#def14]
/usr/libexec/ibus-desktop-testing-module:513:17: warning[SC3044]: In POSIX sh, 'pushd' is undefined.
#  511|               if test ! -f "$SYSTEMD_USER_DIR/$SHELL_SERVICE_FILE" ; then
#  512|                   mkdir -p "$SYSTEMD_USER_DIR"
#  513|->                 pushd "$SYSTEMD_USER_DIR"
#  514|                   sed -e "s|^ExecStart=.*|ExecStart=$GNOME_SHELL_WAYLAND_COMMAND|" \
#  515|                       $SYSTEMD_SYSTEM_DIR/$SHELL_SERVICE_FILE \

Error: SHELLCHECK_WARNING (CWE-252): [#def15]
/usr/libexec/ibus-desktop-testing-module:518:17: warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.
#  516|                       > $SHELL_SERVICE_FILE
#  517|                   diff $SYSTEMD_SYSTEM_DIR/$SHELL_SERVICE_FILE $SHELL_SERVICE_FILE
#  518|->                 popd
#  519|               fi
#  520|               mkdir -p "$ENV_USER_DIR"

Error: SHELLCHECK_WARNING: [#def16]
/usr/libexec/ibus-desktop-testing-module:518:17: warning[SC3044]: In POSIX sh, 'popd' is undefined.
#  516|                       > $SHELL_SERVICE_FILE
#  517|                   diff $SYSTEMD_SYSTEM_DIR/$SHELL_SERVICE_FILE $SHELL_SERVICE_FILE
#  518|->                 popd
#  519|               fi
#  520|               mkdir -p "$ENV_USER_DIR"

Error: SHELLCHECK_WARNING (CWE-571): [#def17]
/usr/libexec/installed-tests/ibus/xkb-latin-layouts:53:12: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   51|       # better, but not everyone has it yet.
#   52|       export DBUS_FATAL_WARNINGS=0
#   53|->     export TMPDIR=$(mktemp -d --tmpdir="$PWD")
#   54|       export XDG_CONFIG_HOME="$TMPDIR/config"
#   55|       export XDG_CACHE_HOME="$TMPDIR/cache"

Error: SHELLCHECK_WARNING (CWE-156): [#def18]
/usr/libexec/installed-tests/ibus/xkb-latin-layouts:59:10: warning[SC2046]: Quote this to prevent word splitting.
#   57|       mkdir -p $XDG_CONFIG_HOME $XDG_CACHE_HOME $GSETTINGS_SCHEMA_DIR
#   58|   
#   59|->     eval `dbus-launch --sh-syntax`
#   60|   
#   61|       trap 'rm -rf $TMPDIR; kill $DBUS_SESSION_BUS_PID; setxkbmap -layout us' ERR

Error: SHELLCHECK_WARNING (CWE-571): [#def19]
/usr/share/bash-completion/completions/ibus.bash:84:15: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   82|   {
#   83|       if [[ "$cmd" == "$prev" ]]; then
#   84|->         local imes=$( ibus list-engine --name-only 2>/dev/null )
#   85|           COMPREPLY=( $( compgen -W "$imes" -- "$cur" | sed "s/^$cur/$cur_/" ))
#   86|       fi

Error: SHELLCHECK_WARNING (CWE-140): [#def20]
/usr/share/bash-completion/completions/ibus.bash:85:21: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#   83|       if [[ "$cmd" == "$prev" ]]; then
#   84|           local imes=$( ibus list-engine --name-only 2>/dev/null )
#   85|->         COMPREPLY=( $( compgen -W "$imes" -- "$cur" | sed "s/^$cur/$cur_/" ))
#   86|       fi
#   87|   }

Error: SHELLCHECK_WARNING (CWE-563): [#def21]
/usr/share/bash-completion/completions/ibus.bash:92:14: warning[SC2034]: options appears unused. Verify use (or export if used externally).
#   90|   {
#   91|      if [[ "$cur" == -* ]]; then
#   92|->        local options=( --name-only )
#   93|          COMPREPLY=( $( compgen -W '${options[@]}' -- "$cur" ))
#   94|      fi

Error: SHELLCHECK_WARNING (CWE-140): [#def22]
/usr/share/bash-completion/completions/ibus.bash:93:20: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#   91|      if [[ "$cur" == -* ]]; then
#   92|          local options=( --name-only )
#   93|->        COMPREPLY=( $( compgen -W '${options[@]}' -- "$cur" ))
#   94|      fi
#   95|   }

Error: SHELLCHECK_WARNING (CWE-563): [#def23]
/usr/share/bash-completion/completions/ibus.bash:101:19: warning[SC2034]: prev_ appears unused. Verify use (or export if used externally).
#   99|       COMPREPLY=()
#  100|   
#  101|->     local cur_=$2 prev_=$3 cur words cword prev
#  102|       _get_comp_words_by_ref -n =: cur words cword prev
#  103|   

Error: SHELLCHECK_WARNING (CWE-563): [#def24]
/usr/share/bash-completion/completions/ibus.bash:101:38: warning[SC2034]: cword appears unused. Verify use (or export if used externally).
#   99|       COMPREPLY=()
#  100|   
#  101|->     local cur_=$2 prev_=$3 cur words cword prev
#  102|       _get_comp_words_by_ref -n =: cur words cword prev
#  103|   

Error: SHELLCHECK_WARNING (CWE-563): [#def25]
/usr/share/bash-completion/completions/ibus.bash:115:26: warning[SC2034]: subcmd appears unused. Verify use (or export if used externally).
#  113|       local i c cmd subcmd
#  114|       for (( i=1; i < ${#words[@]}-1; i++)) ; do
#  115|->         [[ -n $cmd ]] && subcmd=${words[i]} && break
#  116|           for c in ${cmds[@]}; do
#  117|               [[ ${words[i]} == $c ]] && cmd=$c && break

Error: SHELLCHECK_WARNING (CWE-88): [#def26]
/usr/share/bash-completion/completions/ibus.bash:116:18: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#  114|       for (( i=1; i < ${#words[@]}-1; i++)) ; do
#  115|           [[ -n $cmd ]] && subcmd=${words[i]} && break
#  116|->         for c in ${cmds[@]}; do
#  117|               [[ ${words[i]} == $c ]] && cmd=$c && break
#  118|           done

Error: SHELLCHECK_WARNING (CWE-153): [#def27]
/usr/share/bash-completion/completions/ibus.bash:117:31: warning[SC2053]: Quote the right-hand side of == in [[ ]] to prevent glob matching.
#  115|           [[ -n $cmd ]] && subcmd=${words[i]} && break
#  116|           for c in ${cmds[@]}; do
#  117|->             [[ ${words[i]} == $c ]] && cmd=$c && break
#  118|           done
#  119|       done

Error: SHELLCHECK_WARNING (CWE-140): [#def28]
/usr/share/bash-completion/completions/ibus.bash:134:25: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#  132|               ;;
#  133|           *)
#  134|->             COMPREPLY=( $( compgen -W '${cmds[@]}' -- "$cur" ))
#  135|               return 0
#  136|               ;;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
ibus-1.5.32/bindings/vala/candidatearea.c:567:41: warning[-Wanalyzer-null-dereference]: dereference of NULL 'candidates'
ibus-1.5.32/bindings/vala/candidatearea.c:508:1: enter_function: entry to 'candidate_area_set_candidates'
ibus-1.5.32/bindings/vala/candidatearea.c:516:9: branch_true: following 'true' branch (when 'self' is non-NULL)...
ibus-1.5.32/bindings/vala/candidatearea.c:517:18: branch_true: ...to here
ibus-1.5.32/bindings/vala/candidatearea.c:517:18: branch_false: following 'false' branch (when 'candidates' is NULL)...
ibus-1.5.32/bindings/vala/candidatearea.c:519:91: branch_false: ...to here
ibus-1.5.32/bindings/vala/candidatearea.c:525:9: branch_true: following 'true' branch (when 'candidates_length1 <= 16')...
 branch_true: ...to here
ibus-1.5.32/bindings/vala/candidatearea.c:539:36: branch_false: following 'false' branch (when '_tmp1_ != 0')...
ibus-1.5.32/bindings/vala/candidatearea.c:545:36: branch_false: ...to here
ibus-1.5.32/bindings/vala/candidatearea.c:545:36: branch_false: following 'false' branch (when 'i != 16')...
ibus-1.5.32/bindings/vala/candidatearea.c:548:42: branch_false: ...to here
ibus-1.5.32/bindings/vala/candidatearea.c:551:42: call_function: inlined call to '_g_object_ref0' from 'candidate_area_set_candidates'
ibus-1.5.32/bindings/vala/candidatearea.c:554:36: branch_false: ...to here
ibus-1.5.32/bindings/vala/candidatearea.c:554:36: branch_true: following 'true' branch (when 'i < candidates_length1')...
ibus-1.5.32/bindings/vala/candidatearea.c:567:60: branch_true: ...to here
ibus-1.5.32/bindings/vala/candidatearea.c:567:41: danger: dereference of NULL 'candidates + (long unsigned int)i * 8'
#  565|   					GtkLabel* _tmp51_;
#  566|   					PangoAttrList* _tmp52_;
#  567|-> 					_tmp6_ = candidates[i];
#  568|   					_tmp7_ = get_pango_attr_list_from_ibus_text (_tmp6_);
#  569|   					attrs = _tmp7_;

Error: COMPILER_WARNING (CWE-704): [#def30]
ibus-1.5.32/bindings/vala/candidatearea.c:1610:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 1608|   {
# 1609|   	static volatile gsize candidate_area_type_id__once = 0;
# 1610|-> 	if (g_once_init_enter (&candidate_area_type_id__once)) {
# 1611|   		GType candidate_area_type_id;
# 1612|   		candidate_area_type_id = candidate_area_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def31]
ibus-1.5.32/bindings/vala/emojier.c:953:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  951|   {
#  952|   	static volatile gsize ibus_emojier_travel_direction_type_id__once = 0;
#  953|-> 	if (g_once_init_enter (&ibus_emojier_travel_direction_type_id__once)) {
#  954|   		GType ibus_emojier_travel_direction_type_id;
#  955|   		ibus_emojier_travel_direction_type_id = ibus_emojier_travel_direction_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def32]
ibus-1.5.32/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_update_category_to_emojis_dict'
ibus-1.5.32/bindings/vala/emojier.c:2186:47: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2186 |                                 ch_collection = IBUS_EMOJIER_EMOJI_VARIANT_LIST;
#      |                                               ^
# 2184|   				gint _ch_collection_size_ = 0;
# 2185|   				gint ch_it = 0;
# 2186|-> 				ch_collection = IBUS_EMOJIER_EMOJI_VARIANT_LIST;
# 2187|   				ch_collection_length1 = G_N_ELEMENTS (IBUS_EMOJIER_EMOJI_VARIANT_LIST);
# 2188|   				for (ch_it = 0; ch_it < ch_collection_length1; ch_it = ch_it + 1) {

Error: COMPILER_WARNING (CWE-704): [#def33]
ibus-1.5.32/bindings/vala/emojier.c:2186:47: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2184|   				gint _ch_collection_size_ = 0;
# 2185|   				gint ch_it = 0;
# 2186|-> 				ch_collection = IBUS_EMOJIER_EMOJI_VARIANT_LIST;
# 2187|   				ch_collection_length1 = G_N_ELEMENTS (IBUS_EMOJIER_EMOJI_VARIANT_LIST);
# 2188|   				for (ch_it = 0; ch_it < ch_collection_length1; ch_it = ch_it + 1) {

Error: COMPILER_WARNING (CWE-704): [#def34]
ibus-1.5.32/bindings/vala/emojier.c:8269:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8267|   {
# 8268|   	static volatile gsize ibus_emojier_elist_box_type_id__once = 0;
# 8269|-> 	if (g_once_init_enter (&ibus_emojier_elist_box_type_id__once)) {
# 8270|   		GType ibus_emojier_elist_box_type_id;
# 8271|   		ibus_emojier_elist_box_type_id = ibus_emojier_elist_box_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def35]
ibus-1.5.32/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_ebox_row_set_text'
ibus-1.5.32/bindings/vala/emojier.c:8317:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 8317 |         old_value = ibus_emojier_ebox_row_get_text (self);
#      |                   ^
# 8315|   	gchar* old_value;
# 8316|   	g_return_if_fail (self != NULL);
# 8317|-> 	old_value = ibus_emojier_ebox_row_get_text (self);
# 8318|   	if (g_strcmp0 (value, old_value) != 0) {
# 8319|   		gchar* _tmp0_;

Error: COMPILER_WARNING (CWE-704): [#def36]
ibus-1.5.32/bindings/vala/emojier.c:8317:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 8315|   	gchar* old_value;
# 8316|   	g_return_if_fail (self != NULL);
# 8317|-> 	old_value = ibus_emojier_ebox_row_get_text (self);
# 8318|   	if (g_strcmp0 (value, old_value) != 0) {
# 8319|   		gchar* _tmp0_;

Error: COMPILER_WARNING (CWE-704): [#def37]
ibus-1.5.32/bindings/vala/emojier.c:8369:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8367|   {
# 8368|   	static volatile gsize ibus_emojier_ebox_row_type_id__once = 0;
# 8369|-> 	if (g_once_init_enter (&ibus_emojier_ebox_row_type_id__once)) {
# 8370|   		GType ibus_emojier_ebox_row_type_id;
# 8371|   		ibus_emojier_ebox_row_type_id = ibus_emojier_ebox_row_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def38]
ibus-1.5.32/bindings/vala/emojier.c:8462:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8460|   {
# 8461|   	static volatile gsize ibus_emojier_escrolled_window_type_id__once = 0;
# 8462|-> 	if (g_once_init_enter (&ibus_emojier_escrolled_window_type_id__once)) {
# 8463|   		GType ibus_emojier_escrolled_window_type_id;
# 8464|   		ibus_emojier_escrolled_window_type_id = ibus_emojier_escrolled_window_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def39]
ibus-1.5.32/bindings/vala/emojier.c:8510:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8508|   {
# 8509|   	static volatile gsize ibus_emojier_egrid_type_id__once = 0;
# 8510|-> 	if (g_once_init_enter (&ibus_emojier_egrid_type_id__once)) {
# 8511|   		GType ibus_emojier_egrid_type_id;
# 8512|   		ibus_emojier_egrid_type_id = ibus_emojier_egrid_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
ibus-1.5.32/bindings/vala/emojier.c:8584:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/bindings/vala/emojier.c:8542:1: enter_function: entry to 'ibus_emojier_ewhite_label_real_get_preferred_width'
ibus-1.5.32/bindings/vala/emojier.c:8582:14: call_function: calling 'string_get_char' from 'ibus_emojier_ewhite_label_real_get_preferred_width'
ibus-1.5.32/bindings/vala/emojier.c:8582:14: return_function: returning to 'ibus_emojier_ewhite_label_real_get_preferred_width' from 'string_get_char'
ibus-1.5.32/bindings/vala/emojier.c:8584:18: danger: argument 1 ('<unknown>') NULL where non-null expected
#argument 1 of '__builtin_strlen' must be non-null
# 8582|   	ch = string_get_char (_tmp5_, (glong) 0);
# 8583|   	_tmp7_ = text;
# 8584|-> 	_tmp8_ = strlen (_tmp7_);
# 8585|   	_tmp9_ = _tmp8_;
# 8586|   	if (_tmp9_ == 1) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
ibus-1.5.32/bindings/vala/emojier.c:8696:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/bindings/vala/emojier.c:8654:1: enter_function: entry to 'ibus_emojier_ewhite_label_real_get_preferred_height'
ibus-1.5.32/bindings/vala/emojier.c:8694:14: call_function: calling 'string_get_char' from 'ibus_emojier_ewhite_label_real_get_preferred_height'
ibus-1.5.32/bindings/vala/emojier.c:8694:14: return_function: returning to 'ibus_emojier_ewhite_label_real_get_preferred_height' from 'string_get_char'
ibus-1.5.32/bindings/vala/emojier.c:8696:18: danger: argument 1 ('<unknown>') NULL where non-null expected
#argument 1 of '__builtin_strlen' must be non-null
# 8694|   	ch = string_get_char (_tmp5_, (glong) 0);
# 8695|   	_tmp7_ = text;
# 8696|-> 	_tmp8_ = strlen (_tmp7_);
# 8697|   	_tmp9_ = _tmp8_;
# 8698|   	if (_tmp9_ == 1) {

Error: COMPILER_WARNING (CWE-704): [#def42]
ibus-1.5.32/bindings/vala/emojier.c:8803:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8801|   {
# 8802|   	static volatile gsize ibus_emojier_ewhite_label_type_id__once = 0;
# 8803|-> 	if (g_once_init_enter (&ibus_emojier_ewhite_label_type_id__once)) {
# 8804|   		GType ibus_emojier_ewhite_label_type_id;
# 8805|   		ibus_emojier_ewhite_label_type_id = ibus_emojier_ewhite_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def43]
ibus-1.5.32/bindings/vala/emojier.c:8856:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8854|   {
# 8855|   	static volatile gsize ibus_emojier_eselected_label_type_id__once = 0;
# 8856|-> 	if (g_once_init_enter (&ibus_emojier_eselected_label_type_id__once)) {
# 8857|   		GType ibus_emojier_eselected_label_type_id;
# 8858|   		ibus_emojier_eselected_label_type_id = ibus_emojier_eselected_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def44]
ibus-1.5.32/bindings/vala/emojier.c:8909:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8907|   {
# 8908|   	static volatile gsize ibus_emojier_egold_label_type_id__once = 0;
# 8909|-> 	if (g_once_init_enter (&ibus_emojier_egold_label_type_id__once)) {
# 8910|   		GType ibus_emojier_egold_label_type_id;
# 8911|   		ibus_emojier_egold_label_type_id = ibus_emojier_egold_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def45]
ibus-1.5.32/bindings/vala/emojier.c:8962:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 8960|   {
# 8961|   	static volatile gsize ibus_emojier_epadded_label_type_id__once = 0;
# 8962|-> 	if (g_once_init_enter (&ibus_emojier_epadded_label_type_id__once)) {
# 8963|   		GType ibus_emojier_epadded_label_type_id;
# 8964|   		ibus_emojier_epadded_label_type_id = ibus_emojier_epadded_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def46]
ibus-1.5.32/bindings/vala/emojier.c:9058:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 9056|   {
# 9057|   	static volatile gsize ibus_emojier_epadded_label_box_type_id__once = 0;
# 9058|-> 	if (g_once_init_enter (&ibus_emojier_epadded_label_box_type_id__once)) {
# 9059|   		GType ibus_emojier_epadded_label_box_type_id;
# 9060|   		ibus_emojier_epadded_label_box_type_id = ibus_emojier_epadded_label_box_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def47]
ibus-1.5.32/bindings/vala/emojier.c:9133:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 9131|   {
# 9132|   	static volatile gsize ibus_emojier_load_progress_object_type_id__once = 0;
# 9133|-> 	if (g_once_init_enter (&ibus_emojier_load_progress_object_type_id__once)) {
# 9134|   		GType ibus_emojier_load_progress_object_type_id;
# 9135|   		ibus_emojier_load_progress_object_type_id = ibus_emojier_load_progress_object_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def48]
ibus-1.5.32/bindings/vala/emojier.c:9219:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 9217|   {
# 9218|   	static volatile gsize ibus_emojier_type_id__once = 0;
# 9219|-> 	if (g_once_init_enter (&ibus_emojier_type_id__once)) {
# 9220|   		GType ibus_emojier_type_id;
# 9221|   		ibus_emojier_type_id = ibus_emojier_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def49]
ibus-1.5.32/bindings/vala/iconwidget.c:636:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  634|   {
#  635|   	static volatile gsize themed_rgba_type_id__once = 0;
#  636|-> 	if (g_once_init_enter (&themed_rgba_type_id__once)) {
#  637|   		GType themed_rgba_type_id;
#  638|   		themed_rgba_type_id = themed_rgba_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def50]
ibus-1.5.32/bindings/vala/iconwidget.c:872:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  870|   {
#  871|   	static volatile gsize icon_widget_type_id__once = 0;
#  872|-> 	if (g_once_init_enter (&icon_widget_type_id__once)) {
#  873|   		GType icon_widget_type_id;
#  874|   		icon_widget_type_id = icon_widget_get_type_once ();

Error: COMPILER_WARNING: [#def51]
ibus-1.5.32/bindings/vala/pango.c: scope_hint: In function 'get_pango_attr_list_from_ibus_text'
ibus-1.5.32/bindings/vala/pango.c:185:33: warning[-Warray-bounds=]: array subscript -1 is outside array bounds of 'void[<unknown>]'
#  185 |                         _tmp20_ = _tmp19_[-1];
#      |                         ~~~~~~~~^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
ibus-1.5.32/src/ibusshare.h:40: included_from: Included from here.
ibus-1.5.32/src/ibus.h:30: included_from: Included from here.
ibus-1.5.32/bindings/vala/pango.c:26: included_from: Included from here.
/usr/include/glib-2.0/glib/gmem.h:273:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by 'g_malloc0_n'
#  273 |             __p = g_##func##_n (__n, __s);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
#  183|   			_tmp19_ = offsets;
#  184|   			_tmp19__length1 = offsets_length1;
#  185|-> 			_tmp20_ = _tmp19_[-1];
#  186|   			_tmp16_ = _tmp20_;
#  187|   		}

Error: COMPILER_WARNING: [#def52]
ibus-1.5.32/bindings/vala/pango.c:208:33: warning[-Warray-bounds=]: array subscript -1 is outside array bounds of 'void[<unknown>]'
#  208 |                         _tmp26_ = _tmp25_[-1];
#      |                         ~~~~~~~~^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmem.h:273:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by 'g_malloc0_n'
#  273 |             __p = g_##func##_n (__n, __s);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
#  206|   			_tmp25_ = offsets;
#  207|   			_tmp25__length1 = offsets_length1;
#  208|-> 			_tmp26_ = _tmp25_[-1];
#  209|   			_tmp22_ = _tmp26_;
#  210|   		}

Error: COMPILER_WARNING (CWE-704): [#def53]
ibus-1.5.32/bindings/vala/separator.c:151:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  149|   {
#  150|   	static volatile gsize hseparator_type_id__once = 0;
#  151|-> 	if (g_once_init_enter (&hseparator_type_id__once)) {
#  152|   		GType hseparator_type_id;
#  153|   		hseparator_type_id = hseparator_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def54]
ibus-1.5.32/bindings/vala/separator.c:199:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  197|   {
#  198|   	static volatile gsize vseparator_type_id__once = 0;
#  199|-> 	if (g_once_init_enter (&vseparator_type_id__once)) {
#  200|   		GType vseparator_type_id;
#  201|   		vseparator_type_id = vseparator_get_type_once ();

Error: COMPILER_WARNING (CWE-563): [#def55]
ibus-1.5.32/client/gtk2/ibusimcontext.c: scope_hint: In function '_set_cursor_location_internal'
ibus-1.5.32/client/gtk2/ibusimcontext.c:1629:17: warning[-Wunused-variable]: unused variable 'display'
# 1629 |     GdkDisplay *display = NULL;
#      |                 ^~~~~~~
# 1627|   {
# 1628|       GdkRectangle area;
# 1629|->     GdkDisplay *display = NULL;
# 1630|   #if GTK_CHECK_VERSION (3, 98, 4)
# 1631|       GtkWidget *root;

Error: COMPILER_WARNING (CWE-477): [#def56]
ibus-1.5.32/client/gtk4/ibusimcontext.c: scope_hint: In function '_set_cursor_location_internal'
ibus-1.5.32/client/gtk4/ibusimcontext.c:1669:9: warning[-Wdeprecated-declarations]: 'gdk_x11_display_get_xdisplay' is deprecated
# 1669 |         XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
#      |         ^~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gdk/x11/gdkx.h:39: included_from: Included from here.
ibus-1.5.32/client/gtk4/ibusimcontext.c:45: included_from: Included from here.
/usr/include/gtk-4.0/gdk/x11/gdkx11display.h:60:15: note: declared here
#   60 | Display *     gdk_x11_display_get_xdisplay     (GdkDisplay  *display);
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1667|               (ibusimcontext->client_window);
# 1668|   
# 1669|->         XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
# 1670|                                  GDK_SURFACE_XID (surface),
# 1671|                                  gdk_x11_display_get_xrootwindow (display),

Error: COMPILER_WARNING (CWE-477): [#def57]
ibus-1.5.32/client/gtk4/ibusimcontext.c:1669:9: warning[-Wdeprecated-declarations]: 'gdk_x11_display_get_xdisplay' is deprecated
# 1667|               (ibusimcontext->client_window);
# 1668|   
# 1669|->         XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
# 1670|                                  GDK_SURFACE_XID (surface),
# 1671|                                  gdk_x11_display_get_xrootwindow (display),

Error: COMPILER_WARNING (CWE-477): [#def58]
ibus-1.5.32/client/gtk4/ibusimcontext.c:1670:32: warning[-Wdeprecated-declarations]: 'gdk_x11_surface_get_xid' is deprecated
# 1670 |                                GDK_SURFACE_XID (surface),
#      |                                ^~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gdk/x11/gdkx.h:47: included_from: Included from here.
/usr/include/gtk-4.0/gdk/x11/gdkx11surface.h:56:10: note: declared here
#   56 | Window   gdk_x11_surface_get_xid           (GdkSurface   *surface);
#      |          ^~~~~~~~~~~~~~~~~~~~~~~
# 1668|   
# 1669|           XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
# 1670|->                                GDK_SURFACE_XID (surface),
# 1671|                                  gdk_x11_display_get_xrootwindow (display),
# 1672|                                  0, 0, &tx, &ty,

Error: COMPILER_WARNING (CWE-477): [#def59]
ibus-1.5.32/client/gtk4/ibusimcontext.c:1670:32: warning[-Wdeprecated-declarations]: 'gdk_x11_surface_get_xid' is deprecated
# 1668|   
# 1669|           XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
# 1670|->                                GDK_SURFACE_XID (surface),
# 1671|                                  gdk_x11_display_get_xrootwindow (display),
# 1672|                                  0, 0, &tx, &ty,

Error: COMPILER_WARNING (CWE-477): [#def60]
ibus-1.5.32/client/gtk4/ibusimcontext.c:1671:32: warning[-Wdeprecated-declarations]: 'gdk_x11_display_get_xrootwindow' is deprecated
# 1671 |                                gdk_x11_display_get_xrootwindow (display),
#      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gdk/x11/gdkx11display.h:64:15: note: declared here
#   64 | Window        gdk_x11_display_get_xrootwindow  (GdkDisplay  *display);
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1669|           XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
# 1670|                                  GDK_SURFACE_XID (surface),
# 1671|->                                gdk_x11_display_get_xrootwindow (display),
# 1672|                                  0, 0, &tx, &ty,
# 1673|                                  &child);

Error: COMPILER_WARNING (CWE-477): [#def61]
ibus-1.5.32/client/gtk4/ibusimcontext.c:1671:32: warning[-Wdeprecated-declarations]: 'gdk_x11_display_get_xrootwindow' is deprecated
# 1669|           XTranslateCoordinates (GDK_DISPLAY_XDISPLAY (display),
# 1670|                                  GDK_SURFACE_XID (surface),
# 1671|->                                gdk_x11_display_get_xrootwindow (display),
# 1672|                                  0, 0, &tx, &ty,
# 1673|                                  &child);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
ibus-1.5.32/conf/dconf/config.c:120:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
ibus-1.5.32/conf/dconf/config.c:117:1: enter_function: entry to ‘_from_gsettings_name’
ibus-1.5.32/conf/dconf/config.c:120:22: danger: dereference of NULL ‘p’
#  118|   {
#  119|       gchar *retval = g_strdup (name), *p;
#  120|->     for (p = retval; *p != '\0'; p++)
#  121|           if (*p == '-')
#  122|               *p = '_';

Error: COMPILER_WARNING (CWE-704): [#def63]
ibus-1.5.32/engine/main.c:160:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  158|   {
#  159|   	static volatile gsize dummy_engine_type_id__once = 0;
#  160|-> 	if (g_once_init_enter (&dummy_engine_type_id__once)) {
#  161|   		GType dummy_engine_type_id;
#  162|   		dummy_engine_type_id = dummy_engine_get_type_once ();

Error: CPPCHECK_WARNING (CWE-476): [#def64]
ibus-1.5.32/src/ibushotkey.c:436: warning[nullPointer]: Possible null pointer dereference: p2
#  434|       g_assert (p2 && p2->event == event);
#  435|   
#  436|->     p2->hotkeys = g_list_remove (p2->hotkeys, p1);
#  437|       if (p2->hotkeys == NULL) {
#  438|           g_array_remove_index_fast (priv->events, i);

Error: CPPCHECK_WARNING (CWE-476): [#def65]
ibus-1.5.32/src/ibushotkey.c:437: warning[nullPointer]: Possible null pointer dereference: p2
#  435|   
#  436|       p2->hotkeys = g_list_remove (p2->hotkeys, p1);
#  437|->     if (p2->hotkeys == NULL) {
#  438|           g_array_remove_index_fast (priv->events, i);
#  439|       }

Error: CPPCHECK_WARNING (CWE-758): [#def66]
ibus-1.5.32/src/ibuskeys.c:138: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  136|   
#  137|       for (i = 0; i < 32; i++) {
#  138|->         guint mask = 1 << i;
#  139|   
#  140|           if ((modifiers & mask) == 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
ibus-1.5.32/src/ibusservice.c:289:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'error'
ibus-1.5.32/src/ibusservice.c:283:1: enter_function: entry to 'ibus_service_constructed'
ibus-1.5.32/src/ibusservice.c:286:8: branch_true: following 'true' branch...
ibus-1.5.32/src/ibusservice.c:287:17: branch_true: ...to here
ibus-1.5.32/src/ibusservice.c:287:17: release_memory: 'error' is NULL
ibus-1.5.32/src/ibusservice.c:288:14: call_function: calling 'ibus_service_register' from 'ibus_service_constructed'
ibus-1.5.32/src/ibusservice.c:288:14: return_function: returning to 'ibus_service_constructed' from 'ibus_service_register'
ibus-1.5.32/src/ibusservice.c:288:12: branch_true: following 'true' branch...
ibus-1.5.32/src/ibusservice.c:289:13: branch_true: ...to here
ibus-1.5.32/src/ibusservice.c:289:13: release_memory: 'error' is NULL
ibus-1.5.32/src/ibusservice.c:290:13: release_memory: 'error' is NULL
ibus-1.5.32/src/ibusservice.c:289:13: danger: dereference of NULL 'error'
#  287|           GError *error = NULL;
#  288|           if (!ibus_service_register (service, service->priv->connection, &error)) {
#  289|->             g_warning ("%s", error->message);
#  290|               g_error_free (error);
#  291|           }

Error: COMPILER_WARNING (CWE-477): [#def68]
ibus-1.5.32/src/tests/ibus-keypress.c: scope_hint: In function ‘set_engine_cb’
ibus-1.5.32/src/tests/ibus-keypress.c:226:5: warning[-Wdeprecated-declarations]: ‘gdk_x11_display_get_xdisplay’ is deprecated
#  226 |     xdisplay = gdk_x11_display_get_xdisplay (display);
#      |     ^~~~~~~~
/usr/include/gtk-4.0/gdk/x11/gdkx.h:39: included_from: Included from here.
ibus-1.5.32/src/tests/ibus-keypress.c:3: included_from: Included from here.
/usr/include/gtk-4.0/gdk/x11/gdkx11display.h:60:15: note: declared here
#   60 | Display *     gdk_x11_display_get_xdisplay     (GdkDisplay  *display);
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  224|   #endif
#  225|       g_assert (GDK_IS_X11_DISPLAY (display));
#  226|->     xdisplay = gdk_x11_display_get_xdisplay (display);
#  227|       g_return_if_fail (xdisplay);
#  228|   

Error: COMPILER_WARNING (CWE-477): [#def69]
ibus-1.5.32/src/tests/ibus-keypress.c:226:5: warning[-Wdeprecated-declarations]: ‘gdk_x11_display_get_xdisplay’ is deprecated
#  224|   #endif
#  225|       g_assert (GDK_IS_X11_DISPLAY (display));
#  226|->     xdisplay = gdk_x11_display_get_xdisplay (display);
#  227|       g_return_if_fail (xdisplay);
#  228|   

Error: COMPILER_WARNING (CWE-704): [#def70]
ibus-1.5.32/tools/krcfile.c:287:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  285|   {
#  286|   	static volatile gsize krc_file_key_value_pair_type_id__once = 0;
#  287|-> 	if (g_once_init_enter (&krc_file_key_value_pair_type_id__once)) {
#  288|   		GType krc_file_key_value_pair_type_id;
#  289|   		krc_file_key_value_pair_type_id = krc_file_key_value_pair_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def71]
ibus-1.5.32/tools/krcfile.c:344:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  342|   {
#  343|   	static volatile gsize krc_file_group_type_id__once = 0;
#  344|-> 	if (g_once_init_enter (&krc_file_group_type_id__once)) {
#  345|   		GType krc_file_group_type_id;
#  346|   		krc_file_group_type_id = krc_file_group_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def72]
ibus-1.5.32/tools/krcfile.c:1405:34: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/tools/krcfile.c:1490:1: enter_function: entry to ‘krc_file_load_from_file’
ibus-1.5.32/tools/krcfile.c:1498:16: release_memory: ‘_tmp4_’ is NULL
ibus-1.5.32/tools/krcfile.c:1504:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1505:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1505:9: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1506:14: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1506:12: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1523:18: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1525:9: release_memory: ‘_tmp4_’ is NULL
ibus-1.5.32/tools/krcfile.c:1528:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1542:12: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1542:12: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1549:18: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1549:18: call_function: calling ‘krc_file_parse_data’ from ‘krc_file_load_from_file’
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1403|   			offset = i + 1;
# 1404|   			_tmp2_ = sub;
# 1405|-> 			_tmp3_ = strlen (_tmp2_);
# 1406|   			_tmp4_ = _tmp3_;
# 1407|   			if (_tmp4_ > 0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def73]
ibus-1.5.32/tools/krcfile.c:1436:43: warning[-Wanalyzer-null-argument]: use of NULL ‘sub’ where non-null expected
ibus-1.5.32/tools/krcfile.c:1490:1: enter_function: entry to ‘krc_file_load_from_file’
ibus-1.5.32/tools/krcfile.c:1498:16: release_memory: ‘_tmp4_’ is NULL
ibus-1.5.32/tools/krcfile.c:1504:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1505:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1505:9: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1506:14: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1506:12: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1523:18: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1525:9: release_memory: ‘_tmp4_’ is NULL
ibus-1.5.32/tools/krcfile.c:1528:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1542:12: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1542:12: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1549:18: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1549:18: call_function: calling ‘krc_file_parse_data’ from ‘krc_file_load_from_file’
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1434|   				gint _tmp14_;
# 1435|   				_tmp12_ = sub;
# 1436|-> 				_tmp13_ = strlen (_tmp12_);
# 1437|   				_tmp14_ = _tmp13_;
# 1438|   				if (_tmp14_ == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
ibus-1.5.32/tools/krcfile.c:1651:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:1613:1: enter_function: entry to ‘krc_file_get_keys’
ibus-1.5.32/tools/krcfile.c:1631:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1632:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1632:9: branch_true: following ‘true’ branch (when ‘group_name’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1633:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1637:18: call_function: calling ‘krc_file_get_group_node_with_name’ from ‘krc_file_get_keys’
ibus-1.5.32/tools/krcfile.c:1637:18: return_function: returning to ‘krc_file_get_keys’ from ‘krc_file_get_group_node_with_name’
ibus-1.5.32/tools/krcfile.c:1639:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1651:9: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1651:9: danger: dereference of NULL ‘krc_file_get_group_node_with_name(self,  group_name, 1, & _inner_error0_)’
# 1649|   		}
# 1650|   	}
# 1651|-> 	_tmp2_ = group_node->data;
# 1652|   	_tmp3_ = (*((KRcFileGroup*) _tmp2_)).key_value_pairs;
# 1653|   	tmp = _tmp3_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
ibus-1.5.32/tools/krcfile.c:1731:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:1700:1: enter_function: entry to ‘krc_file_has_key’
ibus-1.5.32/tools/krcfile.c:1713:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1714:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1714:9: branch_true: following ‘true’ branch (when ‘group_name’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1715:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1715:9: branch_true: following ‘true’ branch (when ‘key’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1716:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1716:18: call_function: calling ‘krc_file_get_group_node_with_name’ from ‘krc_file_has_key’
ibus-1.5.32/tools/krcfile.c:1716:18: return_function: returning to ‘krc_file_has_key’ from ‘krc_file_get_group_node_with_name’
ibus-1.5.32/tools/krcfile.c:1718:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1731:9: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1731:9: danger: dereference of NULL ‘krc_file_get_group_node_with_name(self,  group_name, 1, & _inner_error0_)’
# 1729|   	}
# 1730|   	_tmp3_ = group_node;
# 1731|-> 	_tmp4_ = _tmp3_->data;
# 1732|   	_tmp5_ = (*((KRcFileGroup*) _tmp4_)).key_value_pairs;
# 1733|   	tmp = _tmp5_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
ibus-1.5.32/tools/krcfile.c:1798:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:1771:1: enter_function: entry to ‘krc_file_remove_group’
ibus-1.5.32/tools/krcfile.c:1782:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1783:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1783:9: branch_true: following ‘true’ branch (when ‘group_name’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1784:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1784:18: call_function: calling ‘krc_file_get_group_node_with_name’ from ‘krc_file_remove_group’
ibus-1.5.32/tools/krcfile.c:1784:18: return_function: returning to ‘krc_file_remove_group’ from ‘krc_file_get_group_node_with_name’
ibus-1.5.32/tools/krcfile.c:1786:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1798:9: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1798:9: danger: dereference of NULL ‘krc_file_get_group_node_with_name(self,  group_name, 1, & _inner_error0_)’
# 1796|   		}
# 1797|   	}
# 1798|-> 	_tmp3_ = group_node->data;
# 1799|   	_tmp4_ = (*((KRcFileGroup*) _tmp3_)).key_value_pairs;
# 1800|   	tmp = _tmp4_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
ibus-1.5.32/tools/krcfile.c:1857:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:1823:1: enter_function: entry to ‘krc_file_remove_key’
ibus-1.5.32/tools/krcfile.c:1839:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1840:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1840:9: branch_true: following ‘true’ branch (when ‘group_name’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1841:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1841:9: branch_true: following ‘true’ branch (when ‘key’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1842:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1842:18: call_function: calling ‘krc_file_get_group_node_with_name’ from ‘krc_file_remove_key’
ibus-1.5.32/tools/krcfile.c:1842:18: return_function: returning to ‘krc_file_remove_key’ from ‘krc_file_get_group_node_with_name’
ibus-1.5.32/tools/krcfile.c:1844:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1857:9: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1857:9: danger: dereference of NULL ‘krc_file_get_group_node_with_name(self,  group_name, 1, & _inner_error0_)’
# 1855|   	}
# 1856|   	_tmp3_ = group_node;
# 1857|-> 	_tmp4_ = _tmp3_->data;
# 1858|   	_tmp5_ = (*((KRcFileGroup*) _tmp4_)).key_value_pairs;
# 1859|   	tmp = _tmp5_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
ibus-1.5.32/tools/krcfile.c:1879:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:1823:1: enter_function: entry to ‘krc_file_remove_key’
ibus-1.5.32/tools/krcfile.c:1839:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1840:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1840:9: branch_true: following ‘true’ branch (when ‘group_name’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1841:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1841:9: branch_true: following ‘true’ branch (when ‘key’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1842:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1842:18: call_function: calling ‘krc_file_get_group_node_with_name’ from ‘krc_file_remove_key’
ibus-1.5.32/tools/krcfile.c:1842:18: return_function: returning to ‘krc_file_remove_key’ from ‘krc_file_get_group_node_with_name’
ibus-1.5.32/tools/krcfile.c:1844:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:1857:9: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1871:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1875:17: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1876:26: call_function: inlined call to ‘_krc_file_key_value_pair_dup0’ from ‘krc_file_remove_key’
ibus-1.5.32/tools/krcfile.c:1879:17: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1879:17: danger: dereference of NULL ‘<unknown>’
# 1877|   		pair = _tmp9_;
# 1878|   		_tmp10_ = pair;
# 1879|-> 		_tmp11_ = (*_tmp10_).key;
# 1880|   		if (g_strcmp0 (_tmp11_, key) == 0) {
# 1881|   			_krc_file_key_value_pair_free0 (pair);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
ibus-1.5.32/tools/krcfile.c:1964:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:1915:1: enter_function: entry to ‘krc_file_to_data’
ibus-1.5.32/tools/krcfile.c:1926:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1927:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:1947:36: branch_false: following ‘false’ branch (when ‘_tmp3_ != 0’)...
ibus-1.5.32/tools/krcfile.c:1956:36: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1956:36: branch_false: following ‘false’ branch (when ‘group_node’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:1960:33: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1961:42: call_function: inlined call to ‘_krc_file_group_dup0’ from ‘krc_file_to_data’
ibus-1.5.32/tools/krcfile.c:1964:33: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:1964:33: danger: dereference of NULL ‘<unknown>’
# 1962|   				group = _tmp9_;
# 1963|   				_tmp10_ = group;
# 1964|-> 				_tmp11_ = (*_tmp10_).name;
# 1965|   				if (_tmp11_ != NULL) {
# 1966|   					GString* _tmp12_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
ibus-1.5.32/tools/krcfile.c:2125:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:2095:1: enter_function: entry to ‘krc_file_get_value’
ibus-1.5.32/tools/krcfile.c:2109:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:2110:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:2110:9: branch_true: following ‘true’ branch (when ‘group_name’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:2111:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:2111:9: branch_true: following ‘true’ branch (when ‘key’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:2112:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:2112:18: call_function: calling ‘krc_file_get_group_node_with_name’ from ‘krc_file_get_value’
ibus-1.5.32/tools/krcfile.c:2112:18: return_function: returning to ‘krc_file_get_value’ from ‘krc_file_get_group_node_with_name’
ibus-1.5.32/tools/krcfile.c:2114:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:2125:9: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:2125:9: danger: dereference of NULL ‘krc_file_get_group_node_with_name(self,  group_name, 1, & _inner_error0_)’
# 2123|   	}
# 2124|   	_tmp1_ = group_node;
# 2125|-> 	_tmp2_ = _tmp1_->data;
# 2126|   	_tmp3_ = (*((KRcFileGroup*) _tmp2_)).key_value_pairs;
# 2127|   	tmp = _tmp3_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
ibus-1.5.32/tools/krcfile.c:2147:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/krcfile.c:2095:1: enter_function: entry to ‘krc_file_get_value’
ibus-1.5.32/tools/krcfile.c:2109:9: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:2110:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:2110:9: branch_true: following ‘true’ branch (when ‘group_name’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:2111:9: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:2111:9: branch_true: following ‘true’ branch (when ‘key’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:2112:18: branch_true: ...to here
ibus-1.5.32/tools/krcfile.c:2112:18: call_function: calling ‘krc_file_get_group_node_with_name’ from ‘krc_file_get_value’
ibus-1.5.32/tools/krcfile.c:2112:18: return_function: returning to ‘krc_file_get_value’ from ‘krc_file_get_group_node_with_name’
ibus-1.5.32/tools/krcfile.c:2114:13: branch_false: following ‘false’ branch...
ibus-1.5.32/tools/krcfile.c:2125:9: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:2139:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
ibus-1.5.32/tools/krcfile.c:2143:17: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:2144:26: call_function: inlined call to ‘_krc_file_key_value_pair_dup0’ from ‘krc_file_get_value’
ibus-1.5.32/tools/krcfile.c:2147:17: branch_false: ...to here
ibus-1.5.32/tools/krcfile.c:2147:17: danger: dereference of NULL ‘<unknown>’
# 2145|   		pair = _tmp7_;
# 2146|   		_tmp8_ = pair;
# 2147|-> 		_tmp9_ = (*_tmp8_).key;
# 2148|   		if (g_strcmp0 (_tmp9_, key) == 0) {
# 2149|   			KRcFileKeyValuePair* _tmp10_;

Error: COMPILER_WARNING (CWE-704): [#def82]
ibus-1.5.32/tools/krcfile.c:2497:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2495|   {
# 2496|   	static volatile gsize krc_file_type_id__once = 0;
# 2497|-> 	if (g_once_init_enter (&krc_file_type_id__once)) {
# 2498|   		GType krc_file_type_id;
# 2499|   		krc_file_type_id = krc_file_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def83]
ibus-1.5.32/tools/main.c:679:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  677|   {
#  678|   	static volatile gsize engine_list_type_id__once = 0;
#  679|-> 	if (g_once_init_enter (&engine_list_type_id__once)) {
#  680|   		GType engine_list_type_id;
#  681|   		engine_list_type_id = engine_list_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
ibus-1.5.32/tools/main.c:2354:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/main.c:4895:1: enter_function: entry to ‘_list_engine_entry_func’
ibus-1.5.32/tools/main.c:4900:18: call_function: calling ‘list_engine’ from ‘_list_engine_entry_func’
# 2352|   				_g_free0 (_tmp47_);
# 2353|   				_tmp48_ = list;
# 2354|-> 				_tmp49_ = _tmp48_->data;
# 2355|   				_tmp49__length1 = _tmp48_->data_length1;
# 2356|   				{

Error: COMPILER_WARNING (CWE-704): [#def85]
ibus-1.5.32/tools/main.c:4866:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 4864|   {
# 4865|   	static volatile gsize command_entry_type_id__once = 0;
# 4866|-> 	if (g_once_init_enter (&command_entry_type_id__once)) {
# 4867|   		GType command_entry_type_id;
# 4868|   		command_entry_type_id = command_entry_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
ibus-1.5.32/tools/main.c:5128:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/tools/main.c:5081:1: enter_function: entry to ‘_vala_main’
ibus-1.5.32/tools/main.c:5111:12: branch_false: following ‘false’ branch (when ‘argv_length1 > 1’)...
ibus-1.5.32/tools/main.c:5118:63: branch_false: ...to here
ibus-1.5.32/tools/main.c:5118:35: call_function: calling ‘_vala_array_dup1’ from ‘_vala_main’
ibus-1.5.32/tools/main.c:5118:35: return_function: returning to ‘_vala_main’ from ‘_vala_array_dup1’
ibus-1.5.32/tools/main.c:5128:9: danger: dereference of NULL ‘_vala_array_dup1(argv + 8, (long int)(argv_length1 + -1))’
# 5126|   	_tmp6_ = new_argv;
# 5127|   	_tmp6__length1 = new_argv_length1;
# 5128|-> 	_tmp7_ = _tmp6_[0];
# 5129|   	_tmp8_ = g_strdup_printf ("%s %s", _tmp5_, _tmp7_);
# 5130|   	_g_free0 (_tmp4_[0]);

Error: COMPILER_WARNING: [#def87]
ibus-1.5.32/ui/gtk3/application.c:47:9: warning: ‘G_USEC_PER_SEC’ redefined
#   47 | #define G_USEC_PER_SEC ((gulong) 1000000L)
#      |         ^~~~~~~~~~~~~~
/usr/include/glib-2.0/glib.h:92: included_from: Included from here.
ibus-1.5.32/ui/gtk3/application.c:29: included_from: Included from here.
/usr/include/glib-2.0/glib/gtimer.h:44:9: note: this is the location of the previous definition
#   44 | #define G_USEC_PER_SEC 1000000
#      |         ^~~~~~~~~~~~~~
#   45|   
#   46|   #define IBUS_WAYLAND_VERSION "1.1"
#   47|-> #define G_USEC_PER_SEC ((gulong) 1000000L)
#   48|   #define SLEEP_DIV_PER_SEC ((gulong) 100L)
#   49|   #define MAX_DISPLAY_IDLE_TIME (((G_USEC_PER_SEC * SLEEP_DIV_PER_SEC) * 60) * 3)

Error: COMPILER_WARNING: [#def88]
ibus-1.5.32/ui/gtk3/application.c:47:9: warning[warning]: ‘G_USEC_PER_SEC’ redefined
#   45|   
#   46|   #define IBUS_WAYLAND_VERSION "1.1"
#   47|-> #define G_USEC_PER_SEC ((gulong) 1000000L)
#   48|   #define SLEEP_DIV_PER_SEC ((gulong) 100L)
#   49|   #define MAX_DISPLAY_IDLE_TIME (((G_USEC_PER_SEC * SLEEP_DIV_PER_SEC) * 60) * 3)

Error: COMPILER_WARNING (CWE-704): [#def89]
ibus-1.5.32/ui/gtk3/application.c:2340:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2338|   {
# 2339|   	static volatile gsize application_type_id__once = 0;
# 2340|-> 	if (g_once_init_enter (&application_type_id__once)) {
# 2341|   		GType application_type_id;
# 2342|   		application_type_id = application_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def90]
ibus-1.5.32/ui/gtk3/bindingcommon.c:247:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  245|   {
#  246|   	static volatile gsize binding_common_key_event_func_type_type_id__once = 0;
#  247|-> 	if (g_once_init_enter (&binding_common_key_event_func_type_type_id__once)) {
#  248|   		GType binding_common_key_event_func_type_type_id;
#  249|   		binding_common_key_event_func_type_type_id = binding_common_key_event_func_type_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def91]
ibus-1.5.32/ui/gtk3/bindingcommon.c:1405:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1403|   {
# 1404|   	static volatile gsize binding_common_keybinding_type_id__once = 0;
# 1405|-> 	if (g_once_init_enter (&binding_common_keybinding_type_id__once)) {
# 1406|   		GType binding_common_keybinding_type_id;
# 1407|   		binding_common_keybinding_type_id = binding_common_keybinding_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def92]
ibus-1.5.32/ui/gtk3/bindingcommon.c:1750:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1748|   {
# 1749|   	static volatile gsize binding_common_type_id__once = 0;
# 1750|-> 	if (g_once_init_enter (&binding_common_type_id__once)) {
# 1751|   		GType binding_common_type_id;
# 1752|   		binding_common_type_id = binding_common_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def93]
ibus-1.5.32/ui/gtk3/candidatearea.c:2381:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2379|   {
# 2380|   	static volatile gsize candidate_area_type_id__once = 0;
# 2381|-> 	if (g_once_init_enter (&candidate_area_type_id__once)) {
# 2382|   		GType candidate_area_type_id;
# 2383|   		candidate_area_type_id = candidate_area_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
ibus-1.5.32/ui/gtk3/candidatearea.vala:124:6: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘candidates’
ibus-1.5.32/ui/gtk3/candidatearea.c:630:1: enter_function: entry to ‘candidate_area_set_candidates’
ibus-1.5.32/ui/gtk3/candidatearea.vala:112:2: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/ui/gtk3/candidatearea.vala:115:11: branch_true: ...to here
ibus-1.5.32/ui/gtk3/candidatearea.vala:115:11: branch_false: following ‘false’ branch (when ‘candidates’ is NULL)...
ibus-1.5.32/ui/gtk3/candidatearea.vala:115:84: branch_false: ...to here
ibus-1.5.32/ui/gtk3/candidatearea.vala:119:2: branch_true: following ‘true’ branch (when ‘candidates_length1 <= 16’)...
 branch_true: ...to here
ibus-1.5.32/ui/gtk3/candidatearea.vala:120:8: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/candidatearea.vala:121:14: call_function: inlined call to ‘_g_object_ref0’ from ‘candidate_area_set_candidates’
ibus-1.5.32/ui/gtk3/candidatearea.vala:123:8: branch_false: ...to here
ibus-1.5.32/ui/gtk3/candidatearea.vala:123:8: branch_true: following ‘true’ branch (when ‘i < candidates_length1’)...
ibus-1.5.32/ui/gtk3/candidatearea.vala:124:25: branch_true: ...to here
ibus-1.5.32/ui/gtk3/candidatearea.vala:124:6: danger: dereference of NULL ‘candidates + (long unsigned int)i * 8’
#  122|               bool visible = false;
#  123|               if (i < candidates.length) {
#  124|->                 Pango.AttrList attrs = get_pango_attr_list_from_ibus_text(candidates[i]);
#  125|                   attrs.change(m_language_attribute.copy());
#  126|                   if (i == focus_candidate && show_cursor) {

Error: COMPILER_WARNING (CWE-704): [#def95]
ibus-1.5.32/ui/gtk3/candidatepanel.c:3017:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 3015|   {
# 3016|   	static volatile gsize candidate_panel_type_id__once = 0;
# 3017|-> 	if (g_once_init_enter (&candidate_panel_type_id__once)) {
# 3018|   		GType candidate_panel_type_id;
# 3019|   		candidate_panel_type_id = candidate_panel_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def96]
ibus-1.5.32/ui/gtk3/candidatepanel.vala:231:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/candidatepanel.c:1151:1: enter_function: entry to ‘candidate_panel_set_preedit_text_real’
ibus-1.5.32/ui/gtk3/candidatepanel.vala:227:2: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/ui/gtk3/candidatepanel.vala:228:5: branch_true: ...to here
ibus-1.5.32/ui/gtk3/candidatepanel.vala:228:5: branch_true: following ‘true’ branch (when ‘text’ is non-NULL)...
ibus-1.5.32/ui/gtk3/candidatepanel.vala:229:12: branch_true: ...to here
ibus-1.5.32/ui/gtk3/candidatepanel.vala:231:12: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  229|               var str = text.get_text();
#  230|   
#  231|->             if (str.length > 0) {
#  232|                   m_preedit_label.set_text(str);
#  233|                   m_preedit_label.show();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
ibus-1.5.32/ui/gtk3/candidatepanel.vala:632:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/ui/gtk3/candidatepanel.c:2819:1: enter_function: entry to ‘candidate_panel_realize_window’
ibus-1.5.32/ui/gtk3/candidatepanel.vala:622:2: branch_true: following ‘true’ branch (when ‘self’ is non-NULL)...
ibus-1.5.32/ui/gtk3/candidatepanel.vala:625:6: branch_true: ...to here
ibus-1.5.32/ui/gtk3/candidatepanel.vala:625:5: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/candidatepanel.vala:627:2: branch_false: ...to here
ibus-1.5.32/ui/gtk3/candidatepanel.vala:627:11: call_function: inlined call to ‘_g_object_ref0’ from ‘candidate_panel_realize_window’
ibus-1.5.32/ui/gtk3/candidatepanel.vala:628:7: branch_false: ...to here
ibus-1.5.32/ui/gtk3/candidatepanel.vala:628:5: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/candidatepanel.vala:632:18: branch_false: ...to here
ibus-1.5.32/ui/gtk3/candidatepanel.vala:632:18: danger: dereference of NULL ‘<unknown>’
#  630|               return;
#  631|           }
#  632|->         Type instance_type = window.get_type();
#  633|           Type wayland_type = typeof(GdkWayland.Window);
#  634|           if (!instance_type.is_a(wayland_type)) {

Error: COMPILER_WARNING (CWE-704): [#def98]
ibus-1.5.32/ui/gtk3/emojier.c:953:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  951|   {
#  952|   	static volatile gsize ibus_emojier_travel_direction_type_id__once = 0;
#  953|-> 	if (g_once_init_enter (&ibus_emojier_travel_direction_type_id__once)) {
#  954|   		GType ibus_emojier_travel_direction_type_id;
#  955|   		ibus_emojier_travel_direction_type_id = ibus_emojier_travel_direction_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def99]
ibus-1.5.32/ui/gtk3/emojier.c:12910:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#12908|   {
#12909|   	static volatile gsize ibus_emojier_elist_box_type_id__once = 0;
#12910|-> 	if (g_once_init_enter (&ibus_emojier_elist_box_type_id__once)) {
#12911|   		GType ibus_emojier_elist_box_type_id;
#12912|   		ibus_emojier_elist_box_type_id = ibus_emojier_elist_box_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def100]
ibus-1.5.32/ui/gtk3/emojier.c:13044:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#13042|   {
#13043|   	static volatile gsize ibus_emojier_ebox_row_type_id__once = 0;
#13044|-> 	if (g_once_init_enter (&ibus_emojier_ebox_row_type_id__once)) {
#13045|   		GType ibus_emojier_ebox_row_type_id;
#13046|   		ibus_emojier_ebox_row_type_id = ibus_emojier_ebox_row_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def101]
ibus-1.5.32/ui/gtk3/emojier.c:13166:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#13164|   {
#13165|   	static volatile gsize ibus_emojier_escrolled_window_type_id__once = 0;
#13166|-> 	if (g_once_init_enter (&ibus_emojier_escrolled_window_type_id__once)) {
#13167|   		GType ibus_emojier_escrolled_window_type_id;
#13168|   		ibus_emojier_escrolled_window_type_id = ibus_emojier_escrolled_window_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def102]
ibus-1.5.32/ui/gtk3/emojier.c:13221:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#13219|   {
#13220|   	static volatile gsize ibus_emojier_egrid_type_id__once = 0;
#13221|-> 	if (g_once_init_enter (&ibus_emojier_egrid_type_id__once)) {
#13222|   		GType ibus_emojier_egrid_type_id;
#13223|   		ibus_emojier_egrid_type_id = ibus_emojier_egrid_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def103]
ibus-1.5.32/ui/gtk3/emojier.c:13700:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#13698|   {
#13699|   	static volatile gsize ibus_emojier_ewhite_label_type_id__once = 0;
#13700|-> 	if (g_once_init_enter (&ibus_emojier_ewhite_label_type_id__once)) {
#13701|   		GType ibus_emojier_ewhite_label_type_id;
#13702|   		ibus_emojier_ewhite_label_type_id = ibus_emojier_ewhite_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def104]
ibus-1.5.32/ui/gtk3/emojier.c:13764:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#13762|   {
#13763|   	static volatile gsize ibus_emojier_eselected_label_type_id__once = 0;
#13764|-> 	if (g_once_init_enter (&ibus_emojier_eselected_label_type_id__once)) {
#13765|   		GType ibus_emojier_eselected_label_type_id;
#13766|   		ibus_emojier_eselected_label_type_id = ibus_emojier_eselected_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def105]
ibus-1.5.32/ui/gtk3/emojier.c:13828:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#13826|   {
#13827|   	static volatile gsize ibus_emojier_egold_label_type_id__once = 0;
#13828|-> 	if (g_once_init_enter (&ibus_emojier_egold_label_type_id__once)) {
#13829|   		GType ibus_emojier_egold_label_type_id;
#13830|   		ibus_emojier_egold_label_type_id = ibus_emojier_egold_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def106]
ibus-1.5.32/ui/gtk3/emojier.c:13890:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#13888|   {
#13889|   	static volatile gsize ibus_emojier_epadded_label_type_id__once = 0;
#13890|-> 	if (g_once_init_enter (&ibus_emojier_epadded_label_type_id__once)) {
#13891|   		GType ibus_emojier_epadded_label_type_id;
#13892|   		ibus_emojier_epadded_label_type_id = ibus_emojier_epadded_label_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def107]
ibus-1.5.32/ui/gtk3/emojier.c:14027:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#14025|   {
#14026|   	static volatile gsize ibus_emojier_epadded_label_box_type_id__once = 0;
#14027|-> 	if (g_once_init_enter (&ibus_emojier_epadded_label_box_type_id__once)) {
#14028|   		GType ibus_emojier_epadded_label_box_type_id;
#14029|   		ibus_emojier_epadded_label_box_type_id = ibus_emojier_epadded_label_box_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def108]
ibus-1.5.32/ui/gtk3/emojier.c:14121:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#14119|   {
#14120|   	static volatile gsize ibus_emojier_load_progress_object_type_id__once = 0;
#14121|-> 	if (g_once_init_enter (&ibus_emojier_load_progress_object_type_id__once)) {
#14122|   		GType ibus_emojier_load_progress_object_type_id;
#14123|   		ibus_emojier_load_progress_object_type_id = ibus_emojier_load_progress_object_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def109]
ibus-1.5.32/ui/gtk3/emojier.c:14253:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#14251|   {
#14252|   	static volatile gsize ibus_emojier_type_id__once = 0;
#14253|-> 	if (g_once_init_enter (&ibus_emojier_type_id__once)) {
#14254|   		GType ibus_emojier_type_id;
#14255|   		ibus_emojier_type_id = ibus_emojier_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def110]
ibus-1.5.32/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_ebox_row_set_text’
ibus-1.5.32/ui/gtk3/emojier.vala:57:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   57 |         public string text { get; set; }
#      |            ^
#   55|           }
#   56|   
#   57|->         public string text { get; set; }
#   58|       }
#   59|       private class EScrolledWindow : Gtk.ScrolledWindow {

Error: COMPILER_WARNING (CWE-704): [#def111]
ibus-1.5.32/ui/gtk3/emojier.vala:57:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   55|           }
#   56|   
#   57|->         public string text { get; set; }
#   58|       }
#   59|       private class EScrolledWindow : Gtk.ScrolledWindow {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def112]
ibus-1.5.32/ui/gtk3/emojier.vala:109:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/emojier.c:13260:1: enter_function: entry to ‘ibus_emojier_ewhite_label_real_get_preferred_width’
ibus-1.5.32/ui/gtk3/emojier.vala:108:7: call_function: calling ‘string_get_char’ from ‘ibus_emojier_ewhite_label_real_get_preferred_width’
ibus-1.5.32/ui/gtk3/emojier.vala:108:7: return_function: returning to ‘ibus_emojier_ewhite_label_real_get_preferred_width’ from ‘string_get_char’
ibus-1.5.32/ui/gtk3/emojier.vala:109:11: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  107|               var text = get_label();
#  108|               var ch = text.get_char();
#  109|->             if (text.length == 1 && ch == '\t') {
#  110|                   m_minimum_width = minimum_width = m_minimum_height;
#  111|                   m_natural_width = natural_width = m_natural_height;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def113]
ibus-1.5.32/ui/gtk3/emojier.vala:137:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/emojier.c:13457:1: enter_function: entry to ‘ibus_emojier_ewhite_label_real_get_preferred_height’
ibus-1.5.32/ui/gtk3/emojier.vala:136:7: call_function: calling ‘string_get_char’ from ‘ibus_emojier_ewhite_label_real_get_preferred_height’
ibus-1.5.32/ui/gtk3/emojier.vala:136:7: return_function: returning to ‘ibus_emojier_ewhite_label_real_get_preferred_height’ from ‘string_get_char’
ibus-1.5.32/ui/gtk3/emojier.vala:137:11: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  135|               var text = get_label();
#  136|               var ch = text.get_char();
#  137|->             if (text.length == 1 && ch == '\v') {
#  138|                   m_minimum_height = minimum_height = m_minimum_width;
#  139|                   m_natural_height = natural_height = m_natural_width;

Error: COMPILER_WARNING (CWE-704): [#def114]
ibus-1.5.32/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_update_category_to_emojis_dict’
ibus-1.5.32/ui/gtk3/emojier.vala:644:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  644 |                 foreach (unichar ch in EMOJI_VARIANT_LIST) {
#      |                   ^
#  642|               bool has_variant = false;
#  643|               if (category.ascii_casecmp("component") != 0) {
#  644|->                 foreach (unichar ch in EMOJI_VARIANT_LIST) {
#  645|                       if (emoji.index_of_char(ch) >= 0) {
#  646|                           has_variant = true;

Error: COMPILER_WARNING (CWE-704): [#def115]
ibus-1.5.32/ui/gtk3/emojier.vala:644:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  642|               bool has_variant = false;
#  643|               if (category.ascii_casecmp("component") != 0) {
#  644|->                 foreach (unichar ch in EMOJI_VARIANT_LIST) {
#  645|                       if (emoji.index_of_char(ch) >= 0) {
#  646|                           has_variant = true;

Error: COMPILER_WARNING (CWE-704): [#def116]
ibus-1.5.32/ui/gtk3/emojierapp.c:1290:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1288|   {
# 1289|   	static volatile gsize emoji_application_type_id__once = 0;
# 1290|-> 	if (g_once_init_enter (&emoji_application_type_id__once)) {
# 1291|   		GType emoji_application_type_id;
# 1292|   		emoji_application_type_id = emoji_application_get_type_once ();

Error: COMPILER_WARNING (CWE-843): [#def117]
ibus-1.5.32/ui/gtk3/emojierapp.vala: scope_hint: In function ‘emoji_application_save_selected_string’
ibus-1.5.32/ui/gtk3/emojierapp.vala:65:46: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
#   65 |             m_settings_emoji.set_strv("favorites", emojier_favorites);
#      |                                              ^~~~~~~
#      |                                              |
#      |                                              gchar ** {aka char **}
/usr/include/glib-2.0/gio/gio.h:137: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
ibus-1.5.32/ui/gtk3/emojierapp.c:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  191 |                                                                          const gchar *const *value);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
#   63|           if (!has_favorite) {
#   64|               emojier_favorites += selected_string;
#   65|->             m_settings_emoji.set_strv("favorites", emojier_favorites);
#   66|           }
#   67|           m_command_line.print("%s\n", _("Copied an emoji to your clipboard."));

Error: COMPILER_WARNING (CWE-843): [#def118]
ibus-1.5.32/ui/gtk3/emojierapp.vala:65:46: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
#   63|           if (!has_favorite) {
#   64|               emojier_favorites += selected_string;
#   65|->             m_settings_emoji.set_strv("favorites", emojier_favorites);
#   66|           }
#   67|           m_command_line.print("%s\n", _("Copied an emoji to your clipboard."));

Error: COMPILER_WARNING (CWE-843): [#def119]
ibus-1.5.32/ui/gtk3/emojierapp.vala: scope_hint: In function ‘_emoji_application_command_line’
ibus-1.5.32/ui/gtk3/emojierapp.vala:155:8: warning[-Wincompatible-pointer-types]: assignment to ‘const gchar **’ {aka ‘const char **’} from incompatible pointer type ‘gchar **’ {aka ‘char **’}
#  155 |         string*[] _args = new string[args.length];
#      |        ^
#  153|           // from the array without freeing them.
#  154|           string[] args = command_line.get_arguments();
#  155|->         string*[] _args = new string[args.length];
#  156|           for (int i = 0; i < args.length; i++) {
#  157|               _args[i] = args[i];

Error: COMPILER_WARNING (CWE-843): [#def120]
ibus-1.5.32/ui/gtk3/emojierapp.vala:155:8: warning[-Wincompatible-pointer-types]: assignment to ‘const gchar **’ {{aka ‘const char **’}} from incompatible pointer type ‘gchar **’ {{aka ‘char **’}}
#  153|           // from the array without freeing them.
#  154|           string[] args = command_line.get_arguments();
#  155|->         string*[] _args = new string[args.length];
#  156|           for (int i = 0; i < args.length; i++) {
#  157|               _args[i] = args[i];

Error: COMPILER_WARNING (CWE-843): [#def121]
ibus-1.5.32/ui/gtk3/emojierapp.vala:165:7: warning[-Wincompatible-pointer-types]: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘const gchar **’ {aka ‘const char **’}
#  165 |             unowned string[] tmp = _args;
#      |       ^
#  163|   
#  164|           try {
#  165|->             unowned string[] tmp = _args;
#  166|               option.parse(ref tmp);
#  167|           } catch (OptionError e) {

Error: COMPILER_WARNING (CWE-843): [#def122]
ibus-1.5.32/ui/gtk3/emojierapp.vala:165:7: warning[-Wincompatible-pointer-types]: assignment to ‘gchar **’ {{aka ‘char **’}} from incompatible pointer type ‘const gchar **’ {{aka ‘const char **’}}
#  163|   
#  164|           try {
#  165|->             unowned string[] tmp = _args;
#  166|               option.parse(ref tmp);
#  167|           } catch (OptionError e) {

Error: COMPILER_WARNING (CWE-704): [#def123]
ibus-1.5.32/ui/gtk3/extension.c:519:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  517|   {
#  518|   	static volatile gsize extension_gtk_type_id__once = 0;
#  519|-> 	if (g_once_init_enter (&extension_gtk_type_id__once)) {
#  520|   		GType extension_gtk_type_id;
#  521|   		extension_gtk_type_id = extension_gtk_get_type_once ();

Error: COMPILER_WARNING (CWE-477): [#def124]
ibus-1.5.32/ui/gtk3/extension.vala: scope_hint: In function ‘extension_gtk_construct’
ibus-1.5.32/ui/gtk3/extension.vala:29:2: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead
#   29 |         Object(application_id: "org.freedesktop.IBus.Panel.Extension.Gtk3",
#      |  ^   
/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.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
ibus-1.5.32/ui/gtk3/extension.c:27: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:1556:3: note: declared here
# 1556 |   G_APPLICATION_FLAGS_NONE GIO_DEPRECATED_ENUMERATOR_IN_2_74_FOR(G_APPLICATION_DEFAULT_FLAGS),
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
#   27|   
#   28|       public ExtensionGtk(string[] args) {
#   29|->         Object(application_id: "org.freedesktop.IBus.Panel.Extension.Gtk3",
#   30|                  flags: ApplicationFlags.FLAGS_NONE);
#   31|           GLib.Intl.bindtextdomain(Config.GETTEXT_PACKAGE, Config.LOCALEDIR);

Error: COMPILER_WARNING (CWE-477): [#def125]
ibus-1.5.32/ui/gtk3/extension.vala:29:2: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead
#   27|   
#   28|       public ExtensionGtk(string[] args) {
#   29|->         Object(application_id: "org.freedesktop.IBus.Panel.Extension.Gtk3",
#   30|                  flags: ApplicationFlags.FLAGS_NONE);
#   31|           GLib.Intl.bindtextdomain(Config.GETTEXT_PACKAGE, Config.LOCALEDIR);

Error: COMPILER_WARNING (CWE-704): [#def126]
ibus-1.5.32/ui/gtk3/glib-2.0.vapi:5239:10: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘func’ discards ‘const’ qualifier from pointer target type

Error: COMPILER_WARNING (CWE-704): [#def127]
ibus-1.5.32/ui/gtk3/handle.c:1102:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1100|   {
# 1101|   	static volatile gsize handle_type_id__once = 0;
# 1102|-> 	if (g_once_init_enter (&handle_type_id__once)) {
# 1103|   		GType handle_type_id;
# 1104|   		handle_type_id = handle_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def128]
ibus-1.5.32/ui/gtk3/iconwidget.c:886:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  884|   {
#  885|   	static volatile gsize themed_rgba_type_id__once = 0;
#  886|-> 	if (g_once_init_enter (&themed_rgba_type_id__once)) {
#  887|   		GType themed_rgba_type_id;
#  888|   		themed_rgba_type_id = themed_rgba_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def129]
ibus-1.5.32/ui/gtk3/iconwidget.c:1237:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1235|   {
# 1236|   	static volatile gsize icon_widget_type_id__once = 0;
# 1237|-> 	if (g_once_init_enter (&icon_widget_type_id__once)) {
# 1238|   		GType icon_widget_type_id;
# 1239|   		icon_widget_type_id = icon_widget_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def130]
ibus-1.5.32/ui/gtk3/indicator.c:485:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  483|   {
#  484|   	static volatile gsize indicator_category_type_id__once = 0;
#  485|-> 	if (g_once_init_enter (&indicator_category_type_id__once)) {
#  486|   		GType indicator_category_type_id;
#  487|   		indicator_category_type_id = indicator_category_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def131]
ibus-1.5.32/ui/gtk3/indicator.c:560:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  558|   {
#  559|   	static volatile gsize indicator_status_type_id__once = 0;
#  560|-> 	if (g_once_init_enter (&indicator_status_type_id__once)) {
#  561|   		GType indicator_status_type_id;
#  562|   		indicator_status_type_id = indicator_status_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def132]
ibus-1.5.32/ui/gtk3/indicator.c:3908:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 3906|   {
# 3907|   	static volatile gsize indicator_type_id__once = 0;
# 3908|-> 	if (g_once_init_enter (&indicator_type_id__once)) {
# 3909|   		GType indicator_type_id;
# 3910|   		indicator_type_id = indicator_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def133]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_id’
ibus-1.5.32/ui/gtk3/indicator.vala:36:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   36 |     public string id { get; construct; }
#      |            ^
#   34|   class Indicator : IBus.Service
#   35|   {
#   36|->     public string id { get; construct; }
#   37|       public string category_s { get; construct; }
#   38|       public string status_s { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def134]
ibus-1.5.32/ui/gtk3/indicator.vala:36:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   34|   class Indicator : IBus.Service
#   35|   {
#   36|->     public string id { get; construct; }
#   37|       public string category_s { get; construct; }
#   38|       public string status_s { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def135]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_category_s’
ibus-1.5.32/ui/gtk3/indicator.vala:37:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   37 |     public string category_s { get; construct; }
#      |            ^
#   35|   {
#   36|       public string id { get; construct; }
#   37|->     public string category_s { get; construct; }
#   38|       public string status_s { get; set; }
#   39|       public string icon_name { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def136]
ibus-1.5.32/ui/gtk3/indicator.vala:37:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   35|   {
#   36|       public string id { get; construct; }
#   37|->     public string category_s { get; construct; }
#   38|       public string status_s { get; set; }
#   39|       public string icon_name { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def137]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_status_s’
ibus-1.5.32/ui/gtk3/indicator.vala:38:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   38 |     public string status_s { get; set; }
#      |            ^
#   36|       public string id { get; construct; }
#   37|       public string category_s { get; construct; }
#   38|->     public string status_s { get; set; }
#   39|       public string icon_name { get; set; }
#   40|       public string icon_desc { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def138]
ibus-1.5.32/ui/gtk3/indicator.vala:38:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   36|       public string id { get; construct; }
#   37|       public string category_s { get; construct; }
#   38|->     public string status_s { get; set; }
#   39|       public string icon_name { get; set; }
#   40|       public string icon_desc { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def139]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_icon_name’
ibus-1.5.32/ui/gtk3/indicator.vala:39:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   39 |     public string icon_name { get; set; }
#      |            ^
#   37|       public string category_s { get; construct; }
#   38|       public string status_s { get; set; }
#   39|->     public string icon_name { get; set; }
#   40|       public string icon_desc { get; set; }
#   41|       public string attention_icon_name { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def140]
ibus-1.5.32/ui/gtk3/indicator.vala:39:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   37|       public string category_s { get; construct; }
#   38|       public string status_s { get; set; }
#   39|->     public string icon_name { get; set; }
#   40|       public string icon_desc { get; set; }
#   41|       public string attention_icon_name { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def141]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_icon_desc’
ibus-1.5.32/ui/gtk3/indicator.vala:40:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   40 |     public string icon_desc { get; set; }
#      |            ^
#   38|       public string status_s { get; set; }
#   39|       public string icon_name { get; set; }
#   40|->     public string icon_desc { get; set; }
#   41|       public string attention_icon_name { get; set; }
#   42|       public string attention_icon_desc { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def142]
ibus-1.5.32/ui/gtk3/indicator.vala:40:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   38|       public string status_s { get; set; }
#   39|       public string icon_name { get; set; }
#   40|->     public string icon_desc { get; set; }
#   41|       public string attention_icon_name { get; set; }
#   42|       public string attention_icon_desc { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def143]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_attention_icon_name’
ibus-1.5.32/ui/gtk3/indicator.vala:41:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   41 |     public string attention_icon_name { get; set; }
#      |            ^
#   39|       public string icon_name { get; set; }
#   40|       public string icon_desc { get; set; }
#   41|->     public string attention_icon_name { get; set; }
#   42|       public string attention_icon_desc { get; set; }
#   43|       public string title { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def144]
ibus-1.5.32/ui/gtk3/indicator.vala:41:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   39|       public string icon_name { get; set; }
#   40|       public string icon_desc { get; set; }
#   41|->     public string attention_icon_name { get; set; }
#   42|       public string attention_icon_desc { get; set; }
#   43|       public string title { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def145]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_attention_icon_desc’
ibus-1.5.32/ui/gtk3/indicator.vala:42:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   42 |     public string attention_icon_desc { get; set; }
#      |            ^
#   40|       public string icon_desc { get; set; }
#   41|       public string attention_icon_name { get; set; }
#   42|->     public string attention_icon_desc { get; set; }
#   43|       public string title { get; set; }
#   44|       public string icon_theme_path { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def146]
ibus-1.5.32/ui/gtk3/indicator.vala:42:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   40|       public string icon_desc { get; set; }
#   41|       public string attention_icon_name { get; set; }
#   42|->     public string attention_icon_desc { get; set; }
#   43|       public string title { get; set; }
#   44|       public string icon_theme_path { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def147]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_title’
ibus-1.5.32/ui/gtk3/indicator.vala:43:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   43 |     public string title { get; set; }
#      |            ^
#   41|       public string attention_icon_name { get; set; }
#   42|       public string attention_icon_desc { get; set; }
#   43|->     public string title { get; set; }
#   44|       public string icon_theme_path { get; set; }
#   45|       public bool   connected { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def148]
ibus-1.5.32/ui/gtk3/indicator.vala:43:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   41|       public string attention_icon_name { get; set; }
#   42|       public string attention_icon_desc { get; set; }
#   43|->     public string title { get; set; }
#   44|       public string icon_theme_path { get; set; }
#   45|       public bool   connected { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def149]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_icon_theme_path’
ibus-1.5.32/ui/gtk3/indicator.vala:44:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   44 |     public string icon_theme_path { get; set; }
#      |            ^
#   42|       public string attention_icon_desc { get; set; }
#   43|       public string title { get; set; }
#   44|->     public string icon_theme_path { get; set; }
#   45|       public bool   connected { get; set; }
#   46|       public string label_s { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def150]
ibus-1.5.32/ui/gtk3/indicator.vala:44:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   42|       public string attention_icon_desc { get; set; }
#   43|       public string title { get; set; }
#   44|->     public string icon_theme_path { get; set; }
#   45|       public bool   connected { get; set; }
#   46|       public string label_s { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def151]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_label_s’
ibus-1.5.32/ui/gtk3/indicator.vala:46:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   46 |     public string label_s { get; set; }
#      |            ^
#   44|       public string icon_theme_path { get; set; }
#   45|       public bool   connected { get; set; }
#   46|->     public string label_s { get; set; }
#   47|       public string label_guide_s { get; set; }
#   48|       public uint32 ordering_index { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def152]
ibus-1.5.32/ui/gtk3/indicator.vala:46:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   44|       public string icon_theme_path { get; set; }
#   45|       public bool   connected { get; set; }
#   46|->     public string label_s { get; set; }
#   47|       public string label_guide_s { get; set; }
#   48|       public uint32 ordering_index { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def153]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_label_guide_s’
ibus-1.5.32/ui/gtk3/indicator.vala:47:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   47 |     public string label_guide_s { get; set; }
#      |            ^
#   45|       public bool   connected { get; set; }
#   46|       public string label_s { get; set; }
#   47|->     public string label_guide_s { get; set; }
#   48|       public uint32 ordering_index { get; set; }
#   49|       public GLib.Variant icon_vector { get; set; }

Error: COMPILER_WARNING (CWE-704): [#def154]
ibus-1.5.32/ui/gtk3/indicator.vala:47:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   45|       public bool   connected { get; set; }
#   46|       public string label_s { get; set; }
#   47|->     public string label_guide_s { get; set; }
#   48|       public uint32 ordering_index { get; set; }
#   49|       public GLib.Variant icon_vector { get; set; }

Error: COMPILER_WARNING (CWE-697): [#def155]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_construct’
ibus-1.5.32/ui/gtk3/indicator.vala:142:202: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘_indicator_name_appeared_handler_gbus_name_appeared_callback’ will never be NULL
#  142 |         GLib.Bus.watch_name (GLib.BusType.SESSION,
#      |                                                                                                                                                                                                          ^ 
ibus-1.5.32/ui/gtk3/indicator.c:594:1: note: ‘_indicator_name_appeared_handler_gbus_name_appeared_callback’ declared here
#  594 | _indicator_name_appeared_handler_gbus_name_appeared_callback (GDBusConnection* connection,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  140|                   m_watcher_node_info.lookup_interface(
#  141|                           NOTIFICATION_WATCHER_DBUS_IFACE);
#  142|->         GLib.Bus.watch_name (GLib.BusType.SESSION,
#  143|                                NOTIFICATION_WATCHER_DBUS_ADDR,
#  144|                                GLib.BusNameWatcherFlags.NONE,

Error: COMPILER_WARNING (CWE-697): [#def156]
ibus-1.5.32/ui/gtk3/indicator.vala:142:441: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘_indicator_name_vanished_handler_gbus_name_vanished_callback’ will never be NULL
#  142 |         GLib.Bus.watch_name (GLib.BusType.SESSION,
#      |                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^ 
ibus-1.5.32/ui/gtk3/indicator.c:605:1: note: ‘_indicator_name_vanished_handler_gbus_name_vanished_callback’ declared here
#  605 | _indicator_name_vanished_handler_gbus_name_vanished_callback (GDBusConnection* connection,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  140|                   m_watcher_node_info.lookup_interface(
#  141|                           NOTIFICATION_WATCHER_DBUS_IFACE);
#  142|->         GLib.Bus.watch_name (GLib.BusType.SESSION,
#  143|                                NOTIFICATION_WATCHER_DBUS_ADDR,
#  144|                                GLib.BusNameWatcherFlags.NONE,

Error: COMPILER_WARNING (CWE-681): [#def157]
ibus-1.5.32/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_cairo_image_surface_full’
ibus-1.5.32/ui/gtk3/indicator.vala:568:17: warning[-Woverflow]: overflow in conversion from ‘long unsigned int’ to ‘gint’ {aka ‘int’} changes value from ‘18446744073709551615’ to ‘-1’
#  568 |         unowned uint8[] data = (uint8[]) image.get_data();
#      |                 ^
#  566|           int height = image.get_height();
#  567|           int stride = image.get_stride();
#  568|->         unowned uint8[] data = (uint8[]) image.get_data();
#  569|           data.length = stride * height;
#  570|           GLib.Bytes bytes = new GLib.Bytes(data);

Error: COMPILER_WARNING (CWE-681): [#def158]
ibus-1.5.32/ui/gtk3/indicator.vala:568:17: warning[-Woverflow]: overflow in conversion from ‘long unsigned int’ to ‘gint’ {{aka ‘int’}} changes value from ‘18446744073709551615’ to ‘-1’
#  566|           int height = image.get_height();
#  567|           int stride = image.get_stride();
#  568|->         unowned uint8[] data = (uint8[]) image.get_data();
#  569|           data.length = stride * height;
#  570|           GLib.Bytes bytes = new GLib.Bytes(data);

Error: COMPILER_WARNING (CWE-704): [#def159]
ibus-1.5.32/ui/gtk3/keybindingmanager.c:1960:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1958|   {
# 1959|   	static volatile gsize keybinding_manager_keybinding_type_id__once = 0;
# 1960|-> 	if (g_once_init_enter (&keybinding_manager_keybinding_type_id__once)) {
# 1961|   		GType keybinding_manager_keybinding_type_id;
# 1962|   		keybinding_manager_keybinding_type_id = keybinding_manager_keybinding_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def160]
ibus-1.5.32/ui/gtk3/keybindingmanager.c:2053:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2051|   {
# 2052|   	static volatile gsize keybinding_manager_type_id__once = 0;
# 2053|-> 	if (g_once_init_enter (&keybinding_manager_type_id__once)) {
# 2054|   		GType keybinding_manager_type_id;
# 2055|   		keybinding_manager_type_id = keybinding_manager_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:187:8: warning[-Wanalyzer-jump-through-null]: jump through null pointer
ibus-1.5.32/ui/gtk3/keybindingmanager.c:888:1: enter_function: entry to ‘keybinding_manager_event_handler’
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:170:2: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:171:7: branch_false: following ‘false’ branch (when ‘_tmp0_ != 0’)...
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:172:4: branch_false: ...to here
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:172:7: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:176:8: branch_false: ...to here
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:176:7: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:177:26: branch_true: ...to here
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:184:11: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:185:19: call_function: inlined call to ‘keybinding_manager_keybinding_get_modifiers’ from ‘keybinding_manager_event_handler’
 branch_false: ...to here
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:184:11: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:187:18: branch_false: ...to here
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:187:18: call_function: calling ‘keybinding_manager_keybinding_get_handler’ from ‘keybinding_manager_event_handler’
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:187:18: return_function: returning to ‘keybinding_manager_event_handler’ from ‘keybinding_manager_keybinding_get_handler’
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:187:8: danger: jump through null pointer here
#  185|                           modifiers != binding.modifiers)
#  186|                           continue;
#  187|->                     binding.handler(event);
#  188|                       return;
#  189|                   }

Error: COMPILER_WARNING (CWE-563): [#def162]
ibus-1.5.32/ui/gtk3/keybindingmanager.vala: scope_hint: In function ‘_vala_XIGrabModifiers_array_free’
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:245:6: warning[-Wunused-value]: statement with no effect
#  245 |         int retval = XI.grab_keycode (xdisplay,
#      |      ^  ~~~~~~~
#  243|           XI.set_mask(evmask.mask, XI.EventType.KeyRelease);
#  244|   
#  245|->         int retval = XI.grab_keycode (xdisplay,
#  246|                                         XI.AllMasterDevices,
#  247|                                         keycode,

Error: COMPILER_WARNING (CWE-563): [#def163]
ibus-1.5.32/ui/gtk3/keybindingmanager.vala: scope_hint: In function ‘keybinding_manager_grab_keycode’
ibus-1.5.32/ui/gtk3/keybindingmanager.vala:255:4: warning[-Wunused-value]: statement with no effect
#  255 |         return retval == 0;
#      |    ^    ~~~
#  253|                                         get_grab_modifiers(modifiers));
#  254|               
#  255|->         return retval == 0;
#  256|       }
#  257|   

Error: COMPILER_WARNING (CWE-704): [#def164]
ibus-1.5.32/ui/gtk3/panel.c:1056:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1054|   {
# 1055|   	static volatile gsize panel_icon_type_type_id__once = 0;
# 1056|-> 	if (g_once_init_enter (&panel_icon_type_type_id__once)) {
# 1057|   		GType panel_icon_type_type_id;
# 1058|   		panel_icon_type_type_id = panel_icon_type_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def165]
ibus-1.5.32/ui/gtk3/panel.c:11222:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#11220|   {
#11221|   	static volatile gsize panel_type_id__once = 0;
#11222|-> 	if (g_once_init_enter (&panel_type_id__once)) {
#11223|   		GType panel_type_id;
#11224|   		panel_type_id = panel_get_type_once ();

Error: COMPILER_WARNING (CWE-477): [#def166]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_init_status_icon’
ibus-1.5.32/ui/gtk3/panel.vala:442:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_new’ is deprecated
#  442 |         m_status_icon = new Gtk.StatusIcon();
#      |  ^     
/usr/include/gtk-3.0/gtk/gtk.h:275: included_from: Included from here.
ibus-1.5.32/ui/gtk3/panel.c:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:84:23: note: declared here
#   84 | GtkStatusIcon        *gtk_status_icon_new                (void);
#      |                       ^~~~~~~~~~~~~~~~~~~
#  440|   
#  441|       private void init_status_icon() {
#  442|->         m_status_icon = new Gtk.StatusIcon();
#  443|           m_status_icon.set_name("ibus-ui-gtk");
#  444|           m_status_icon.set_title(_("IBus Panel"));

Error: COMPILER_WARNING (CWE-477): [#def167]
ibus-1.5.32/ui/gtk3/panel.vala:442:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_new’ is deprecated
#  440|   
#  441|       private void init_status_icon() {
#  442|->         m_status_icon = new Gtk.StatusIcon();
#  443|           m_status_icon.set_name("ibus-ui-gtk");
#  444|           m_status_icon.set_title(_("IBus Panel"));

Error: COMPILER_WARNING (CWE-477): [#def168]
ibus-1.5.32/ui/gtk3/panel.vala:443:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_name’ is deprecated
#  443 |         m_status_icon.set_name("ibus-ui-gtk");
#      |  ^      ~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:148:23: note: declared here
#  148 | void                  gtk_status_icon_set_name           (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
#  441|       private void init_status_icon() {
#  442|           m_status_icon = new Gtk.StatusIcon();
#  443|->         m_status_icon.set_name("ibus-ui-gtk");
#  444|           m_status_icon.set_title(_("IBus Panel"));
#  445|   

Error: COMPILER_WARNING (CWE-477): [#def169]
ibus-1.5.32/ui/gtk3/panel.vala:443:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_name’ is deprecated
#  441|       private void init_status_icon() {
#  442|           m_status_icon = new Gtk.StatusIcon();
#  443|->         m_status_icon.set_name("ibus-ui-gtk");
#  444|           m_status_icon.set_title(_("IBus Panel"));
#  445|   

Error: COMPILER_WARNING (CWE-477): [#def170]
ibus-1.5.32/ui/gtk3/panel.vala:444:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_title’ is deprecated
#  444 |         m_status_icon.set_title(_("IBus Panel"));
#      |  ^      ~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:143:23: note: declared here
#  143 | void                  gtk_status_icon_set_title          (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
#  442|           m_status_icon = new Gtk.StatusIcon();
#  443|           m_status_icon.set_name("ibus-ui-gtk");
#  444|->         m_status_icon.set_title(_("IBus Panel"));
#  445|   
#  446|           // Gdk.Window.get_width() is needed for the menu position

Error: COMPILER_WARNING (CWE-477): [#def171]
ibus-1.5.32/ui/gtk3/panel.vala:444:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_title’ is deprecated
#  442|           m_status_icon = new Gtk.StatusIcon();
#  443|           m_status_icon.set_name("ibus-ui-gtk");
#  444|->         m_status_icon.set_title(_("IBus Panel"));
#  445|   
#  446|           // Gdk.Window.get_width() is needed for the menu position

Error: COMPILER_WARNING (CWE-477): [#def172]
ibus-1.5.32/ui/gtk3/panel.vala:447:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_size’ is deprecated
#  447 |         if (m_status_icon.get_size() > 0)
#      |  ^ 
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:125:23: note: declared here
#  125 | gint                  gtk_status_icon_get_size           (GtkStatusIcon      *status_icon);
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
#  445|   
#  446|           // Gdk.Window.get_width() is needed for the menu position
#  447|->         if (m_status_icon.get_size() > 0)
#  448|               init_status_icon_menu();
#  449|           else

Error: COMPILER_WARNING (CWE-477): [#def173]
ibus-1.5.32/ui/gtk3/panel.vala:447:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_size’ is deprecated
#  445|   
#  446|           // Gdk.Window.get_width() is needed for the menu position
#  447|->         if (m_status_icon.get_size() > 0)
#  448|               init_status_icon_menu();
#  449|           else

Error: COMPILER_WARNING (CWE-477): [#def174]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_init_status_icon_menu’
ibus-1.5.32/ui/gtk3/panel.vala:457:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
#  457 |         m_status_icon.set_from_icon_name("ibus-keyboard");
#      |  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:106:23: note: declared here
#  106 | void                  gtk_status_icon_set_from_icon_name (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  455|           Gdk.Window? window = null;
#  456|           Gtk.MenuPositionFunc? func = null;
#  457|->         m_status_icon.set_from_icon_name("ibus-keyboard");
#  458|   #if ENABLE_XIM
#  459|           var display = BindingCommon.get_xdisplay();

Error: COMPILER_WARNING (CWE-477): [#def175]
ibus-1.5.32/ui/gtk3/panel.vala:457:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
#  455|           Gdk.Window? window = null;
#  456|           Gtk.MenuPositionFunc? func = null;
#  457|->         m_status_icon.set_from_icon_name("ibus-keyboard");
#  458|   #if ENABLE_XIM
#  459|           var display = BindingCommon.get_xdisplay();

Error: COMPILER_WARNING (CWE-477): [#def176]
ibus-1.5.32/ui/gtk3/panel.vala:464:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_x11_window_id’ is deprecated
#  464 |         window = Gdk.X11.Window.lookup_for_display(
#      |  ^     
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:178:23: note: declared here
#  178 | guint32               gtk_status_icon_get_x11_window_id  (GtkStatusIcon      *status_icon);
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  462|               return;
#  463|           }
#  464|->         window = Gdk.X11.Window.lookup_for_display(
#  465|                   display,
#  466|                   m_status_icon.get_x11_window_id()) as Gdk.Window;

Error: COMPILER_WARNING (CWE-477): [#def177]
ibus-1.5.32/ui/gtk3/panel.vala:464:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_x11_window_id’ is deprecated
#  462|               return;
#  463|           }
#  464|->         window = Gdk.X11.Window.lookup_for_display(
#  465|                   display,
#  466|                   m_status_icon.get_x11_window_id()) as Gdk.Window;

Error: COMPILER_WARNING (CWE-477): [#def178]
ibus-1.5.32/ui/gtk3/panel.vala:484:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_geometry’ is deprecated
#  484 |         m_status_icon.get_geometry(null, out area, out orient);
#      |  ^      ~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:166:23: note: declared here
#  166 | gboolean              gtk_status_icon_get_geometry       (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  482|           }
#  483|           Gtk.Orientation orient;
#  484|->         m_status_icon.get_geometry(null, out area, out orient);
#  485|           int win_x = 0;
#  486|           int win_y = 0;

Error: COMPILER_WARNING (CWE-477): [#def179]
ibus-1.5.32/ui/gtk3/panel.vala:484:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_geometry’ is deprecated
#  482|           }
#  483|           Gtk.Orientation orient;
#  484|->         m_status_icon.get_geometry(null, out area, out orient);
#  485|           int win_x = 0;
#  486|           int win_y = 0;

Error: COMPILER_WARNING (CWE-843): [#def180]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_init_engines_order’
ibus-1.5.32/ui/gtk3/panel.vala:706:51: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
#  706 |         m_settings_general.set_strv("preload-engines", names);
#      |                                                   ^~~~~~~
#      |                                                   |
#      |                                                   gchar ** {aka char **}
/usr/include/glib-2.0/gio/gio.h:137: included_from: Included from here.
ibus-1.5.32/src/ibusproxy.h:46: included_from: Included from here.
ibus-1.5.32/src/ibus.h:36: included_from: Included from here.
/usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  191 |                                                                          const gchar *const *value);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
#  704|               names += engine.get_name();
#  705|   
#  706|->         m_settings_general.set_strv("preload-engines", names);
#  707|       }
#  708|   

Error: COMPILER_WARNING (CWE-843): [#def181]
ibus-1.5.32/ui/gtk3/panel.vala:706:51: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
#  704|               names += engine.get_name();
#  705|   
#  706|->         m_settings_general.set_strv("preload-engines", names);
#  707|       }
#  708|   

Error: COMPILER_WARNING (CWE-477): [#def182]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_set_show_icon_on_systray’
ibus-1.5.32/ui/gtk3/panel.vala:766:3: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_visible’ is deprecated
#  766 |             m_status_icon.set_visible(
#      |   ^         ~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:151:23: note: declared here
#  151 | void                  gtk_status_icon_set_visible        (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  764|   
#  765|               // Always update the icon status immediately.
#  766|->             m_status_icon.set_visible(
#  767|                       m_settings_panel.get_boolean("show-icon-on-systray"));
#  768|           }

Error: COMPILER_WARNING (CWE-477): [#def183]
ibus-1.5.32/ui/gtk3/panel.vala:766:3: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_visible’ is deprecated
#  764|   
#  765|               // Always update the icon status immediately.
#  766|->             m_status_icon.set_visible(
#  767|                       m_settings_panel.get_boolean("show-icon-on-systray"));
#  768|           }

Error: COMPILER_WARNING (CWE-843): [#def184]
ibus-1.5.32/ui/gtk3/panel.vala:1109:2: warning[-Wincompatible-pointer-types]: passing argument 1 of ‘pango_attribute_destroy’ from incompatible pointer type
# 1107|   
# 1108|       private void set_language_from_engine(IBus.EngineDesc engine) {
# 1109|->         m_candidate_panel.set_language(new Pango.AttrLanguage(
# 1110|                   Pango.Language.from_string(m_use_engine_lang
# 1111|                                              ? engine.get_language()

Error: COMPILER_WARNING (CWE-843): [#def185]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_set_language_from_engine’
ibus-1.5.32/ui/gtk3/panel.vala:1109:29: warning[-Wincompatible-pointer-types]: passing argument 1 of ‘pango_attribute_destroy’ from incompatible pointer type
# 1109 |         m_candidate_panel.set_language(new Pango.AttrLanguage(
#      |                             ^~~~~~
#      |                             |
#      |                             PangoAttrLanguage * {aka struct _PangoAttrLanguage *}
ibus-1.5.32/ui/gtk3/panel.c:206:97: note: in definition of macro ‘_pango_attribute_destroy0’
#  206 | #define _pango_attribute_destroy0(var) ((var == NULL) ? NULL : (var = (pango_attribute_destroy (var), NULL)))
#      |                                                                                                 ^~~
/usr/include/pango-1.0/pango/pango.h:25: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdktypes.h:35: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
/usr/include/pango-1.0/pango/pango-attributes.h:513:94: note: expected ‘PangoAttribute *’ {aka ‘struct _PangoAttribute *’} but argument is of type ‘PangoAttrLanguage *’ {aka ‘struct _PangoAttrLanguage *’}
#  513 | void                    pango_attribute_destroy                 (PangoAttribute             *attr);
#      |                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
# 1107|   
# 1108|       private void set_language_from_engine(IBus.EngineDesc engine) {
# 1109|->         m_candidate_panel.set_language(new Pango.AttrLanguage(
# 1110|                   Pango.Language.from_string(m_use_engine_lang
# 1111|                                              ? engine.get_language()

Error: COMPILER_WARNING (CWE-843): [#def186]
ibus-1.5.32/ui/gtk3/panel.vala:1115:3: warning[-Wincompatible-pointer-types]: passing argument 1 of ‘pango_attribute_destroy’ from incompatible pointer type
# 1113|   #if USE_GDK_WAYLAND
# 1114|           if (m_candidate_panel_x11 != null) {
# 1115|->             m_candidate_panel_x11.set_language(new Pango.AttrLanguage(
# 1116|                       Pango.Language.from_string(m_use_engine_lang
# 1117|                                                  ? engine.get_language()

Error: COMPILER_WARNING (CWE-843): [#def187]
ibus-1.5.32/ui/gtk3/panel.vala:1115:30: warning[-Wincompatible-pointer-types]: passing argument 1 of ‘pango_attribute_destroy’ from incompatible pointer type
# 1115 |             m_candidate_panel_x11.set_language(new Pango.AttrLanguage(
#      |                              ^~~~~~~
#      |                              |
#      |                              PangoAttrLanguage * {aka struct _PangoAttrLanguage *}
ibus-1.5.32/ui/gtk3/panel.c:206:97: note: in definition of macro ‘_pango_attribute_destroy0’
#  206 | #define _pango_attribute_destroy0(var) ((var == NULL) ? NULL : (var = (pango_attribute_destroy (var), NULL)))
#      |                                                                                                 ^~~
/usr/include/pango-1.0/pango/pango-attributes.h:513:94: note: expected ‘PangoAttribute *’ {aka ‘struct _PangoAttribute *’} but argument is of type ‘PangoAttrLanguage *’ {aka ‘struct _PangoAttrLanguage *’}
#  513 | void                    pango_attribute_destroy                 (PangoAttribute             *attr);
#      |                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
# 1113|   #if USE_GDK_WAYLAND
# 1114|           if (m_candidate_panel_x11 != null) {
# 1115|->             m_candidate_panel_x11.set_language(new Pango.AttrLanguage(
# 1116|                       Pango.Language.from_string(m_use_engine_lang
# 1117|                                                  ? engine.get_language()

Error: COMPILER_WARNING (CWE-843): [#def188]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘__lambda68_’
ibus-1.5.32/ui/gtk3/panel.vala:1295:42: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_preload_engines_async’ from incompatible pointer type
# 1295 |                             m_bus.preload_engines_async.begin(names,
#      |                                          ^~~~~~
#      |                                          |
#      |                                          gchar ** {aka char **}
ibus-1.5.32/src/ibus.h:45: included_from: Included from here.
ibus-1.5.32/src/ibusbus.h:1176:58: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
# 1175 |                                          const gchar * const
#      |                                          ~~~~~~~~~~~~~~~~~~~
# 1176 |                                                         *names,
#      |                                                         ~^~~~~
# 1293|                               if (!m_bus.is_connected())
# 1294|                                   return false;
# 1295|->                             m_bus.preload_engines_async.begin(names,
# 1296|                                                                 -1,
# 1297|                                                                 null);

Error: COMPILER_WARNING (CWE-843): [#def189]
ibus-1.5.32/ui/gtk3/panel.vala:1295:42: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_preload_engines_async’ from incompatible pointer type
# 1293|                               if (!m_bus.is_connected())
# 1294|                                   return false;
# 1295|->                             m_bus.preload_engines_async.begin(names,
# 1296|                                                                 -1,
# 1297|                                                                 null);

Error: CPPCHECK_WARNING (CWE-476): [#def190]
ibus-1.5.32/ui/gtk3/panel.vala:1311: warning[nullPointer]: Possible null pointer dereference: name_collection
# 1309|           string[] names = {};
# 1310|   
# 1311|->         foreach (var name in order_names) {
# 1312|               if (name in engine_names)
# 1313|                   names += name;

Error: COMPILER_WARNING (CWE-843): [#def191]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_update_engines’
ibus-1.5.32/ui/gtk3/panel.vala:1322:62: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_get_engines_by_names’ from incompatible pointer type
# 1322 |         var engines = m_bus.get_engines_by_names(names);
#      |                                                              ^      
#      |                                                              |
#      |                                                              gchar ** {aka char **}
ibus-1.5.32/src/ibusbus.h:831:63: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  831 |                                          const gchar * const *names);
#      |                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1320|           }
# 1321|   
# 1322|->         var engines = m_bus.get_engines_by_names(names);
# 1323|   
# 1324|           /* Fedora internal patch could save engines not in simple.xml

Error: COMPILER_WARNING (CWE-843): [#def192]
ibus-1.5.32/ui/gtk3/panel.vala:1322:62: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_get_engines_by_names’ from incompatible pointer type
# 1320|           }
# 1321|   
# 1322|->         var engines = m_bus.get_engines_by_names(names);
# 1323|   
# 1324|           /* Fedora internal patch could save engines not in simple.xml

Error: COMPILER_WARNING (CWE-843): [#def193]
ibus-1.5.32/ui/gtk3/panel.vala:1331:53: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
# 1331 |                 m_settings_general.set_strv("preload-engines", fallback_names);
#      |                                                     ^~~~~~~
#      |                                                     |
#      |                                                     gchar ** {aka char **}
/usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  191 |                                                                          const gchar *const *value);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
# 1329|               if (engines.length == 0) {
# 1330|                   string[] fallback_names = {"xkb:us::eng"};
# 1331|->                 m_settings_general.set_strv("preload-engines", fallback_names);
# 1332|                   engines = m_bus.get_engines_by_names(fallback_names);
# 1333|                   message1 = _("Your configured input method %s does not exist " +

Error: COMPILER_WARNING (CWE-843): [#def194]
ibus-1.5.32/ui/gtk3/panel.vala:1331:53: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
# 1329|               if (engines.length == 0) {
# 1330|                   string[] fallback_names = {"xkb:us::eng"};
# 1331|->                 m_settings_general.set_strv("preload-engines", fallback_names);
# 1332|                   engines = m_bus.get_engines_by_names(fallback_names);
# 1333|                   message1 = _("Your configured input method %s does not exist " +

Error: COMPILER_WARNING (CWE-843): [#def195]
ibus-1.5.32/ui/gtk3/panel.vala:1332:64: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_get_engines_by_names’ from incompatible pointer type
# 1332 |                 engines = m_bus.get_engines_by_names(fallback_names);
#      |                                                                ^~~~~~ 
#      |                                                                |
#      |                                                                gchar ** {aka char **}
ibus-1.5.32/src/ibusbus.h:831:63: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  831 |                                          const gchar * const *names);
#      |                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1330|                   string[] fallback_names = {"xkb:us::eng"};
# 1331|                   m_settings_general.set_strv("preload-engines", fallback_names);
# 1332|->                 engines = m_bus.get_engines_by_names(fallback_names);
# 1333|                   message1 = _("Your configured input method %s does not exist " +
# 1334|                                "in IBus input methods so \"US\" layout was " +

Error: COMPILER_WARNING (CWE-843): [#def196]
ibus-1.5.32/ui/gtk3/panel.vala:1332:64: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_get_engines_by_names’ from incompatible pointer type
# 1330|                   string[] fallback_names = {"xkb:us::eng"};
# 1331|                   m_settings_general.set_strv("preload-engines", fallback_names);
# 1332|->                 engines = m_bus.get_engines_by_names(fallback_names);
# 1333|                   message1 = _("Your configured input method %s does not exist " +
# 1334|                                "in IBus input methods so \"US\" layout was " +

Error: COMPILER_WARNING (CWE-681): [#def197]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_create_cairo_image_surface_with_string’
ibus-1.5.32/ui/gtk3/panel.vala:1431:19: warning[-Woverflow]: overflow in conversion from ‘long unsigned int’ to ‘gint’ {aka ‘int’} changes value from ‘4611686018427387903’ to ‘-1’
# 1431 |                 unowned uint[] data = (uint[]) image.get_data();
#      |                   ^
# 1429|           if (m_icon_type == IconType.INDICATOR) {
# 1430|               if (GLib.BYTE_ORDER == GLib.ByteOrder.LITTLE_ENDIAN) {
# 1431|->                 unowned uint[] data = (uint[]) image.get_data();
# 1432|                   int length = stride * height / (int) sizeof(uint);
# 1433|                   for (int i = 0; i < length; i++)

Error: COMPILER_WARNING (CWE-681): [#def198]
ibus-1.5.32/ui/gtk3/panel.vala:1431:19: warning[-Woverflow]: overflow in conversion from ‘long unsigned int’ to ‘gint’ {{aka ‘int’}} changes value from ‘4611686018427387903’ to ‘-1’
# 1429|           if (m_icon_type == IconType.INDICATOR) {
# 1430|               if (GLib.BYTE_ORDER == GLib.ByteOrder.LITTLE_ENDIAN) {
# 1431|->                 unowned uint[] data = (uint[]) image.get_data();
# 1432|                   int length = stride * height / (int) sizeof(uint);
# 1433|                   for (int i = 0; i < length; i++)

Error: COMPILER_WARNING (CWE-843): [#def199]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_show_about_dialog’
ibus-1.5.32/ui/gtk3/panel.vala:1501:42: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_about_dialog_set_authors’ from incompatible pointer type
# 1501 |             m_about_dialog.set_authors(
#      |                                          ^      
#      |                                          |
#      |                                          gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtk.h:31: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:188:82: note: expected ‘const gchar **’ {aka ‘const char **’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  188 |                                                                 const gchar    **authors);
#      |                                                                 ~~~~~~~~~~~~~~~~~^~~~~~~
# 1499|               m_about_dialog.set_comments(_("IBus is an intelligent input bus for Linux/Unix."));
# 1500|               m_about_dialog.set_website("https://github.com/ibus/ibus/wiki");
# 1501|->             m_about_dialog.set_authors(
# 1502|                       {"Peng Huang <shawn.p.huang@gmail.com>"});
# 1503|               m_about_dialog.add_credit_section(

Error: COMPILER_WARNING (CWE-843): [#def200]
ibus-1.5.32/ui/gtk3/panel.vala:1501:42: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_about_dialog_set_authors’ from incompatible pointer type
# 1499|               m_about_dialog.set_comments(_("IBus is an intelligent input bus for Linux/Unix."));
# 1500|               m_about_dialog.set_website("https://github.com/ibus/ibus/wiki");
# 1501|->             m_about_dialog.set_authors(
# 1502|                       {"Peng Huang <shawn.p.huang@gmail.com>"});
# 1503|               m_about_dialog.add_credit_section(

Error: COMPILER_WARNING (CWE-843): [#def201]
ibus-1.5.32/ui/gtk3/panel.vala:1503:68: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘gtk_about_dialog_add_credit_section’ from incompatible pointer type
# 1503 |             m_about_dialog.add_credit_section(
#      |                                                                    ^      
#      |                                                                    |
#      |                                                                    gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:217:82: note: expected ‘const gchar **’ {aka ‘const char **’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  217 |                                                                 const gchar    **people);
#      |                                                                 ~~~~~~~~~~~~~~~~~^~~~~~
# 1501|               m_about_dialog.set_authors(
# 1502|                       {"Peng Huang <shawn.p.huang@gmail.com>"});
# 1503|->             m_about_dialog.add_credit_section(
# 1504|                       _("Maintainers"),
# 1505|                       {"Takao Fujiwara <takao.fujiwara1@gmail.com>"});

Error: COMPILER_WARNING (CWE-843): [#def202]
ibus-1.5.32/ui/gtk3/panel.vala:1503:68: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘gtk_about_dialog_add_credit_section’ from incompatible pointer type
# 1501|               m_about_dialog.set_authors(
# 1502|                       {"Peng Huang <shawn.p.huang@gmail.com>"});
# 1503|->             m_about_dialog.add_credit_section(
# 1504|                       _("Maintainers"),
# 1505|                       {"Takao Fujiwara <takao.fujiwara1@gmail.com>"});

Error: COMPILER_WARNING (CWE-843): [#def203]
ibus-1.5.32/ui/gtk3/panel.vala:1506:46: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_about_dialog_set_documenters’ from incompatible pointer type
# 1506 |             m_about_dialog.set_documenters(
#      |                                              ^      
#      |                                              |
#      |                                              gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:193:82: note: expected ‘const gchar **’ {aka ‘const char **’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  193 |                                                                 const gchar    **documenters);
#      |                                                                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
# 1504|                       _("Maintainers"),
# 1505|                       {"Takao Fujiwara <takao.fujiwara1@gmail.com>"});
# 1506|->             m_about_dialog.set_documenters(
# 1507|                       {"Takao Fujiwara <takao.fujiwara1@gmail.com>"});
# 1508|               m_about_dialog.set_translator_credits(_("translator-credits"));

Error: COMPILER_WARNING (CWE-843): [#def204]
ibus-1.5.32/ui/gtk3/panel.vala:1506:46: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_about_dialog_set_documenters’ from incompatible pointer type
# 1504|                       _("Maintainers"),
# 1505|                       {"Takao Fujiwara <takao.fujiwara1@gmail.com>"});
# 1506|->             m_about_dialog.set_documenters(
# 1507|                       {"Takao Fujiwara <takao.fujiwara1@gmail.com>"});
# 1508|               m_about_dialog.set_translator_credits(_("translator-credits"));

Error: COMPILER_WARNING (CWE-477): [#def205]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘__lambda113_’
ibus-1.5.32/ui/gtk3/panel.vala:1731:3: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_pixbuf’ is deprecated
# 1731 |                 m_status_icon.set_from_pixbuf(pixbuf);
#      |   ^             ~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:97:23: note: declared here
#   97 | void                  gtk_status_icon_set_from_pixbuf    (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1729|               if (m_icon_type == IconType.STATUS_ICON) {
# 1730|                   Gdk.Pixbuf pixbuf = create_icon_pixbuf_with_string(symbol);
# 1731|->                 m_status_icon.set_from_pixbuf(pixbuf);
# 1732|               }
# 1733|   #if INDICATOR

Error: COMPILER_WARNING (CWE-477): [#def206]
ibus-1.5.32/ui/gtk3/panel.vala:1731:3: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_pixbuf’ is deprecated
# 1729|               if (m_icon_type == IconType.STATUS_ICON) {
# 1730|                   Gdk.Pixbuf pixbuf = create_icon_pixbuf_with_string(symbol);
# 1731|->                 m_status_icon.set_from_pixbuf(pixbuf);
# 1732|               }
# 1733|   #if INDICATOR

Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
ibus-1.5.32/ui/gtk3/panel.vala:1902:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘base’
ibus-1.5.32/ui/gtk3/panel.c:9985:1: enter_function: entry to ‘panel_real_update_preedit_text’
ibus-1.5.32/ui/gtk3/panel.vala:1897:2: branch_true: following ‘true’ branch (when ‘text’ is non-NULL)...
ibus-1.5.32/ui/gtk3/panel.vala:1900:5: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1900:5: branch_true: following ‘true’ branch (when ‘visible != 0’)...
ibus-1.5.32/ui/gtk3/panel.vala:1902:12: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1902:12: call_function: calling ‘panel_get_active_candidate_panel’ from ‘panel_real_update_preedit_text’
ibus-1.5.32/ui/gtk3/panel.vala:1902:12: return_function: returning to ‘panel_real_update_preedit_text’ from ‘panel_get_active_candidate_panel’
ibus-1.5.32/ui/gtk3/panel.vala:1902:3: danger: dereference of NULL ‘base’
# 1900|           if (visible) {
# 1901|   #if USE_GDK_WAYLAND
# 1902|->             m_candidate_panel_active = get_active_candidate_panel();
# 1903|   #endif
# 1904|               m_candidate_panel_active.set_preedit_text(text, cursor_pos);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
ibus-1.5.32/ui/gtk3/panel.vala:1920:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘base’
ibus-1.5.32/ui/gtk3/panel.c:10046:1: enter_function: entry to ‘panel_real_update_auxiliary_text’
ibus-1.5.32/ui/gtk3/panel.vala:1916:2: branch_true: following ‘true’ branch (when ‘text’ is non-NULL)...
ibus-1.5.32/ui/gtk3/panel.vala:1919:5: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1919:5: branch_true: following ‘true’ branch (when ‘visible != 0’)...
ibus-1.5.32/ui/gtk3/panel.vala:1920:12: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1920:12: call_function: calling ‘panel_get_active_candidate_panel’ from ‘panel_real_update_auxiliary_text’
ibus-1.5.32/ui/gtk3/panel.vala:1920:12: return_function: returning to ‘panel_real_update_auxiliary_text’ from ‘panel_get_active_candidate_panel’
ibus-1.5.32/ui/gtk3/panel.vala:1920:3: danger: dereference of NULL ‘base’
# 1918|   #if USE_GDK_WAYLAND
# 1919|           if (visible)
# 1920|->             m_candidate_panel_active = get_active_candidate_panel();
# 1921|   #endif
# 1922|           m_candidate_panel_active.set_auxiliary_text(visible ? text : null);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def209]
ibus-1.5.32/ui/gtk3/panel.vala:1934:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘base’
ibus-1.5.32/ui/gtk3/panel.c:10117:1: enter_function: entry to ‘panel_real_update_lookup_table’
ibus-1.5.32/ui/gtk3/panel.vala:1930:2: branch_true: following ‘true’ branch (when ‘table’ is non-NULL)...
ibus-1.5.32/ui/gtk3/panel.vala:1933:5: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1933:5: branch_true: following ‘true’ branch (when ‘visible != 0’)...
ibus-1.5.32/ui/gtk3/panel.vala:1934:12: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1934:12: call_function: calling ‘panel_get_active_candidate_panel’ from ‘panel_real_update_lookup_table’
ibus-1.5.32/ui/gtk3/panel.vala:1934:12: return_function: returning to ‘panel_real_update_lookup_table’ from ‘panel_get_active_candidate_panel’
ibus-1.5.32/ui/gtk3/panel.vala:1934:3: danger: dereference of NULL ‘base’
# 1932|   #if USE_GDK_WAYLAND
# 1933|           if (visible)
# 1934|->             m_candidate_panel_active = get_active_candidate_panel();
# 1935|   #endif
# 1936|           m_candidate_panel_active.set_lookup_table(visible ? table : null);

Error: COMPILER_WARNING (CWE-477): [#def210]
ibus-1.5.32/ui/gtk3/panel.vala: scope_hint: In function ‘panel_real_state_changed’
ibus-1.5.32/ui/gtk3/panel.vala:1981:4: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_file’ is deprecated
# 1981 |                 m_status_icon.set_from_file(icon_name);
#      |    ^            ~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:100:23: note: declared here
#  100 | void                  gtk_status_icon_set_from_file      (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1979|           if (icon_name[0] == '/') {
# 1980|               if (m_icon_type == IconType.STATUS_ICON)
# 1981|->                 m_status_icon.set_from_file(icon_name);
# 1982|   #if INDICATOR
# 1983|               else if (m_icon_type == IconType.INDICATOR)

Error: COMPILER_WARNING (CWE-477): [#def211]
ibus-1.5.32/ui/gtk3/panel.vala:1981:4: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_file’ is deprecated
# 1979|           if (icon_name[0] == '/') {
# 1980|               if (m_icon_type == IconType.STATUS_ICON)
# 1981|->                 m_status_icon.set_from_file(icon_name);
# 1982|   #if INDICATOR
# 1983|               else if (m_icon_type == IconType.INDICATOR)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def212]
ibus-1.5.32/ui/gtk3/panel.vala:1991:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/panel.c:10309:1: enter_function: entry to ‘panel_real_state_changed’
ibus-1.5.32/ui/gtk3/panel.vala:1950:5: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/panel.vala:1954:6: branch_false: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1979:5: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/panel.vala:1989:6: branch_false: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1989:6: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/panel.vala:1990:14: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1991:14: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1989|               if (engine != null) {
# 1990|                   var name = engine.get_name();
# 1991|->                 if (name.length >= 4 && name[0:4] == "xkb:")
# 1992|                       language = m_switcher_active.get_xkb_language(engine);
# 1993|               }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def213]
ibus-1.5.32/ui/gtk3/panel.vala:1991:14: warning[-Wanalyzer-null-argument]: use of NULL ‘icon_name’ where non-null expected
ibus-1.5.32/ui/gtk3/panel.c:10309:1: enter_function: entry to ‘panel_real_state_changed’
ibus-1.5.32/ui/gtk3/panel.vala:1950:5: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/panel.vala:1954:6: branch_false: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1972:5: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/panel.vala:1973:12: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1974:3: release_memory: ‘0’ is NULL
ibus-1.5.32/ui/gtk3/panel.vala:1979:6: call_function: calling ‘string_get’ from ‘panel_real_state_changed’
ibus-1.5.32/ui/gtk3/panel.vala:1979:6: return_function: returning to ‘panel_real_state_changed’ from ‘string_get’
ibus-1.5.32/ui/gtk3/panel.vala:1979:5: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/panel.vala:1989:6: branch_false: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1989:6: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/panel.vala:1990:14: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panel.vala:1991:14: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1989|               if (engine != null) {
# 1990|                   var name = engine.get_name();
# 1991|->                 if (name.length >= 4 && name[0:4] == "xkb:")
# 1992|                       language = m_switcher_active.get_xkb_language(engine);
# 1993|               }

Error: COMPILER_WARNING (CWE-477): [#def214]
ibus-1.5.32/ui/gtk3/panel.vala:1999:5: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_pixbuf’ is deprecated
# 1999 |                     m_status_icon.set_from_pixbuf(pixbuf);
#      |     ^               ~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:97:23: note: declared here
#   97 | void                  gtk_status_icon_set_from_pixbuf    (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1997|                       Gdk.Pixbuf pixbuf =
# 1998|                               create_icon_pixbuf_with_string(language);
# 1999|->                     m_status_icon.set_from_pixbuf(pixbuf);
# 2000|                   }
# 2001|   #if INDICATOR

Error: COMPILER_WARNING (CWE-477): [#def215]
ibus-1.5.32/ui/gtk3/panel.vala:1999:5: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_pixbuf’ is deprecated
# 1997|                       Gdk.Pixbuf pixbuf =
# 1998|                               create_icon_pixbuf_with_string(language);
# 1999|->                     m_status_icon.set_from_pixbuf(pixbuf);
# 2000|                   }
# 2001|   #if INDICATOR

Error: COMPILER_WARNING (CWE-477): [#def216]
ibus-1.5.32/ui/gtk3/panel.vala:2013:6: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
# 2013 |                         m_status_icon.set_from_icon_name(icon_name);
#      |      ^                  ~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:106:23: note: declared here
#  106 | void                  gtk_status_icon_set_from_icon_name (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2011|                   if (theme.lookup_icon(icon_name, 48, 0) != null) {
# 2012|                       if (m_icon_type == IconType.STATUS_ICON)
# 2013|->                         m_status_icon.set_from_icon_name(icon_name);
# 2014|   #if INDICATOR
# 2015|                       else if (m_icon_type == IconType.INDICATOR)

Error: COMPILER_WARNING (CWE-477): [#def217]
ibus-1.5.32/ui/gtk3/panel.vala:2013:6: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
# 2011|                   if (theme.lookup_icon(icon_name, 48, 0) != null) {
# 2012|                       if (m_icon_type == IconType.STATUS_ICON)
# 2013|->                         m_status_icon.set_from_icon_name(icon_name);
# 2014|   #if INDICATOR
# 2015|                       else if (m_icon_type == IconType.INDICATOR)

Error: COMPILER_WARNING (CWE-477): [#def218]
ibus-1.5.32/ui/gtk3/panel.vala:2020:6: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
# 2020 |                         m_status_icon.set_from_icon_name("ibus-engine");
#      |      ^                  ~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:106:23: note: declared here
#  106 | void                  gtk_status_icon_set_from_icon_name (GtkStatusIcon      *status_icon,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2018|                   } else {
# 2019|                       if (m_icon_type == IconType.STATUS_ICON)
# 2020|->                         m_status_icon.set_from_icon_name("ibus-engine");
# 2021|   #if INDICATOR
# 2022|                       else if (m_icon_type == IconType.INDICATOR)

Error: COMPILER_WARNING (CWE-477): [#def219]
ibus-1.5.32/ui/gtk3/panel.vala:2020:6: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
# 2018|                   } else {
# 2019|                       if (m_icon_type == IconType.STATUS_ICON)
# 2020|->                         m_status_icon.set_from_icon_name("ibus-engine");
# 2021|   #if INDICATOR
# 2022|                       else if (m_icon_type == IconType.INDICATOR)

Error: COMPILER_WARNING (CWE-843): [#def220]
ibus-1.5.32/ui/gtk3/panel.vala:2055:49: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
# 2055 |         m_settings_general.set_strv("engines-order", names);
#      |                                                 ^~~~~~~
#      |                                                 |
#      |                                                 gchar ** {aka char **}
/usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  191 |                                                                          const gchar *const *value);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
# 2053|               names += desc.get_name();
# 2054|           }
# 2055|->         m_settings_general.set_strv("engines-order", names);
# 2056|       }
# 2057|   

Error: COMPILER_WARNING (CWE-843): [#def221]
ibus-1.5.32/ui/gtk3/panel.vala:2055:49: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
# 2053|               names += desc.get_name();
# 2054|           }
# 2055|->         m_settings_general.set_strv("engines-order", names);
# 2056|       }
# 2057|   

Error: COMPILER_WARNING (CWE-704): [#def222]
ibus-1.5.32/ui/gtk3/panelbinding.c:1429:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1427|   {
# 1428|   	static volatile gsize preedit_type_id__once = 0;
# 1429|-> 	if (g_once_init_enter (&preedit_type_id__once)) {
# 1430|   		GType preedit_type_id;
# 1431|   		preedit_type_id = preedit_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def223]
ibus-1.5.32/ui/gtk3/panelbinding.c:5486:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 5484|   {
# 5485|   	static volatile gsize panel_binding_type_id__once = 0;
# 5486|-> 	if (g_once_init_enter (&panel_binding_type_id__once)) {
# 5487|   		GType panel_binding_type_id;
# 5488|   		panel_binding_type_id = panel_binding_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def224]
ibus-1.5.32/ui/gtk3/panelbinding.vala:94:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/panelbinding.c:4675:1: enter_function: entry to ‘panel_binding_real_process_key_event’
ibus-1.5.32/ui/gtk3/panelbinding.vala:1008:4: call_function: calling ‘preedit_backspace’ from ‘panel_binding_real_process_key_event’
#argument 1 of ‘__builtin_strlen’ must be non-null
#   92|       public bool backspace() {
#   93|           string total = m_extension_preedit_emoji.get_text();
#   94|->         if (total.length > 0) {
#   95|               m_extension_preedit_emoji.set_text("");
#   96|               resize(1, 1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def225]
ibus-1.5.32/ui/gtk3/panelbinding.vala:106:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/panelbinding.c:4675:1: enter_function: entry to ‘panel_binding_real_process_key_event’
ibus-1.5.32/ui/gtk3/panelbinding.vala:1008:4: call_function: calling ‘preedit_backspace’ from ‘panel_binding_real_process_key_event’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  104|           resize(1, 1);
#  105|           m_extension_preedit_text.set_text(total);
#  106|->         if (total.length == 0)
#  107|               resize(1, 1);
#  108|           return true;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def226]
ibus-1.5.32/ui/gtk3/panelbinding.vala:114:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/panelbinding.c:4675:1: enter_function: entry to ‘panel_binding_real_process_key_event’
ibus-1.5.32/ui/gtk3/panelbinding.vala:1100:7: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/panelbinding.vala:1101:22: branch_true: ...to here
ibus-1.5.32/ui/gtk3/panelbinding.vala:1109:2: call_function: calling ‘panel_binding_show_preedit_and_candidate’ from ‘panel_binding_real_process_key_event’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  112|       private string get_extension_text () {
#  113|           string extension_text = m_extension_preedit_emoji.get_text();
#  114|->         if (extension_text.length == 0)
#  115|               extension_text = m_extension_preedit_text.get_text();
#  116|           return m_prefix + extension_text;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def227]
ibus-1.5.32/ui/gtk3/panelbinding.vala:193:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/panelbinding.c:4675:1: enter_function: entry to ‘panel_binding_real_process_key_event’
ibus-1.5.32/ui/gtk3/panelbinding.vala:1001:21: call_function: calling ‘panel_binding_key_press_enter’ from ‘panel_binding_real_process_key_event’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  191|       public IBus.Text get_commit_text() {
#  192|           string extension_text = m_extension_preedit_emoji.get_text();
#  193|->         if (extension_text.length == 0 && m_prefix != "u")
#  194|               extension_text = m_extension_preedit_text.get_text();
#  195|           return new IBus.Text.from_string(extension_text);

Error: COMPILER_WARNING (CWE-843): [#def228]
ibus-1.5.32/ui/gtk3/panelbinding.vala: scope_hint: In function ‘panel_binding_commit_text_update_favorites’
ibus-1.5.32/ui/gtk3/panelbinding.vala:496:46: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
#  496 |             m_settings_emoji.set_strv("favorites", m_emojier_favorites);
#      |                                              ^~~~~~~
#      |                                              |
#      |                                              gchar ** {aka char **}
/usr/include/glib-2.0/gio/gio.h:137: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
#  191 |                                                                          const gchar *const *value);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
#  494|           if (!has_favorite) {
#  495|               m_emojier_favorites += committed_string;
#  496|->             m_settings_emoji.set_strv("favorites", m_emojier_favorites);
#  497|           }
#  498|       }

Error: COMPILER_WARNING (CWE-843): [#def229]
ibus-1.5.32/ui/gtk3/panelbinding.vala:496:46: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
#  494|           if (!has_favorite) {
#  495|               m_emojier_favorites += committed_string;
#  496|->             m_settings_emoji.set_strv("favorites", m_emojier_favorites);
#  497|           }
#  498|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def230]
ibus-1.5.32/ui/gtk3/panelbinding.vala:629:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/panelbinding.c:4675:1: enter_function: entry to ‘panel_binding_real_process_key_event’
ibus-1.5.32/ui/gtk3/panelbinding.vala:1018:7: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/panelbinding.vala:1024:21: branch_false: ...to here
ibus-1.5.32/ui/gtk3/panelbinding.vala:1024:21: call_function: calling ‘panel_binding_key_press_space’ from ‘panel_binding_real_process_key_event’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  627|           } else {
#  628|               string annotation = m_preedit.get_text();
#  629|->             if (annotation.length == 0) {
#  630|                   show_candidate = true;
#  631|                   if (is_emoji_lookup_table())

Error: COMPILER_WARNING: [#def231]
ibus-1.5.32/ui/gtk3/pango.vala: scope_hint: In function ‘get_pango_attr_list_from_ibus_text’
ibus-1.5.32/ui/gtk3/pango.vala:43:12: warning[-Warray-bounds=]: array subscript -1 is outside array bounds of ‘void[<unknown>]’
#   43 |         start_index = start_index <= nchars ? offsets[start_index] : offsets[-1];
#      |         ~~~^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
ibus-1.5.32/src/ibusshare.h:40: included_from: Included from here.
ibus-1.5.32/src/ibus.h:30: included_from: Included from here.
ibus-1.5.32/ui/gtk3/pango.c:26: included_from: Included from here.
/usr/include/glib-2.0/glib/gmem.h:273:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by ‘g_malloc0_n’
#  273 |             __p = g_##func##_n (__n, __s);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
#   41|           long start_index =  attr.start_index;
#   42|           if (start_index <= 0) start_index = 0;
#   43|->         start_index = start_index <= nchars ? offsets[start_index] : offsets[-1];
#   44|   
#   45|           long end_index = attr.end_index;

Error: COMPILER_WARNING: [#def232]
ibus-1.5.32/ui/gtk3/pango.vala:47:12: warning[-Warray-bounds=]: array subscript -1 is outside array bounds of ‘void[<unknown>]’
#   47 |         end_index = end_index <= nchars ? offsets[end_index] : offsets[-1];
#      |         ~~~^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmem.h:273:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by ‘g_malloc0_n’
#  273 |             __p = g_##func##_n (__n, __s);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
#   45|           long end_index = attr.end_index;
#   46|           if (end_index <= 0) end_index = 0;
#   47|->         end_index = end_index <= nchars ? offsets[end_index] : offsets[-1];
#   48|   
#   49|           Pango.Attribute pango_attr = null;

Error: COMPILER_WARNING (CWE-704): [#def233]
ibus-1.5.32/ui/gtk3/property.c:1057:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1055|   {
# 1056|   	static volatile gsize property_manager_type_id__once = 0;
# 1057|-> 	if (g_once_init_enter (&property_manager_type_id__once)) {
# 1058|   		GType property_manager_type_id;
# 1059|   		property_manager_type_id = property_manager_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def234]
ibus-1.5.32/ui/gtk3/property.c:1132:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1130|   {
# 1131|   	static volatile gsize iprop_item_type_id__once = 0;
# 1132|-> 	if (g_once_init_enter (&iprop_item_type_id__once)) {
# 1133|   		GType iprop_item_type_id;
# 1134|   		iprop_item_type_id = iprop_item_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def235]
ibus-1.5.32/ui/gtk3/property.c:1354:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1352|   {
# 1353|   	static volatile gsize prop_image_menu_item_type_id__once = 0;
# 1354|-> 	if (g_once_init_enter (&prop_image_menu_item_type_id__once)) {
# 1355|   		GType prop_image_menu_item_type_id;
# 1356|   		prop_image_menu_item_type_id = prop_image_menu_item_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def236]
ibus-1.5.32/ui/gtk3/property.c:1615:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1613|   {
# 1614|   	static volatile gsize prop_check_menu_item_type_id__once = 0;
# 1615|-> 	if (g_once_init_enter (&prop_check_menu_item_type_id__once)) {
# 1616|   		GType prop_check_menu_item_type_id;
# 1617|   		prop_check_menu_item_type_id = prop_check_menu_item_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def237]
ibus-1.5.32/ui/gtk3/property.c:1888:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 1886|   {
# 1887|   	static volatile gsize prop_radio_menu_item_type_id__once = 0;
# 1888|-> 	if (g_once_init_enter (&prop_radio_menu_item_type_id__once)) {
# 1889|   		GType prop_radio_menu_item_type_id;
# 1890|   		prop_radio_menu_item_type_id = prop_radio_menu_item_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def238]
ibus-1.5.32/ui/gtk3/property.c:2007:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2005|   {
# 2006|   	static volatile gsize prop_separator_menu_item_type_id__once = 0;
# 2007|-> 	if (g_once_init_enter (&prop_separator_menu_item_type_id__once)) {
# 2008|   		GType prop_separator_menu_item_type_id;
# 2009|   		prop_separator_menu_item_type_id = prop_separator_menu_item_get_type_once ();

Error: COMPILER_WARNING (CWE-843): [#def239]
ibus-1.5.32/ui/gtk3/property.vala: scope_hint: In function ‘property_manager_create_menu_items_internal’
ibus-1.5.32/ui/gtk3/property.vala:72:58: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type
#   72 |                             menuitem.set_submenu(submenu);
#      |                                                          ^      
#      |                                                          |
#      |                                                          GtkMenu * {aka struct _GtkMenu *}
/usr/include/gtk-3.0/gtk/gtkcheckmenuitem.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:72: included_from: Included from here.
ibus-1.5.32/ui/gtk3/property.c:30: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkmenuitem.h:121:69: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenu *’ {aka ‘struct _GtkMenu *’}
#  121 |                                                GtkWidget           *submenu);
#      |                                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
#   70|                           var  submenu = new Gtk.Menu();
#   71|                           if(create_menu_items_internal(prop.get_sub_props(), submenu) > 0)
#   72|->                             menuitem.set_submenu(submenu);
#   73|                       }
#   74|                       break;

Error: COMPILER_WARNING (CWE-843): [#def240]
ibus-1.5.32/ui/gtk3/property.vala:72:58: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type
#   70|                           var  submenu = new Gtk.Menu();
#   71|                           if(create_menu_items_internal(prop.get_sub_props(), submenu) > 0)
#   72|->                             menuitem.set_submenu(submenu);
#   73|                       }
#   74|                       break;

Error: COMPILER_WARNING (CWE-843): [#def241]
ibus-1.5.32/ui/gtk3/property.vala:85:49: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type
#   83|                   last_radio = null;
#   84|               if (item != null) {
#   85|->                 menu.append(item as Gtk.MenuItem);
#   86|                   item.property_activate.connect((k, s) => property_activate(k, s));
#   87|               }

Error: COMPILER_WARNING (CWE-843): [#def242]
ibus-1.5.32/ui/gtk3/property.vala:85:140: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type
#   85 |                 menu.append(item as Gtk.MenuItem);
/usr/include/gtk-3.0/gtk/gtkmenu.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtklabel.h:34: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkaccellabel.h:35: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’}
#   92 |                                         GtkWidget    *child);
#      |                                         ~~~~~~~~~~~~~~^~~~~
#   83|                   last_radio = null;
#   84|               if (item != null) {
#   85|->                 menu.append(item as Gtk.MenuItem);
#   86|                   item.property_activate.connect((k, s) => property_activate(k, s));
#   87|               }

Error: COMPILER_WARNING (CWE-704): [#def243]
ibus-1.5.32/ui/gtk3/propertypanel.c:601:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  599|   {
#  600|   	static volatile gsize panel_show_type_id__once = 0;
#  601|-> 	if (g_once_init_enter (&panel_show_type_id__once)) {
#  602|   		GType panel_show_type_id;
#  603|   		panel_show_type_id = panel_show_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def244]
ibus-1.5.32/ui/gtk3/propertypanel.c:2431:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2429|   property_panel_get_type (void)
# 2430|   {
# 2431|-> 	static volatile gsize property_panel_type_id__once = 0;
# 2432|   	if (g_once_init_enter (&property_panel_type_id__once)) {
# 2433|   		GType property_panel_type_id;

Error: COMPILER_WARNING (CWE-704): [#def245]
ibus-1.5.32/ui/gtk3/propertypanel.c:2479:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2477|   iprop_tool_item_get_type (void)
# 2478|   {
# 2479|-> 	static volatile gsize iprop_tool_item_type_id__once = 0;
# 2480|   	if (g_once_init_enter (&iprop_tool_item_type_id__once)) {
# 2481|   		GType iprop_tool_item_type_id;

Error: COMPILER_WARNING (CWE-704): [#def246]
ibus-1.5.32/ui/gtk3/propertypanel.c:3022:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 3020|   prop_menu_get_type (void)
# 3021|   {
# 3022|-> 	static volatile gsize prop_menu_type_id__once = 0;
# 3023|   	if (g_once_init_enter (&prop_menu_type_id__once)) {
# 3024|   		GType prop_menu_type_id;

Error: COMPILER_WARNING (CWE-704): [#def247]
ibus-1.5.32/ui/gtk3/propertypanel.c:3343:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 3341|   prop_tool_button_get_type (void)
# 3342|   {
# 3343|-> 	static volatile gsize prop_tool_button_type_id__once = 0;
# 3344|   	if (g_once_init_enter (&prop_tool_button_type_id__once)) {
# 3345|   		GType prop_tool_button_type_id;

Error: COMPILER_WARNING (CWE-704): [#def248]
ibus-1.5.32/ui/gtk3/propertypanel.c:3731:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 3729|   prop_toggle_tool_button_get_type (void)
# 3730|   {
# 3731|-> 	static volatile gsize prop_toggle_tool_button_type_id__once = 0;
# 3732|   	if (g_once_init_enter (&prop_toggle_tool_button_type_id__once)) {
# 3733|   		GType prop_toggle_tool_button_type_id;

Error: COMPILER_WARNING (CWE-704): [#def249]
ibus-1.5.32/ui/gtk3/propertypanel.c:3951:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 3949|   prop_menu_tool_button_get_type (void)
# 3950|   {
# 3951|-> 	static volatile gsize prop_menu_tool_button_type_id__once = 0;
# 3952|   	if (g_once_init_enter (&prop_menu_tool_button_type_id__once)) {
# 3953|   		GType prop_menu_tool_button_type_id;

Error: COMPILER_WARNING (CWE-704): [#def250]
ibus-1.5.32/ui/gtk3/propertypanel.c:4036:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 4034|   prop_separator_tool_item_get_type (void)
# 4035|   {
# 4036|-> 	static volatile gsize prop_separator_tool_item_type_id__once = 0;
# 4037|   	if (g_once_init_enter (&prop_separator_tool_item_type_id__once)) {
# 4038|   		GType prop_separator_tool_item_type_id;

Error: COMPILER_WARNING (CWE-843): [#def251]
ibus-1.5.32/ui/gtk3/propertypanel.vala: scope_hint: In function ‘prop_menu_create_items’
ibus-1.5.32/ui/gtk3/propertypanel.vala:571:57: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type
#  571 |                         menuitem.set_submenu(new PropMenu(prop));
#      |                                                         ^~~~~~~~~         
#      |                                                         |
#      |                                                         GtkMenu * {aka struct _GtkMenu *}
/usr/include/gtk-3.0/gtk/gtkcheckmenuitem.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:72: included_from: Included from here.
ibus-1.5.32/ui/gtk3/propertypanel.c:29: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkmenuitem.h:121:69: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenu *’ {aka ‘struct _GtkMenu *’}
#  121 |                                                GtkWidget           *submenu);
#      |                                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
#  569|                       {
#  570|                           var menuitem = new PropImageMenuItem(prop);
#  571|->                         menuitem.set_submenu(new PropMenu(prop));
#  572|                           item = menuitem;
#  573|                       }

Error: COMPILER_WARNING (CWE-843): [#def252]
ibus-1.5.32/ui/gtk3/propertypanel.vala:571:57: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type
#  569|                       {
#  570|                           var menuitem = new PropImageMenuItem(prop);
#  571|->                         menuitem.set_submenu(new PropMenu(prop));
#  572|                           item = menuitem;
#  573|                       }

Error: COMPILER_WARNING (CWE-843): [#def253]
ibus-1.5.32/ui/gtk3/propertypanel.vala:586:49: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type
#  584|                   last_radio = null;
#  585|               if (item != null) {
#  586|->                 append(item as Gtk.MenuItem);
#  587|                   item.property_activate.connect((w, k, s) =>
#  588|                                                  property_activate(k, s));

Error: COMPILER_WARNING (CWE-843): [#def254]
ibus-1.5.32/ui/gtk3/propertypanel.vala:586:140: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type
#  586 |                 append(item as Gtk.MenuItem);
/usr/include/gtk-3.0/gtk/gtkmenu.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtklabel.h:34: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkaccellabel.h:35: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:33: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtkmenushell.h:92:55: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkMenuItem *’ {aka ‘struct _GtkMenuItem *’}
#   92 |                                         GtkWidget    *child);
#      |                                         ~~~~~~~~~~~~~~^~~~~
#  584|                   last_radio = null;
#  585|               if (item != null) {
#  586|->                 append(item as Gtk.MenuItem);
#  587|                   item.property_activate.connect((w, k, s) =>
#  588|                                                  property_activate(k, s));

Error: COMPILER_WARNING (CWE-704): [#def255]
ibus-1.5.32/ui/gtk3/separator.c:158:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  156|   {
#  157|   	static volatile gsize hseparator_type_id__once = 0;
#  158|-> 	if (g_once_init_enter (&hseparator_type_id__once)) {
#  159|   		GType hseparator_type_id;
#  160|   		hseparator_type_id = hseparator_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def256]
ibus-1.5.32/ui/gtk3/separator.c:213:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  211|   {
#  212|   	static volatile gsize vseparator_type_id__once = 0;
#  213|-> 	if (g_once_init_enter (&vseparator_type_id__once)) {
#  214|   		GType vseparator_type_id;
#  215|   		vseparator_type_id = vseparator_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def257]
ibus-1.5.32/ui/gtk3/switcher.c:2913:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2911|   {
# 2912|   	static volatile gsize switcher_ibus_engine_button_type_id__once = 0;
# 2913|-> 	if (g_once_init_enter (&switcher_ibus_engine_button_type_id__once)) {
# 2914|   		GType switcher_ibus_engine_button_type_id;
# 2915|   		switcher_ibus_engine_button_type_id = switcher_ibus_engine_button_get_type_once ();

Error: COMPILER_WARNING (CWE-704): [#def258]
ibus-1.5.32/ui/gtk3/switcher.c:3079:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 3077|   {
# 3078|   	static volatile gsize switcher_type_id__once = 0;
# 3079|-> 	if (g_once_init_enter (&switcher_type_id__once)) {
# 3080|   		GType switcher_type_id;
# 3081|   		switcher_type_id = switcher_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def259]
ibus-1.5.32/ui/gtk3/switcher.vala:35:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/switcher.c:2563:1: enter_function: entry to ‘switcher_ibus_engine_button_construct’
ibus-1.5.32/ui/gtk3/switcher.vala:26:2: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/switcher.vala:35:12: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#   33|               var name = engine.get_name();
#   34|   
#   35|->             if (name.length < 4 || name[0:4] != "xkb:") {
#   36|                   IconWidget icon = new IconWidget(engine.get_icon(),
#   37|                                                    Gtk.IconSize.DIALOG);

Error: COMPILER_WARNING (CWE-704): [#def260]
ibus-1.5.32/ui/gtk3/switcher.vala: scope_hint: In function ‘switcher_ibus_engine_button_set_transname’
ibus-1.5.32/ui/gtk3/switcher.vala:63:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   63 |         public string transname { get; set; }
#      |            ^
#   61|           }
#   62|   
#   63|->         public string transname { get; set; }
#   64|   
#   65|           public override bool draw(Cairo.Context cr) {

Error: COMPILER_WARNING (CWE-704): [#def261]
ibus-1.5.32/ui/gtk3/switcher.vala:63:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   61|           }
#   62|   
#   63|->         public string transname { get; set; }
#   64|   
#   65|           public override bool draw(Cairo.Context cr) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
ibus-1.5.32/ui/gtk3/switcher.vala:503:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ibus-1.5.32/ui/gtk3/switcher.c:1778:1: enter_function: entry to ‘switcher_realize_window’
ibus-1.5.32/ui/gtk3/switcher.vala:498:11: call_function: inlined call to ‘_g_object_ref0’ from ‘switcher_realize_window’
ibus-1.5.32/ui/gtk3/switcher.vala:499:7: branch_false: ...to here
ibus-1.5.32/ui/gtk3/switcher.vala:499:5: branch_false: following ‘false’ branch...
ibus-1.5.32/ui/gtk3/switcher.vala:503:18: branch_false: ...to here
ibus-1.5.32/ui/gtk3/switcher.vala:503:18: danger: dereference of NULL ‘<unknown>’
#  501|               return; 
#  502|           }
#  503|->         Type instance_type = window.get_type();
#  504|           Type wayland_type = typeof(GdkWayland.Window);
#  505|           if (!instance_type.is_a(wayland_type)) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def263]
ibus-1.5.32/ui/gtk3/switcher.vala:630:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.32/ui/gtk3/switcher.c:2256:1: enter_function: entry to ‘switcher_get_xkb_language’
ibus-1.5.32/ui/gtk3/switcher.vala:619:2: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/switcher.vala:622:11: call_function: calling ‘string_slice’ from ‘switcher_get_xkb_language’
ibus-1.5.32/ui/gtk3/switcher.vala:622:11: return_function: returning to ‘switcher_get_xkb_language’ from ‘string_slice’
ibus-1.5.32/ui/gtk3/switcher.vala:622:2: branch_true: following ‘true’ branch...
ibus-1.5.32/ui/gtk3/switcher.vala:622:2: branch_true: ...to here
ibus-1.5.32/ui/gtk3/switcher.vala:630:12: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  628|   
#  629|           language = engine.get_language();
#  630|->         int length = language.length;
#  631|   
#  632|           /* Maybe invalid layout */

Error: COMPILER_WARNING (CWE-704): [#def264]
ibus-1.5.32/ui/gtk3/xkblayout.c:2704:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
# 2702|   {
# 2703|   	static volatile gsize xkb_layout_type_id__once = 0;
# 2704|-> 	if (g_once_init_enter (&xkb_layout_type_id__once)) {
# 2705|   		GType xkb_layout_type_id;
# 2706|   		xkb_layout_type_id = xkb_layout_get_type_once ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
ibus-1.5.32/util/IMdkit/FrameMgr.c:873:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fi'
ibus-1.5.32/util/IMdkit/FrameMgr.c:2409:12: enter_function: entry to '_FrameInstGetItemSize'
ibus-1.5.32/util/IMdkit/FrameMgr.c:2455:20: branch_true: following 'true' branch (when 'number != 0')...
ibus-1.5.32/util/IMdkit/FrameMgr.c:2457:17: branch_true: ...to here
ibus-1.5.32/util/IMdkit/FrameMgr.c:2457:17: branch_true: following 'true' branch (when 'i >= 0')...
ibus-1.5.32/util/IMdkit/FrameMgr.c:2458:21: branch_true: ...to here
ibus-1.5.32/util/IMdkit/FrameMgr.c:2459:25: call_function: calling '_FrameInstGetItemSize' from '_FrameInstGetItemSize'
#  871|       fi = (FrameInst) Xmalloc (sizeof (FrameInstRec));
#  872|   
#  873|->     fi->template = frame;
#  874|       fi->cur_no = 0;
#  875|       ChainMgrInit (&fi->cm);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
ibus-1.5.32/util/IMdkit/FrameMgr.c:2221:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'd'
ibus-1.5.32/util/IMdkit/FrameMgr.c:2409:12: enter_function: entry to '_FrameInstGetItemSize'
ibus-1.5.32/util/IMdkit/FrameMgr.c:2455:20: branch_true: following 'true' branch (when 'number != 0')...
ibus-1.5.32/util/IMdkit/FrameMgr.c:2457:17: branch_true: ...to here
ibus-1.5.32/util/IMdkit/FrameMgr.c:2457:17: branch_true: following 'true' branch (when 'i >= 0')...
ibus-1.5.32/util/IMdkit/FrameMgr.c:2458:21: branch_true: ...to here
ibus-1.5.32/util/IMdkit/FrameMgr.c:2459:25: call_function: calling '_FrameInstGetItemSize' from '_FrameInstGetItemSize'
# 2219|               }
# 2220|               /*endif*/
# 2221|->             if ((num = FrameInstGetTotalSize (d->fi)) == NO_VALUE)
# 2222|                   return NO_VALUE;
# 2223|               /*endif*/

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
ibus-1.5.32/util/IMdkit/i18nMethod.c:255:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ibus-1.5.32/util/IMdkit/i18nMethod.c:816:14: enter_function: entry to 'xi18n_setIMValues'
ibus-1.5.32/util/IMdkit/i18nMethod.c:821:16: call_function: calling 'ParseArgs' from 'xi18n_setIMValues'
#  253|                   address->input_styles.count_styles =
#  254|                       ((XIMStyles*)p->value)->count_styles;
#  255|->                 address->input_styles.supported_styles =
#  256|                       (XIMStyle *) malloc (sizeof (XIMStyle)*address->input_styles.count_styles);
#  257|                   if (address->input_styles.supported_styles == (XIMStyle *) NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
ibus-1.5.32/util/IMdkit/i18nMethod.c:277:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ibus-1.5.32/util/IMdkit/i18nMethod.c:816:14: enter_function: entry to 'xi18n_setIMValues'
ibus-1.5.32/util/IMdkit/i18nMethod.c:821:16: call_function: calling 'ParseArgs' from 'xi18n_setIMValues'
#  275|                   address->on_keys.count_keys =
#  276|                       ((XIMTriggerKeys *) p->value)->count_keys;
#  277|->                 address->on_keys.keylist =
#  278|                       (XIMTriggerKey *) malloc (sizeof (XIMTriggerKey)*address->on_keys.count_keys);
#  279|                   if (address->on_keys.keylist == (XIMTriggerKey *) NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
ibus-1.5.32/util/IMdkit/i18nMethod.c:294:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ibus-1.5.32/util/IMdkit/i18nMethod.c:816:14: enter_function: entry to 'xi18n_setIMValues'
ibus-1.5.32/util/IMdkit/i18nMethod.c:821:16: call_function: calling 'ParseArgs' from 'xi18n_setIMValues'
#  292|                   address->off_keys.count_keys =
#  293|                       ((XIMTriggerKeys *) p->value)->count_keys;
#  294|->                 address->off_keys.keylist =
#  295|                       (XIMTriggerKey *) malloc (sizeof (XIMTriggerKey)*address->off_keys.count_keys);
#  296|                   if (address->off_keys.keylist == (XIMTriggerKey *) NULL)

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-115.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-nameibus-1.5.32-1.fc43
store-results-to/tmp/tmp7bdngcqw/ibus-1.5.32-1.fc43.tar.xz
time-created2025-04-25 13:12:04
time-finished2025-04-25 13:19:26
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp7bdngcqw/ibus-1.5.32-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp7bdngcqw/ibus-1.5.32-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9