ibus-1.5.31-1.fc42

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.31-build/ibus-1.5.31/bindings/vala/candidatearea.c: scope_hint: In function 'candidate_area_set_candidates'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/candidatearea.c:567:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'candidates'
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/candidatearea.c:516:9: note: in expansion of macro 'g_return_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/candidatearea.c:115:36: note: in expansion of macro 'G_LIKELY'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/candidatearea.c:525:9: note: in expansion of macro '_vala_assert'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/candidatearea.c: scope_hint: In function 'candidate_area_set_candidates'
#  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.31-build/ibus-1.5.31/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_update_category_to_emojis_dict'
ibus-1.5.31-build/ibus-1.5.31/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): [#def31]
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_ebox_row_set_text'
ibus-1.5.31-build/ibus-1.5.31/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: GCC_ANALYZER_WARNING (CWE-688): [#def32]
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_ewhite_label_real_get_preferred_width'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c:8584:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c:8579:18: note: in expansion of macro 'g_strdup'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_ewhite_label_real_get_preferred_width'
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c:1623:9: note: in expansion of macro 'g_return_val_if_fail'
<built-in>: note: 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): [#def33]
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_ewhite_label_real_get_preferred_height'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c:8696:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c:8691:18: note: in expansion of macro 'g_strdup'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c: scope_hint: In function 'ibus_emojier_ewhite_label_real_get_preferred_height'
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY'
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/emojier.c:1623:9: note: in expansion of macro 'g_return_val_if_fail'
<built-in>: note: 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: [#def34]
ibus-1.5.31-build/ibus-1.5.31/bindings/vala/pango.c: scope_hint: In function 'get_pango_attr_list_from_ibus_text'
ibus-1.5.31-build/ibus-1.5.31/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.31-build/ibus-1.5.31/src/ibusshare.h:40: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/src/ibus.h:30: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/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);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmem.h:271:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by 'g_malloc0'
#  271 |             __p = g_##func (__n * __s);                         \
#      |                   ^~~~~~~~~~~~~~~~~~~~
#  183|   			_tmp19_ = offsets;
#  184|   			_tmp19__length1 = offsets_length1;
#  185|-> 			_tmp20_ = _tmp19_[-1];
#  186|   			_tmp16_ = _tmp20_;
#  187|   		}

Error: COMPILER_WARNING: [#def35]
ibus-1.5.31-build/ibus-1.5.31/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);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmem.h:271:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by 'g_malloc0'
#  271 |             __p = g_##func (__n * __s);                         \
#      |                   ^~~~~~~~~~~~~~~~~~~~
#  206|   			_tmp25_ = offsets;
#  207|   			_tmp25__length1 = offsets_length1;
#  208|-> 			_tmp26_ = _tmp25_[-1];
#  209|   			_tmp22_ = _tmp26_;
#  210|   		}

Error: COMPILER_WARNING (CWE-563): [#def36]
ibus-1.5.31-build/ibus-1.5.31/client/gtk2/ibusimcontext.c: scope_hint: In function '_set_cursor_location_internal'
ibus-1.5.31-build/ibus-1.5.31/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: GCC_ANALYZER_WARNING (CWE-476): [#def37]
ibus-1.5.31-build/ibus-1.5.31/conf/dconf/config.c: scope_hint: In function ‘_from_gsettings_name’
ibus-1.5.31-build/ibus-1.5.31/conf/dconf/config.c:120:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/src/ibusshare.h:40: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/src/ibus.h:30: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/conf/dconf/config.c:25: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/conf/dconf/config.c:119:21: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/conf/dconf/config.c: scope_hint: In function ‘_from_gsettings_name’
#  118|   {
#  119|       gchar *retval = g_strdup (name), *p;
#  120|->     for (p = retval; *p != '\0'; p++)
#  121|           if (*p == '-')
#  122|               *p = '_';

Error: COMPILER_WARNING (CWE-457): [#def38]
ibus-1.5.31-build/ibus-1.5.31/src/ibuscomposetable.c:1501:21: warning[-Wmaybe-uninitialized]: 'rawdata' may be used uninitialized
# 1501 |     retval->rawdata = rawdata;
#      |     ~~~~~~~~~~~~~~~~^~~~~~~~~
ibus-1.5.31-build/ibus-1.5.31/src/ibuscomposetable.c: scope_hint: In function 'ibus_compose_table_new_with_file'
ibus-1.5.31-build/ibus-1.5.31/src/ibuscomposetable.c:1365:14: note: 'rawdata' was declared here
# 1365 |     gpointer rawdata;
#      |              ^~~~~~~
# 1499|       retval->n_seqs = s_size_16bit;
# 1500|       retval->id = hash;
# 1501|->     retval->rawdata = rawdata;
# 1502|       if (s_size_total > s_size_16bit) {
# 1503|           retval->priv = g_new0 (IBusComposeTablePrivate, 1);

Error: COMPILER_WARNING (CWE-457): [#def39]
ibus-1.5.31-build/ibus-1.5.31/src/ibuscomposetable.c:1501:21: warning[-Wmaybe-uninitialized]: ‘rawdata’ may be used uninitialized
# 1501 |     retval->rawdata = rawdata;
#      |     ~~~~~~~~~~~~~~~~^~~~~~~~~
ibus-1.5.31-build/ibus-1.5.31/src/ibuscomposetable.c: scope_hint: In function ‘ibus_compose_table_new_with_file’
ibus-1.5.31-build/ibus-1.5.31/src/ibuscomposetable.c:1365:14: note: ‘rawdata’ was declared here
# 1365 |     gpointer rawdata;
#      |              ^~~~~~~
# 1499|       retval->n_seqs = s_size_16bit;
# 1500|       retval->id = hash;
# 1501|->     retval->rawdata = rawdata;
# 1502|       if (s_size_total > s_size_16bit) {
# 1503|           retval->priv = g_new0 (IBusComposeTablePrivate, 1);

Error: CPPCHECK_WARNING (CWE-476): [#def40]
ibus-1.5.31-build/ibus-1.5.31/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): [#def41]
ibus-1.5.31-build/ibus-1.5.31/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): [#def42]
ibus-1.5.31-build/ibus-1.5.31/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-688): [#def43]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_parse_data’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1405:34: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1504:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1505:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1505:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1528:13: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1381:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1382:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1382:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_parse_data’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_parse_data’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:936:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:955:17: note: in expansion of macro ‘g_return_val_if_fail’
<built-in>: note: 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): [#def44]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1436:43: warning[-Wanalyzer-null-argument]: use of NULL ‘sub’ where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1504:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1505:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1505:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1528:13: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1381:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1382:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1382:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_parse_data’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:936:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:955:17: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:955:17: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:960:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:960:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:936:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:955:17: note: in expansion of macro ‘g_return_val_if_fail’
<built-in>: note: 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): [#def45]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_keys’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1651:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1631:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1632:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1632:9: note: in expansion of macro ‘g_return_val_if_fail’
/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.
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1633:18: note: in expansion of macro ‘g_new0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:794:18: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_keys’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:313:9: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_keys’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1639:13: note: in expansion of macro ‘G_UNLIKELY’
# 1649|   		}
# 1650|   	}
# 1651|-> 	_tmp2_ = group_node->data;
# 1652|   	_tmp3_ = (*((KRcFileGroup*) _tmp2_)).key_value_pairs;
# 1653|   	tmp = _tmp3_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_has_key’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1731:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1713:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1714:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1714:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1715:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1715:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:794:18: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_has_key’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:313:9: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_has_key’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1718:13: note: in expansion of macro ‘G_UNLIKELY’
# 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): [#def47]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_group’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1798:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1782:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1783:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1783:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:794:18: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_group’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:313:9: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_group’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1786:13: note: in expansion of macro ‘G_UNLIKELY’
# 1796|   		}
# 1797|   	}
# 1798|-> 	_tmp3_ = group_node->data;
# 1799|   	_tmp4_ = (*((KRcFileGroup*) _tmp3_)).key_value_pairs;
# 1800|   	tmp = _tmp4_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_key’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1857:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1839:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1840:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1840:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1841:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1841:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:794:18: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_key’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:313:9: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_key’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1844:13: note: in expansion of macro ‘G_UNLIKELY’
# 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): [#def49]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1879:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1839:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1840:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1840:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1841:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1841:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:794:18: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_key’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:313:9: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_key’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1844:13: note: in expansion of macro ‘G_UNLIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_remove_key’
# 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): [#def50]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_to_data’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1964:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:1926:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_to_data’
# 1962|   				group = _tmp9_;
# 1963|   				_tmp10_ = group;
# 1964|-> 				_tmp11_ = (*_tmp10_).name;
# 1965|   				if (_tmp11_ != NULL) {
# 1966|   					GString* _tmp12_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_value’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2125:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2109:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2110:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2110:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2111:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2111:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:794:18: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_value’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:313:9: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_value’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2114:13: note: in expansion of macro ‘G_UNLIKELY’
# 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): [#def52]
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2147:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2109:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2110:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2110:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2111:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2111:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:792:9: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:794:18: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_value’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:313:9: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_value’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c:2114:13: note: in expansion of macro ‘G_UNLIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/krcfile.c: scope_hint: In function ‘krc_file_get_value’
# 2145|   		pair = _tmp7_;
# 2146|   		_tmp8_ = pair;
# 2147|-> 		_tmp9_ = (*_tmp8_).key;
# 2148|   		if (g_strcmp0 (_tmp9_, key) == 0) {
# 2149|   			KRcFileKeyValuePair* _tmp10_;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
ibus-1.5.31-build/ibus-1.5.31/tools/main.c: scope_hint: In function ‘list_engine’
ibus-1.5.31-build/ibus-1.5.31/tools/main.c:1650:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/tools/main.c:1476:21: note: in expansion of macro ‘G_UNLIKELY’
ibus-1.5.31-build/ibus-1.5.31/tools/main.c: scope_hint: In function ‘list_engine’
# 1648|   				_g_free0 (_tmp47_);
# 1649|   				_tmp48_ = list;
# 1650|-> 				_tmp49_ = _tmp48_->data;
# 1651|   				_tmp49__length1 = _tmp48_->data_length1;
# 1652|   				{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
ibus-1.5.31-build/ibus-1.5.31/tools/main.c: scope_hint: In function ‘_vala_main’
ibus-1.5.31-build/ibus-1.5.31/tools/main.c:4234:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 4232|   	_tmp6_ = new_argv;
# 4233|   	_tmp6__length1 = new_argv_length1;
# 4234|-> 	_tmp7_ = _tmp6_[0];
# 4235|   	_tmp8_ = g_strdup_printf ("%s %s", _tmp5_, _tmp7_);
# 4236|   	_g_free0 (_tmp4_[0]);

Error: COMPILER_WARNING: [#def55]
ibus-1.5.31-build/ibus-1.5.31/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.31-build/ibus-1.5.31/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: [#def56]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/application.c:47:9: warning: ‘G_USEC_PER_SEC’ redefined
/usr/include/glib-2.0/glib.h:92: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/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
#   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: GCC_ANALYZER_WARNING (CWE-476): [#def57]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatearea.vala: scope_hint: In function ‘candidate_area_set_candidates’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatearea.vala:124:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘candidates’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatearea.vala:112:2: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatearea.c:115:36: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatearea.vala:119:2: note: in expansion of macro ‘_vala_assert’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatearea.vala: scope_hint: In function ‘candidate_area_set_candidates’
#  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: GCC_ANALYZER_WARNING (CWE-688): [#def58]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatepanel.vala: scope_hint: In function ‘candidate_panel_set_preedit_text’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatepanel.vala:167:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatepanel.vala:163:2: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatepanel.vala:165:12: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/candidatepanel.vala: scope_hint: In function ‘candidate_panel_set_preedit_text’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  165|               var str = text.get_text();
#  166|   
#  167|->             if (str.length > 0) {
#  168|                   m_preedit_label.set_text(str);
#  169|                   m_preedit_label.show();

Error: COMPILER_WARNING (CWE-704): [#def59]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_ebox_row_set_text’
ibus-1.5.31-build/ibus-1.5.31/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): [#def60]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_ewhite_label_real_get_preferred_width’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala:109:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala:107:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_ewhite_label_real_get_preferred_width’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1313:2: note: in expansion of macro ‘g_return_val_if_fail’
<built-in>: note: 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): [#def61]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_ewhite_label_real_get_preferred_height’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala:137:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala:135:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_ewhite_label_real_get_preferred_height’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1313:2: note: in expansion of macro ‘g_return_val_if_fail’
<built-in>: note: 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): [#def62]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojier.vala: scope_hint: In function ‘ibus_emojier_update_category_to_emojis_dict’
ibus-1.5.31-build/ibus-1.5.31/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-843): [#def63]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojierapp.vala: scope_hint: In function ‘emoji_application_save_selected_string’
ibus-1.5.31-build/ibus-1.5.31/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.31-build/ibus-1.5.31/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): [#def64]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/emojierapp.vala: scope_hint: In function ‘_emoji_application_command_line’
ibus-1.5.31-build/ibus-1.5.31/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): [#def65]
ibus-1.5.31-build/ibus-1.5.31/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-477): [#def66]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/extension.vala: scope_hint: In function ‘extension_gtk_construct’
ibus-1.5.31-build/ibus-1.5.31/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.31-build/ibus-1.5.31/ui/gtk3/extension.c:27: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:1545:3: note: declared here
# 1545 |   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-704): [#def67]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_id’
ibus-1.5.31-build/ibus-1.5.31/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): [#def68]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_category_s’
ibus-1.5.31-build/ibus-1.5.31/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): [#def69]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_status_s’
ibus-1.5.31-build/ibus-1.5.31/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): [#def70]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_icon_name’
ibus-1.5.31-build/ibus-1.5.31/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): [#def71]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_icon_desc’
ibus-1.5.31-build/ibus-1.5.31/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): [#def72]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_attention_icon_name’
ibus-1.5.31-build/ibus-1.5.31/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): [#def73]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_attention_icon_desc’
ibus-1.5.31-build/ibus-1.5.31/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): [#def74]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_title’
ibus-1.5.31-build/ibus-1.5.31/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): [#def75]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_icon_theme_path’
ibus-1.5.31-build/ibus-1.5.31/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): [#def76]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_label_s’
ibus-1.5.31-build/ibus-1.5.31/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): [#def77]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_label_guide_s’
ibus-1.5.31-build/ibus-1.5.31/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-697): [#def78]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_construct’
ibus-1.5.31-build/ibus-1.5.31/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.31-build/ibus-1.5.31/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): [#def79]
ibus-1.5.31-build/ibus-1.5.31/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.31-build/ibus-1.5.31/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): [#def80]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala: scope_hint: In function ‘indicator_set_cairo_image_surface_full’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/indicator.vala:550:17: warning[-Woverflow]: overflow in conversion from ‘long unsigned int’ to ‘gint’ {aka ‘int’} changes value from ‘18446744073709551615’ to ‘-1’
#  550 |         unowned uint8[] data = (uint8[]) image.get_data();
#      |                 ^
#  548|           int height = image.get_height();
#  549|           int stride = image.get_stride();
#  550|->         unowned uint8[] data = (uint8[]) image.get_data();
#  551|           data.length = stride * height;
#  552|           GLib.Bytes bytes = new GLib.Bytes(data);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala: scope_hint: In function ‘keybinding_manager_event_handler’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala:202:8: warning[-Wanalyzer-jump-through-null]: jump through null pointer
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala:185:2: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala:51:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala:52:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala:52:2: note: in expansion of macro ‘g_return_val_if_fail’
#  200|                           modifiers != binding.modifiers)
#  201|                           continue;
#  202|->                     binding.handler(event);
#  203|                       return;
#  204|                   }

Error: COMPILER_WARNING (CWE-563): [#def82]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala: scope_hint: In function ‘_vala_XIGrabModifiers_array_free’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala:259:6: warning[-Wunused-value]: statement with no effect
#  259 |         int retval = XI.grab_keycode (xdisplay,
#      |      ^  ~~~~~~~
#  257|           XI.set_mask(evmask.mask, XI.EventType.KeyRelease);
#  258|   
#  259|->         int retval = XI.grab_keycode (xdisplay,
#  260|                                         XI.AllMasterDevices,
#  261|                                         keycode,

Error: COMPILER_WARNING (CWE-563): [#def83]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala: scope_hint: In function ‘keybinding_manager_grab_keycode’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/keybindingmanager.vala:269:4: warning[-Wunused-value]: statement with no effect
#  269 |         return retval == 0;
#      |    ^    ~~~
#  267|                                         get_grab_modifiers(modifiers));
#  268|               
#  269|->         return retval == 0;
#  270|       }
#  271|   

Error: COMPILER_WARNING (CWE-477): [#def84]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_init_status_icon’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:387:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_new’ is deprecated
#  387 |         m_status_icon = new Gtk.StatusIcon();
#      |  ^     
/usr/include/gtk-3.0/gtk/gtk.h:275: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/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);
#      |                       ^~~~~~~~~~~~~~~~~~~
#  385|   
#  386|       private void init_status_icon() {
#  387|->         m_status_icon = new Gtk.StatusIcon();
#  388|           m_status_icon.set_name("ibus-ui-gtk");
#  389|           m_status_icon.set_title(_("IBus Panel"));

Error: COMPILER_WARNING (CWE-477): [#def85]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:388:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_name’ is deprecated
#  388 |         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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
#  386|       private void init_status_icon() {
#  387|           m_status_icon = new Gtk.StatusIcon();
#  388|->         m_status_icon.set_name("ibus-ui-gtk");
#  389|           m_status_icon.set_title(_("IBus Panel"));
#  390|   

Error: COMPILER_WARNING (CWE-477): [#def86]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:389:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_title’ is deprecated
#  389 |         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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
#  387|           m_status_icon = new Gtk.StatusIcon();
#  388|           m_status_icon.set_name("ibus-ui-gtk");
#  389|->         m_status_icon.set_title(_("IBus Panel"));
#  390|   
#  391|           // Gdk.Window.get_width() is needed for the menu position

Error: COMPILER_WARNING (CWE-477): [#def87]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:392:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_size’ is deprecated
#  392 |         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);
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
#  390|   
#  391|           // Gdk.Window.get_width() is needed for the menu position
#  392|->         if (m_status_icon.get_size() > 0)
#  393|               init_status_icon_menu();
#  394|           else

Error: COMPILER_WARNING (CWE-477): [#def88]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_init_status_icon_menu’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:402:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
#  402 |         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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  400|           Gdk.Window? window = null;
#  401|           Gtk.MenuPositionFunc? func = null;
#  402|->         m_status_icon.set_from_icon_name("ibus-keyboard");
#  403|           var display = BindingCommon.get_xdisplay();
#  404|           if (display == null) {

Error: COMPILER_WARNING (CWE-477): [#def89]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:408:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_x11_window_id’ is deprecated
#  408 |         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);
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  406|               return;
#  407|           }
#  408|->         window = Gdk.X11.Window.lookup_for_display(
#  409|                   display,
#  410|                   m_status_icon.get_x11_window_id()) as Gdk.Window;

Error: COMPILER_WARNING (CWE-477): [#def90]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:428:2: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_get_geometry’ is deprecated
#  428 |         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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  426|           }
#  427|           Gtk.Orientation orient;
#  428|->         m_status_icon.get_geometry(null, out area, out orient);
#  429|           int win_x = 0;
#  430|           int win_y = 0;

Error: COMPILER_WARNING (CWE-843): [#def91]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_init_engines_order’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:646:51: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
#  646 |         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.31-build/ibus-1.5.31/src/ibusproxy.h:46: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/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);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
#  644|               names += engine.get_name();
#  645|   
#  646|->         m_settings_general.set_strv("preload-engines", names);
#  647|       }
#  648|   

Error: COMPILER_WARNING (CWE-477): [#def92]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_set_show_icon_on_systray’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:691:3: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_visible’ is deprecated
#  691 |             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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  689|   
#  690|               // Always update the icon status immediately.
#  691|->             m_status_icon.set_visible(
#  692|                       m_settings_panel.get_boolean("show-icon-on-systray"));
#  693|           }

Error: COMPILER_WARNING (CWE-843): [#def93]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_set_language_from_engine’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1033:30: warning[-Wincompatible-pointer-types]: passing argument 1 of ‘pango_attribute_destroy’ from incompatible pointer type
# 1033 |             m_candidate_panel.set_language(new Pango.AttrLanguage(
#      |                              ^~~~~~
#      |                              |
#      |                              PangoAttrLanguage * {aka struct _PangoAttrLanguage *}
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.c:207:97: note: in definition of macro ‘_pango_attribute_destroy0’
#  207 | #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);
#      |                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
# 1031|       private void set_language_from_engine(IBus.EngineDesc engine) {
# 1032|           if (m_use_engine_lang) {
# 1033|->             m_candidate_panel.set_language(new Pango.AttrLanguage(
# 1034|                       Pango.Language.from_string(engine.get_language())));
# 1035|           } else {

Error: COMPILER_WARNING (CWE-843): [#def94]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1036:30: warning[-Wincompatible-pointer-types]: passing argument 1 of ‘pango_attribute_destroy’ from incompatible pointer type
# 1036 |             m_candidate_panel.set_language(new Pango.AttrLanguage(
#      |                              ^~~~~~
#      |                              |
#      |                              PangoAttrLanguage * {aka struct _PangoAttrLanguage *}
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.c:207:97: note: in definition of macro ‘_pango_attribute_destroy0’
#  207 | #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);
#      |                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
# 1034|                       Pango.Language.from_string(engine.get_language())));
# 1035|           } else {
# 1036|->             m_candidate_panel.set_language(new Pango.AttrLanguage(
# 1037|                       Pango.Language.from_string(null)));
# 1038|           }

Error: COMPILER_WARNING (CWE-843): [#def95]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘__lambda62_’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1213:42: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_preload_engines_async’ from incompatible pointer type
# 1213 |                             m_bus.preload_engines_async.begin(names,
#      |                                          ^~~~~~
#      |                                          |
#      |                                          gchar ** {aka char **}
ibus-1.5.31-build/ibus-1.5.31/src/ibus.h:45: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/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,
#      |                                                         ~^~~~~
# 1211|                               if (!m_bus.is_connected())
# 1212|                                   return false;
# 1213|->                             m_bus.preload_engines_async.begin(names,
# 1214|                                                                 -1,
# 1215|                                                                 null);

Error: CPPCHECK_WARNING (CWE-476): [#def96]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1229: warning[nullPointer]: Possible null pointer dereference: name_collection
# 1227|           string[] names = {};
# 1228|   
# 1229|->         foreach (var name in order_names) {
# 1230|               if (name in engine_names)
# 1231|                   names += name;

Error: COMPILER_WARNING (CWE-843): [#def97]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_update_engines’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1240:62: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_get_engines_by_names’ from incompatible pointer type
# 1240 |         var engines = m_bus.get_engines_by_names(names);
#      |                                                              ^      
#      |                                                              |
#      |                                                              gchar ** {aka char **}
ibus-1.5.31-build/ibus-1.5.31/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);
#      |                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1238|           }
# 1239|   
# 1240|->         var engines = m_bus.get_engines_by_names(names);
# 1241|   
# 1242|           /* Fedora internal patch could save engines not in simple.xml

Error: COMPILER_WARNING (CWE-843): [#def98]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1249:53: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
# 1249 |                 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);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
# 1247|               if (engines.length == 0) {
# 1248|                   string[] fallback_names = {"xkb:us::eng"};
# 1249|->                 m_settings_general.set_strv("preload-engines", fallback_names);
# 1250|                   engines = m_bus.get_engines_by_names(fallback_names);
# 1251|                   message1 = _("Your configured input method %s does not exist " +

Error: COMPILER_WARNING (CWE-843): [#def99]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1250:64: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘ibus_bus_get_engines_by_names’ from incompatible pointer type
# 1250 |                 engines = m_bus.get_engines_by_names(fallback_names);
#      |                                                                ^~~~~~ 
#      |                                                                |
#      |                                                                gchar ** {aka char **}
ibus-1.5.31-build/ibus-1.5.31/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);
#      |                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1248|                   string[] fallback_names = {"xkb:us::eng"};
# 1249|                   m_settings_general.set_strv("preload-engines", fallback_names);
# 1250|->                 engines = m_bus.get_engines_by_names(fallback_names);
# 1251|                   message1 = _("Your configured input method %s does not exist " +
# 1252|                                "in IBus input methods so \"US\" layout was " +

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

Error: COMPILER_WARNING (CWE-843): [#def101]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_show_about_dialog’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1419:42: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_about_dialog_set_authors’ from incompatible pointer type
# 1419 |             m_about_dialog.set_authors({"Peng Huang <shawn.p.huang@gmail.com>"});
#      |                                          ^~~~~~~
#      |                                          |
#      |                                          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);
#      |                                                                 ~~~~~~~~~~~~~~~~~^~~~~~~
# 1417|               m_about_dialog.set_comments(_("IBus is an intelligent input bus for Linux/Unix."));
# 1418|               m_about_dialog.set_website("https://github.com/ibus/ibus/wiki");
# 1419|->             m_about_dialog.set_authors({"Peng Huang <shawn.p.huang@gmail.com>"});
# 1420|               m_about_dialog.set_documenters({"Peng Huang <shawn.p.huang@gmail.com>"});
# 1421|               m_about_dialog.set_translator_credits(_("translator-credits"));

Error: COMPILER_WARNING (CWE-843): [#def102]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1420:46: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_about_dialog_set_documenters’ from incompatible pointer type
# 1420 |             m_about_dialog.set_documenters({"Peng Huang <shawn.p.huang@gmail.com>"});
#      |                                              ^~~~~~~
#      |                                              |
#      |                                              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);
#      |                                                                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
# 1418|               m_about_dialog.set_website("https://github.com/ibus/ibus/wiki");
# 1419|               m_about_dialog.set_authors({"Peng Huang <shawn.p.huang@gmail.com>"});
# 1420|->             m_about_dialog.set_documenters({"Peng Huang <shawn.p.huang@gmail.com>"});
# 1421|               m_about_dialog.set_translator_credits(_("translator-credits"));
# 1422|               m_about_dialog.set_logo_icon_name("ibus");

Error: COMPILER_WARNING (CWE-477): [#def103]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘__lambda106_’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1636:3: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_pixbuf’ is deprecated
# 1636 |                 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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1634|               if (m_icon_type == IconType.STATUS_ICON) {
# 1635|                   Gdk.Pixbuf pixbuf = create_icon_pixbuf_with_string(symbol);
# 1636|->                 m_status_icon.set_from_pixbuf(pixbuf);
# 1637|               }
# 1638|   #if INDICATOR

Error: COMPILER_WARNING (CWE-477): [#def104]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_real_state_changed’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1864:4: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_file’ is deprecated
# 1864 |                 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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1862|           if (icon_name[0] == '/') {
# 1863|               if (m_icon_type == IconType.STATUS_ICON)
# 1864|->                 m_status_icon.set_from_file(icon_name);
# 1865|   #if INDICATOR
# 1866|               else if (m_icon_type == IconType.INDICATOR)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def105]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1874:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1873:14: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_real_state_changed’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1872|               if (engine != null) {
# 1873|                   var name = engine.get_name();
# 1874|->                 if (name.length >= 4 && name[0:4] == "xkb:")
# 1875|                       language = m_switcher.get_xkb_language(engine);
# 1876|               }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def106]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_real_state_changed’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1874:14: warning[-Wanalyzer-null-argument]: use of NULL ‘icon_name’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1856:12: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_real_state_changed’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.c:181:39: note: in definition of macro ‘_g_free0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1283:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
glib-2.0.vapi:1283:2: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1873:14: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala: scope_hint: In function ‘panel_real_state_changed’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1872|               if (engine != null) {
# 1873|                   var name = engine.get_name();
# 1874|->                 if (name.length >= 4 && name[0:4] == "xkb:")
# 1875|                       language = m_switcher.get_xkb_language(engine);
# 1876|               }

Error: COMPILER_WARNING (CWE-477): [#def107]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1882:5: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_pixbuf’ is deprecated
# 1882 |                     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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1880|                       Gdk.Pixbuf pixbuf =
# 1881|                               create_icon_pixbuf_with_string(language);
# 1882|->                     m_status_icon.set_from_pixbuf(pixbuf);
# 1883|                   }
# 1884|   #if INDICATOR

Error: COMPILER_WARNING (CWE-477): [#def108]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1896:6: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
# 1896 |                         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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1894|                   if (theme.lookup_icon(icon_name, 48, 0) != null) {
# 1895|                       if (m_icon_type == IconType.STATUS_ICON)
# 1896|->                         m_status_icon.set_from_icon_name(icon_name);
# 1897|   #if INDICATOR
# 1898|                       else if (m_icon_type == IconType.INDICATOR)

Error: COMPILER_WARNING (CWE-477): [#def109]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1903:6: warning[-Wdeprecated-declarations]: ‘gtk_status_icon_set_from_icon_name’ is deprecated
# 1903 |                         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,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1901|                   } else {
# 1902|                       if (m_icon_type == IconType.STATUS_ICON)
# 1903|->                         m_status_icon.set_from_icon_name("ibus-engine");
# 1904|   #if INDICATOR
# 1905|                       else if (m_icon_type == IconType.INDICATOR)

Error: COMPILER_WARNING (CWE-843): [#def110]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panel.vala:1938:49: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type
# 1938 |         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);
#      |                                                                          ~~~~~~~~~~~~~~~~~~~~^~~~~
# 1936|               names += desc.get_name();
# 1937|           }
# 1938|->         m_settings_general.set_strv("engines-order", names);
# 1939|       }
# 1940|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def111]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘preedit_backspace’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:94:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:92:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:93:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘preedit_backspace’
<built-in>: note: 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): [#def112]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:106:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:92:2: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:99:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘preedit_backspace’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:99:2: note: in expansion of macro ‘_g_free0’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1333:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
glib-2.0.vapi:1333:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
<built-in>: note: 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): [#def113]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘preedit_get_extension_text’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:114:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:787:2: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:181:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:112:2: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:113:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘preedit_get_extension_text’
<built-in>: note: 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): [#def114]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘preedit_get_commit_text’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:193:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:600:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:191:2: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:192:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘preedit_get_commit_text’
<built-in>: note: 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): [#def115]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘panel_binding_commit_text_update_favorites’
ibus-1.5.31-build/ibus-1.5.31/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: GCC_ANALYZER_WARNING (CWE-688): [#def116]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala: scope_hint: In function ‘panel_binding_key_press_space’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:629:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:622:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:82:2: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:82:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:72:2: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/panelbinding.vala:72:2: note: in expansion of macro ‘g_return_val_if_fail’
<built-in>: note: 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: [#def117]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/pango.vala: scope_hint: In function ‘get_pango_attr_list_from_ibus_text’
ibus-1.5.31-build/ibus-1.5.31/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.31-build/ibus-1.5.31/src/ibusshare.h:40: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/src/ibus.h:30: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/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);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmem.h:271:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by ‘g_malloc0’
#  271 |             __p = g_##func (__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: [#def118]
ibus-1.5.31-build/ibus-1.5.31/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);                      \
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmem.h:271:19: note: at offset -8 into object of size [0, 9223372036854775807] allocated by ‘g_malloc0’
#  271 |             __p = g_##func (__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-843): [#def119]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/property.vala: scope_hint: In function ‘property_manager_create_menu_items_internal’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/property.vala:72:58: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type
/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.31-build/ibus-1.5.31/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 *’}
#   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): [#def120]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/property.vala:85:140: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type
/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 *’}
#   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): [#def121]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/propertypanel.vala: scope_hint: In function ‘prop_menu_create_items’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/propertypanel.vala:559:57: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_item_set_submenu’ from incompatible pointer type
/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.31-build/ibus-1.5.31/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 *’}
#  557|                       {
#  558|                           var menuitem = new PropImageMenuItem(prop);
#  559|->                         menuitem.set_submenu(new PropMenu(prop));
#  560|                           item = menuitem;
#  561|                       }

Error: COMPILER_WARNING (CWE-843): [#def122]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/propertypanel.vala:574:140: warning[-Wincompatible-pointer-types]: passing argument 2 of ‘gtk_menu_shell_append’ from incompatible pointer type
/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 *’}
#  572|                   last_radio = null;
#  573|               if (item != null) {
#  574|->                 append(item as Gtk.MenuItem);
#  575|                   item.property_activate.connect((w, k, s) =>
#  576|                                                  property_activate(k, s));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def123]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala: scope_hint: In function ‘switcher_ibus_engine_button_construct’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:35:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:26:2: note: in expansion of macro ‘g_return_val_if_fail’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:29:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala: scope_hint: In function ‘switcher_ibus_engine_button_construct’
<built-in>: note: 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): [#def124]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala: scope_hint: In function ‘switcher_ibus_engine_button_set_transname’
ibus-1.5.31-build/ibus-1.5.31/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-688): [#def125]
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala: scope_hint: In function ‘switcher_get_xkb_language’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:597:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:586:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:587:11: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala: scope_hint: In function ‘switcher_get_xkb_language’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.c:115:36: note: in expansion of macro ‘G_LIKELY’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:589:2: note: in expansion of macro ‘_vala_assert’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:589:2: note: in expansion of macro ‘_g_free0’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:596:12: note: in expansion of macro ‘g_strdup’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala: scope_hint: In function ‘switcher_get_xkb_language’
ibus-1.5.31-build/ibus-1.5.31/ui/gtk3/switcher.vala:596:2: note: in expansion of macro ‘_g_free0’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  595|   
#  596|           language = engine.get_language();
#  597|->         int length = language.length;
#  598|   
#  599|           /* Maybe invalid layout */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c: scope_hint: In function 'FrameInstInit'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c:873:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fi'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c:30: included_from: Included from here.
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c: scope_hint: In function 'FrameInstInit'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c: scope_hint: In function 'FrameInstInit'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c:29: included_from: Included from here.
#  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): [#def127]
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c: scope_hint: In function 'IterGetTotalSize'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c:2221:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'd'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c: scope_hint: In function 'IterGetTotalSize'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/FrameMgr.c: scope_hint: In function 'IterGetTotalSize'
# 2219|               }
# 2220|               /*endif*/
# 2221|->             if ((num = FrameInstGetTotalSize (d->fi)) == NO_VALUE)
# 2222|                   return NO_VALUE;
# 2223|               /*endif*/

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/i18nMethod.c: scope_hint: In function 'ParseArgs'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/i18nMethod.c:254:56: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  252|                   address->input_styles.count_styles =
#  253|                       ((XIMStyles*)p->value)->count_styles;
#  254|->                 address->input_styles.supported_styles =
#  255|                       (XIMStyle *) malloc (sizeof (XIMStyle)*address->input_styles.count_styles);
#  256|                   if (address->input_styles.supported_styles == (XIMStyle *) NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/i18nMethod.c:276:42: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  274|                   address->on_keys.count_keys =
#  275|                       ((XIMTriggerKeys *) p->value)->count_keys;
#  276|->                 address->on_keys.keylist =
#  277|                       (XIMTriggerKey *) malloc (sizeof (XIMTriggerKey)*address->on_keys.count_keys);
#  278|                   if (address->on_keys.keylist == (XIMTriggerKey *) NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/i18nMethod.c:293:43: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  291|                   address->off_keys.count_keys =
#  292|                       ((XIMTriggerKeys *) p->value)->count_keys;
#  293|->                 address->off_keys.keylist =
#  294|                       (XIMTriggerKey *) malloc (sizeof (XIMTriggerKey)*address->off_keys.count_keys);
#  295|                   if (address->off_keys.keylist == (XIMTriggerKey *) NULL)

Error: COMPILER_WARNING: [#def131]
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/i18nOffsetCache.c: scope_hint: In function '_Xi18nSetPropertyOffset'
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/i18nOffsetCache.c:90:32: warning[-Wuse-after-free]: pointer 'data_32' may be used after 'realloc'
#   90 |             offset_cache->data = data;
#      |             ~~~~~~~~~~~~~~~~~~~^~~~~~
ibus-1.5.31-build/ibus-1.5.31/util/IMdkit/i18nOffsetCache.c:87:54: note: call to 'realloc' here
#   87 |         offset_cache->data = (Xi18nAtomOffsetPair *) realloc (data,
#      |                                                      ^~~~~~~~~~~~~~
#   88 |                 offset_cache->capacity * sizeof (Xi18nAtomOffsetPair));
#      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   88|                   offset_cache->capacity * sizeof (Xi18nAtomOffsetPair));
#   89|           if (offset_cache->data == NULL) {
#   90|->             offset_cache->data = data;
#   91|               --offset_cache->size;
#   92|           }

Scan Properties

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