glib2-2.83.0-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-456): [#def1]
/usr/bin/glib-gettextize:29:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
#   27|   # further information how to use it consult the GNU gettext manual.
#   28|   
#   29|-> echo=echo
#   30|   progname=$0
#   31|   force=0

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/glib-gettextize:49:5: warning[SC2034]: prefix appears unused. Verify use (or export if used externally).
#   47|   case `uname` in
#   48|   MINGW32*)
#   49|->     prefix="`dirname $0`/.."
#   50|       ;;
#   51|   esac

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/glib-gettextize:53:1: warning[SC2034]: datarootdir appears unused. Verify use (or export if used externally).
#   51|   esac
#   52|   
#   53|-> datarootdir=/usr/share
#   54|   datadir=/usr/share
#   55|   

Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/bin/glib-gettextize:68:7: warning[SC2034]: configstatus appears unused. Verify use (or export if used externally).
#   66|       -r | --run | --r* )
#   67|         shift
#   68|->       configstatus=1 ;;
#   69|       --help | --h* )
#   70|         $echo "$usage"; exit 0 ;;

Error: SHELLCHECK_WARNING (CWE-252): [#def5]
/usr/bin/glib-gettextize:164:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#  162|   
#  163|   # Copy files to po/ subdirectory.
#  164|-> cd po
#  165|   for file in *; do
#  166|     rm -f "$srcdir/po/$file"

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c: scope_hint: In function ‘g_application_real_local_command_line’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:1126:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.h:29: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:500:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:500:3: note: in expansion of macro ‘g_return_val_if_fail’
# 1124|     if (!options)
# 1125|       {
# 1126|->       g_printerr ("%s\n", error->message);
# 1127|         g_error_free (error);
# 1128|         *exit_status = 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c: scope_hint: In function ‘g_application_run’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2691:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2600:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.h:38:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2600:25: note: in expansion of macro ‘G_IS_APPLICATION’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2600:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.h:38:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2600:25: note: in expansion of macro ‘G_IS_APPLICATION’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2601:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2602:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2602:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/glist.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/ghash.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:52: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmem.h:264:32: note: in definition of macro ‘_G_NEW’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2659:17: note: in expansion of macro ‘g_new’
glib2-2.83.0-build/glib-2.83.0/gobject/gobject.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:571:66: note: in expansion of macro ‘_G_TYPE_IGC’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.h:40:62: note: in expansion of macro ‘G_TYPE_INSTANCE_GET_CLASS’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2684:8: note: in expansion of macro ‘G_APPLICATION_GET_CLASS’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2331:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.h:38:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2331:25: note: in expansion of macro ‘G_IS_APPLICATION’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2331:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.h:38:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gapplication.c:2331:25: note: in expansion of macro ‘G_IS_APPLICATION’
# 2689|         if (!g_application_register (application, NULL, &error))
# 2690|           {
# 2691|->           g_printerr ("Failed to register: %s\n", error->message);
# 2692|             g_error_free (error);
# 2693|             return 1;

Error: GCC_ANALYZER_WARNING (CWE-835): [#def8]
glib2-2.83.0-build/glib-2.83.0/glib/gthread.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gasyncqueue.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gcancellable.c:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gcancellable.c: scope_hint: In function ‘cancellable_source_dispose’
glib2-2.83.0-build/glib-2.83.0/gio/gcancellable.c:737:37: warning[-Wanalyzer-infinite-loop]: infinite loop
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:29: note: in definition of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:29: note: in definition of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:29: note: in definition of macro ‘g_atomic_int_get’
#  735|   
#  736|             g_source_ref (source);
#  737|->           while (!g_atomic_int_get (&cancellable_source->cancelled_callback_called))
#  738|               ;
#  739|             g_source_unref (source);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c: scope_hint: In function ‘mechanism_server_data_send’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1111:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gprintf.h:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gstdio.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1093:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.h:39:50: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1093:25: note: in expansion of macro ‘G_IS_DBUS_AUTH_MECHANISM_SHA1’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1093:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.h:39:50: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1093:25: note: in expansion of macro ‘G_IS_DBUS_AUTH_MECHANISM_SHA1’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1093:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1094:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1094:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1095:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1095:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:702:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:703:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:703:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:704:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:705:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:705:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:705:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:705:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:283:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:283:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:283:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:283:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:921:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:921:3: note: in expansion of macro ‘g_assert’
# 1109|       {
# 1110|         g_free (m->priv->reject_reason);
# 1111|->       m->priv->reject_reason = g_strdup_printf ("Error adding entry to keyring: %s", error->message);
# 1112|         g_error_free (error);
# 1113|         m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_REJECTED;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c: scope_hint: In function ‘mechanism_client_data_receive’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1250:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1217:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.h:39:50: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1217:21: note: in expansion of macro ‘G_IS_DBUS_AUTH_MECHANISM_SHA1’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1217:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.h:39:50: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1217:21: note: in expansion of macro ‘G_IS_DBUS_AUTH_MECHANISM_SHA1’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1218:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1219:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:1219:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:391:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauthmechanismsha1.c:391:3: note: in expansion of macro ‘g_return_val_if_fail’
# 1248|       {
# 1249|         g_free (m->priv->reject_reason);
# 1250|->       m->priv->reject_reason = g_strdup_printf ("Problems looking up entry in keyring: %s", error->message);
# 1251|         g_error_free (error);
# 1252|         m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_REJECTED;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c: scope_hint: In function ‘g_dbus_connection_call_done’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6333:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusauth.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:100: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6317:7: note: in expansion of macro ‘G_UNLIKELY’
# 6331|         else
# 6332|           {
# 6333|->           g_print ("\n"
# 6334|                      "      FAILED: %s\n",
# 6335|                      error->message);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c: scope_hint: In function ‘g_dbus_connection_call_sync_internal’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6595:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6516:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.h:36:41: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6516:25: note: in expansion of macro ‘G_IS_DBUS_CONNECTION’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6516:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.h:36:41: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6516:25: note: in expansion of macro ‘G_IS_DBUS_CONNECTION’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6518:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6519:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6519:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6520:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6520:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6521:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6521:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6522:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6524:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6528:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6549:7: note: in expansion of macro ‘G_UNLIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:2283:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.h:36:41: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:2283:25: note: in expansion of macro ‘G_IS_DBUS_CONNECTION’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:2283:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.h:36:41: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:2283:25: note: in expansion of macro ‘G_IS_DBUS_CONNECTION’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusconnection.c:6580:7: note: in expansion of macro ‘G_UNLIKELY’
# 6593|         else
# 6594|           {
# 6595|->           g_print ("FAILED: %s\n",
# 6596|                      local_error->message);
# 6597|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
glib2-2.83.0-build/glib-2.83.0/gio/gdbusinterfaceskeleton.c: scope_hint: In function ‘skeleton_intercept_handle_method_call’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusinterfaceskeleton.c:660:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  658|   {
#  659|     GDBusInterfaceSkeleton *interface = G_DBUS_INTERFACE_SKELETON (user_data);
#  660|->   g_dbus_interface_method_dispatch_helper (interface,
#  661|                                              g_dbus_interface_skeleton_get_vtable (interface)->method_call,
#  662|                                              invocation);

Error: CPPCHECK_WARNING (CWE-758): [#def14]
glib2-2.83.0-build/glib-2.83.0/gio/gdbusmessage.c:3722: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 3720|     for (n = 0; n < 32; n++)
# 3721|       {
# 3722|->       if ((value & (1<<n)) != 0)
# 3723|           {
# 3724|             GFlagsValue *flags_value;

Error: CPPCHECK_WARNING (CWE-457): [#def15]
glib2-2.83.0-build/glib-2.83.0/gio/gdbusprivate.c:2024: warning[uninitvar]: Uninitialized variable: arg_types
# 2022|       n = 0;
# 2023|   
# 2024|->   return g_variant_type_new_tuple (arg_types, n);
# 2025|   }
# 2026|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
glib2-2.83.0-build/glib-2.83.0/gio/gdummyfile.c: scope_hint: In function ‘g_string_append_encoded’
glib2-2.83.0-build/glib-2.83.0/gio/gdummyfile.c:690:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘encoded’
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdummyfile.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdummyfile.c:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdummyfile.c:355:32: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/gdummyfile.c: scope_hint: In function ‘g_string_append_encoded’
#  688|     static const gchar hex[] = "0123456789ABCDEF";
#  689|   
#  690|->   while ((c = *encoded) != 0)
#  691|       {
#  692|         if (is_valid (c, reserved_chars_allowed))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c: scope_hint: In function ‘copy_symlink’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:2643:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘my_error’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:59: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:36:33: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:25: note: in expansion of macro ‘G_IS_FILE’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:36:33: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:25: note: in expansion of macro ‘G_IS_FILE’
glib2-2.83.0-build/glib-2.83.0/gobject/gobject.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:584:66: note: in expansion of macro ‘_G_TYPE_IGI’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:37:33: note: in expansion of macro ‘G_TYPE_INSTANCE_GET_INTERFACE’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1346:11: note: in expansion of macro ‘G_FILE_GET_IFACE’
# 2641|         /* Maybe it already existed, and we want to overwrite? */
# 2642|         if (!tried_delete && (flags & G_FILE_COPY_OVERWRITE) &&
# 2643|->           my_error->domain == G_IO_ERROR && my_error->code == G_IO_ERROR_EXISTS)
# 2644|           {
# 2645|             g_clear_error (&my_error);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c: scope_hint: In function ‘open_source_for_copy’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:2696:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘my_error’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:36:33: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:25: note: in expansion of macro ‘G_IS_FILE’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:36:33: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1341:25: note: in expansion of macro ‘G_IS_FILE’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:584:66: note: in expansion of macro ‘_G_TYPE_IGI’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:37:33: note: in expansion of macro ‘G_TYPE_INSTANCE_GET_INTERFACE’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1346:11: note: in expansion of macro ‘G_FILE_GET_IFACE’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1716:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.h:36:33: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1716:25: note: in expansion of macro ‘G_IS_FILE’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gfile.c:1716:3: note: in expansion of macro ‘g_return_val_if_fail’
# 2694|   
# 2695|     /* There was an error opening the source, try to set a good error for it: */
# 2696|->   if (my_error->domain == G_IO_ERROR && my_error->code == G_IO_ERROR_IS_DIRECTORY)
# 2697|       {
# 2698|         /* The source is a directory, don't fail with WOULD_RECURSE immediately,

Error: CPPCHECK_WARNING (CWE-457): [#def19]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1610: error[legacyUninitvar]: Uninitialized variable: *&value
# 1608|     g_return_val_if_fail (G_IS_FILE_INFO (info), G_FILE_TYPE_UNKNOWN);
# 1609|   
# 1610|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_TYPE, G_FILE_TYPE_UNKNOWN);
# 1611|     return (GFileType)_g_file_attribute_value_get_uint32 (value);
# 1612|   }

Error: CPPCHECK_WARNING (CWE-457): [#def20]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1632: error[legacyUninitvar]: Uninitialized variable: *&value
# 1630|     g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
# 1631|   
# 1632|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN, FALSE);
# 1633|     return _g_file_attribute_value_get_boolean (value);
# 1634|   }

Error: CPPCHECK_WARNING (CWE-457): [#def21]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1654: error[legacyUninitvar]: Uninitialized variable: *&value
# 1652|     g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
# 1653|   
# 1654|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP, FALSE);
# 1655|     return _g_file_attribute_value_get_boolean (value);
# 1656|   }

Error: CPPCHECK_WARNING (CWE-457): [#def22]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1676: error[legacyUninitvar]: Uninitialized variable: *&value
# 1674|     g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
# 1675|   
# 1676|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK, FALSE);
# 1677|     return _g_file_attribute_value_get_boolean (value);
# 1678|   }

Error: CPPCHECK_WARNING (CWE-457): [#def23]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1698: error[legacyUninitvar]: Uninitialized variable: *&value
# 1696|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1697|   
# 1698|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_NAME, NULL);
# 1699|     return _g_file_attribute_value_get_byte_string (value);
# 1700|   }

Error: CPPCHECK_WARNING (CWE-457): [#def24]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1720: error[legacyUninitvar]: Uninitialized variable: *&value
# 1718|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1719|   
# 1720|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, NULL);
# 1721|     return _g_file_attribute_value_get_string (value);
# 1722|   }

Error: CPPCHECK_WARNING (CWE-457): [#def25]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1742: error[legacyUninitvar]: Uninitialized variable: *&value
# 1740|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1741|   
# 1742|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME, NULL);
# 1743|     return _g_file_attribute_value_get_string (value);
# 1744|   }

Error: CPPCHECK_WARNING (CWE-457): [#def26]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1765: error[legacyUninitvar]: Uninitialized variable: *&value
# 1763|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1764|   
# 1765|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_ICON, NULL);
# 1766|   
# 1767|     obj = _g_file_attribute_value_get_object (value);

Error: CPPCHECK_WARNING (CWE-457): [#def27]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1794: error[legacyUninitvar]: Uninitialized variable: *&value
# 1792|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1793|   
# 1794|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON, NULL);
# 1795|   
# 1796|     obj = _g_file_attribute_value_get_object (value);

Error: CPPCHECK_WARNING (CWE-457): [#def28]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1821: error[legacyUninitvar]: Uninitialized variable: *&value
# 1819|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1820|   
# 1821|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, NULL);
# 1822|     return _g_file_attribute_value_get_string (value);
# 1823|   }

Error: CPPCHECK_WARNING (CWE-457): [#def29]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:1845: error[legacyUninitvar]: Uninitialized variable: *&value
# 1843|     g_return_val_if_fail (G_IS_FILE_INFO (info), (goffset) 0);
# 1844|   
# 1845|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SIZE, (goffset) 0);
# 1846|     return (goffset) _g_file_attribute_value_get_uint64 (value);
# 1847|   }

Error: CPPCHECK_WARNING (CWE-457): [#def30]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:2061: error[legacyUninitvar]: Uninitialized variable: *&value
# 2059|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 2060|   
# 2061|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET, NULL);
# 2062|     return _g_file_attribute_value_get_byte_string (value);
# 2063|   }

Error: CPPCHECK_WARNING (CWE-457): [#def31]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:2084: error[legacyUninitvar]: Uninitialized variable: *&value
# 2082|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 2083|   
# 2084|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_ETAG_VALUE, NULL);
# 2085|     return _g_file_attribute_value_get_string (value);
# 2086|   }

Error: CPPCHECK_WARNING (CWE-457): [#def32]
glib2-2.83.0-build/glib-2.83.0/gio/gfileinfo.c:2107: error[legacyUninitvar]: Uninitialized variable: *&value
# 2105|     g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
# 2106|   
# 2107|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER, 0);
# 2108|     return _g_file_attribute_value_get_int32 (value);
# 2109|   }

Error: GCC_ANALYZER_WARNING (CWE-686): [#def33]
glib2-2.83.0-build/glib-2.83.0/gio/gio-launch-desktop.c: scope_hint: In function ‘main’
glib2-2.83.0-build/glib-2.83.0/gio/gio-launch-desktop.c:253:3: warning[-Wanalyzer-putenv-of-auto-var]: ‘putenv’ on a pointer to automatic variable ‘buf’ [POS34-C]
glib2-2.83.0-build/glib-2.83.0/gio/gio-launch-desktop.c:243:8: note: ‘buf’ declared on stack here
glib2-2.83.0-build/glib-2.83.0/gio/gio-launch-desktop.c:253:3: note: perhaps use ‘setenv’ rather than ‘putenv’
#  251|       return -1;
#  252|   
#  253|->   putenv (buf);
#  254|   
#  255|   #if defined(__linux__) && !defined(__ANDROID__)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c: scope_hint: In function ‘strip_trailing_slashes’
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:1550:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gfileattribute.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:58: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:1549:15: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c: scope_hint: In function ‘strip_trailing_slashes’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1548|   
# 1549|     path_copy = g_strdup (path);
# 1550|->   len = strlen (path_copy);
# 1551|     while (len > 1 && path_copy[len-1] == '/')
# 1552|       path_copy[--len] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gresource.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:27: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c: scope_hint: In function ‘canonicalize_filename’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
#  186|     while (*in != 0)
#  187|       {
#  188|->       g_assert (*out == '/');
#  189|   
#  190|         /* move past slashes */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:223:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gresourcefile.c:188:7: note: in expansion of macro ‘g_assert’
#  221|   
#  222|     /* Trim trailing / from path */
#  223|->   if (out > bptr && *out == '/')
#  224|       *out = 0;
#  225|     else

Error: CPPCHECK_WARNING (CWE-758): [#def37]
glib2-2.83.0-build/glib-2.83.0/gio/gsettings.c:471: warning[objectIndex]: The address of variable 'key' might be accessed at non-zero index.
#  469|     for (i = 0; i < n_keys; i++)
#  470|       {
#  471|->       const gchar *key_name = g_quark_to_string (keys[i]);
#  472|   
#  473|         if (g_str_has_suffix (key_name, "/"))

Error: CPPCHECK_WARNING (CWE-457): [#def38]
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:2803: error[uninitvar]: Uninitialized variable: result
# 2801|       }
# 2802|   
# 2803|->   if (result < 0)
# 2804|       {
# 2805|         int errsv = get_socket_errno ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c: scope_hint: In function ‘g_socket_send_messages_with_timeout’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:4858:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cmsg’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5452:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.h:41:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5452:25: note: in expansion of macro ‘G_IS_SOCKET’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5452:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.h:41:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5452:25: note: in expansion of macro ‘G_IS_SOCKET’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5453:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5454:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:4782:42: note: in definition of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
/usr/include/sys/socket.h:33: included_from: Included from here.
/usr/include/net/if.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:50: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
glib2-2.83.0-build/glib-2.83.0/gio/gsocket.c:5492:9: note: in expansion of macro ‘output_message_to_msghdr’
# 4856|       for (i = 0; i < _message->num_control_messages; i++) \
# 4857|         { \
# 4858|->         cmsg->cmsg_level = g_socket_control_message_get_level (_message->control_messages[i]); \
# 4859|           cmsg->cmsg_type = g_socket_control_message_get_msg_type (_message->control_messages[i]); \
# 4860|           cmsg->cmsg_len = CMSG_LEN (g_socket_control_message_get_size (_message->control_messages[i])); \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def40]
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.c: scope_hint: In function ‘g_socket_listener_accept_socket’
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.c:727:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data.socket’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.h:35: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.c:29: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.c:698:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.h:44:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.c:698:25: note: in expansion of macro ‘G_IS_SOCKET_LISTENER’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.c:698:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.h:44:62: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gsocketlistener.c:698:25: note: in expansion of macro ‘G_IS_SOCKET_LISTENER’
#  725|   			     listener->priv->main_context);
#  726|         g_main_loop_run (loop);
#  727|->       accept_socket = data.socket;
#  728|         free_sources (sources);
#  729|         g_main_loop_unref (loop);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c: scope_hint: In function ‘is_in’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:223:11: warning[-Wanalyzer-null-argument]: use of NULL ‘value’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gprintf.h:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gstdio.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:46: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:502:30: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c: scope_hint: In function ‘is_in’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:503:29: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c: scope_hint: In function ‘is_in’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:504:28: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c: scope_hint: In function ‘is_in’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:505:34: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c: scope_hint: In function ‘is_in’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:506:26: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c: scope_hint: In function ‘is_in’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:410:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:444:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gio/gunixmounts.c:44: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  221|     for (i = 0; set[i] != NULL; i++)
#  222|       {
#  223|->       if (strcmp (set[i], value) == 0)
#  224|   	return TRUE;
#  225|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def42]
glib2-2.83.0-build/glib-2.83.0/gio/inotify/inotify-sub.c: scope_hint: In function ‘dup_dirname’
glib2-2.83.0-build/glib-2.83.0/gio/inotify/inotify-sub.c:39:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/inotify/inotify-sub.c:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/inotify/inotify-sub.c:38:22: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/inotify/inotify-sub.c: scope_hint: In function ‘dup_dirname’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#   37|   {
#   38|     gchar *d_dirname = g_strdup (dirname);
#   39|->   size_t len = strlen (d_dirname);
#   40|     
#   41|     if (len > 1 && d_dirname[len - 1] == '/')

Error: CPPCHECK_WARNING (CWE-628): [#def43]
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:284: error[invalidFunctionArg]: Invalid memchr() argument nr 2. The value is -1 but the valid values are '0:'.
#  282|   
#  283|         /* find the end of this string */
#  284|->       ptr = memchr (ptr, '\xff', end - ptr);
#  285|         g_assert (ptr != NULL);
#  286|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
glib2-2.83.0-build/glib-2.83.0/gio/tests/appmonitor.c: scope_hint: In function ‘timeout_cb’
glib2-2.83.0-build/glib-2.83.0/gio/tests/appmonitor.c:95:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/appmonitor.c:22: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/appmonitor.c:94:3: note: in expansion of macro ‘g_assert’
#   93|   
#   94|     g_assert (!timed_out);
#   95|->   *timed_out = TRUE;
#   96|     g_main_context_wakeup (g_main_context_get_thread_default ());
#   97|   

Error: COMPILER_WARNING (CWE-476): [#def45]
glib2-2.83.0-build/glib-2.83.0/gio/tests/appmonitor.c: scope_hint: In function ‘timeout_cb’
glib2-2.83.0-build/glib-2.83.0/gio/tests/appmonitor.c:95:14: warning[-Wnull-dereference]: null pointer dereference
#   95 |   *timed_out = TRUE;
#   93|   
#   94|     g_assert (!timed_out);
#   95|->   *timed_out = TRUE;
#   96|     g_main_context_wakeup (g_main_context_get_thread_default ());
#   97|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def46]
glib2-2.83.0-build/glib-2.83.0/glib/gthread.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gasyncqueue.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/cancellable.c:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/cancellable.c: scope_hint: In function ‘cancel_cancellable_thread’
glib2-2.83.0-build/glib-2.83.0/gio/tests/cancellable.c:398:29: warning[-Wanalyzer-infinite-loop]: infinite loop
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:29: note: in definition of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:29: note: in definition of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:29: note: in definition of macro ‘g_atomic_int_get’
#  396|     CancellablePollThreadData *thread_data = user_data;
#  397|   
#  398|->   while (!g_atomic_int_get (&thread_data->polling_started))
#  399|       ;
#  400|   

Error: CPPCHECK_WARNING (CWE-457): [#def47]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gdbus-example-subtree.c:320: error[legacyUninitvar]: Uninitialized variable: vtable_to_return
#  318|     *out_user_data = user_data_to_return;
#  319|   
#  320|->   return vtable_to_return;
#  321|   }
#  322|   

Error: CPPCHECK_WARNING (CWE-457): [#def48]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gdbus-testserver.c:671: error[legacyUninitvar]: Uninitialized variable: ret
#  669|           ret = v;
#  670|   
#  671|->       g_dbus_method_invocation_return_value (invocation, ret);
#  672|         g_variant_unref (v);
#  673|       }

Error: GCC_ANALYZER_WARNING (CWE-131): [#def49]
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:8: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c: scope_hint: In function ‘test_strinfo’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2332:20: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2303: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
# 2330|     }
# 2331|   
# 2332|->   g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "foo"),
# 2333|                      ==, NULL);
# 2334|     g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "bar"),

Error: GCC_ANALYZER_WARNING (CWE-131): [#def50]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2334:20: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
# 2332|     g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "foo"),
# 2333|                      ==, NULL);
# 2334|->   g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "bar"),
# 2335|                      ==, NULL);
# 2336|     g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "baz"),

Error: GCC_ANALYZER_WARNING (CWE-131): [#def51]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2336:20: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
# 2334|     g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "bar"),
# 2335|                      ==, NULL);
# 2336|->   g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "baz"),
# 2337|                      ==, "bar");
# 2338|     g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "quux"),

Error: GCC_ANALYZER_WARNING (CWE-131): [#def52]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2338:20: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
# 2336|     g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "baz"),
# 2337|                      ==, "bar");
# 2338|->   g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "quux"),
# 2339|                      ==, NULL);
# 2340|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def53]
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2341:18: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2341:3: note: in expansion of macro ‘g_assert_true’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/gio/strinfo.c:135:14: note: in expansion of macro ‘GUINT32_TO_LE’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:47:66: note: in definition of macro ‘g_assert_cmpstr’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsettings.c:2341:3: note: in expansion of macro ‘g_assert_true’
# 2339|                      ==, NULL);
# 2340|   
# 2341|->   g_assert_true (strinfo_enum_from_string (strinfo, length, "foo", &result));
# 2342|     g_assert_cmpint (result, ==, 1);
# 2343|     g_assert_true (strinfo_enum_from_string (strinfo, length, "bar", &result));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess-testprog.c: scope_hint: In function ‘read_from_fd’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess-testprog.c:163:14: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess-testprog.c:1: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess-testprog.c:183:7: note: in expansion of macro ‘g_warning’
#  161|       {
#  162|         g_print ("Usage: %s read-from-fd FD\n", argv[0]);
#  163|->       return 1;
#  164|       }
#  165|   

Error: GCC_ANALYZER_WARNING (CWE-685): [#def55]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c: scope_hint: In function ‘get_test_subprocess_args’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:63:15: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-private.h:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:1: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:60:25: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c: scope_hint: In function ‘get_test_subprocess_args’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:64:27: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c: scope_hint: In function ‘get_test_subprocess_args’
#   61|   
#   62|     va_start (args, mode);
#   63|->   while ((arg = va_arg (args, gpointer)) != NULL)
#   64|       g_ptr_array_add (ret, g_strdup (arg));
#   65|     va_end (args);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def56]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c: scope_hint: In function ‘on_communicate_complete’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:767:24: warning[-Wanalyzer-null-argument]: use of NULL ‘stdout_data’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:765:11: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:765:11: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:765:11: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:765:11: note: in expansion of macro ‘g_assert_nonnull’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  765|             g_assert_nonnull (stdout_str);
#  766|             stdout_data = (guint8*)stdout_str;
#  767|->           stdout_len = strlen (stdout_str);
#  768|           }
#  769|         else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def57]
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c: scope_hint: In function ‘test_cwd’
glib2-2.83.0-build/glib-2.83.0/gio/tests/gsubprocess.c:1507:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1505|     result = splice_to_string (stdout_stream, &local_error);
# 1506|     g_assert_no_error (local_error);
# 1507|->   result_len = strlen (result);
# 1508|   
# 1509|     /* The result should end with a line ending */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def58]
glib2-2.83.0-build/glib-2.83.0/gobject/gobject.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c: scope_hint: In function ‘test_pollable_unix_pipe’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:200:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipefds[0]’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
glib2-2.83.0-build/glib-2.83.0/gio/gpollableinputstream.h:33:53: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:200:8: note: in expansion of macro ‘G_POLLABLE_INPUT_STREAM’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:198:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:198:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
glib2-2.83.0-build/glib-2.83.0/gio/gpollableinputstream.h:33:53: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:200:8: note: in expansion of macro ‘G_POLLABLE_INPUT_STREAM’
#  198|     g_assert_cmpint (status, ==, 0);
#  199|   
#  200|->   in = G_POLLABLE_INPUT_STREAM (g_unix_input_stream_new (pipefds[0], TRUE));
#  201|     out = g_unix_output_stream_new (pipefds[1], TRUE);
#  202|   

Error: CPPCHECK_WARNING (CWE-457): [#def59]
glib2-2.83.0-build/glib-2.83.0/gio/tests/sleepy-stream.c:58: warning[uninitvar]: Uninitialized variable: buffer
#   56|       }
#   57|   
#   58|->   return g_strndup (buffer, i);
#   59|   }
#   60|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_ip_async’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:373:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:371:3: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:371:3: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:371:3: note: in expansion of macro ‘g_assert_nonnull’
#  371|     g_assert_nonnull (data);
#  372|   
#  373|->   addr = g_socket_get_local_address (data->server, &error);
#  374|     g_assert_no_error (error);
#  375|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_ip_sync’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:480:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  478|       }
#  479|   
#  480|->   addr = g_socket_get_local_address (data->server, &error);
#  481|     g_assert_no_error (error);
#  482|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_ip_sync_dgram’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:619:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  617|       }
#  618|   
#  619|->   dest_addr = g_socket_get_local_address (data->server, &error);
#  620|     g_assert_no_error (error);
#  621|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_close_graceful’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1002:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1000|       }
# 1001|   
# 1002|->   addr = g_socket_get_local_address (data->server, &error);
# 1003|     g_assert_no_error (error);
# 1004|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_ipv6_v4mapped’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1121:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_ipv6_v4mapped’
# 1119|     g_socket_set_timeout (client, 1);
# 1120|   
# 1121|->   addr = g_socket_get_local_address (data->server, &error);
# 1122|     g_assert_no_error (error);
# 1123|     iaddr = g_inet_address_new_loopback (G_SOCKET_FAMILY_IPV4);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_timed_wait’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1170:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_timed_wait’
# 1168|       }
# 1169|   
# 1170|->   addr = g_socket_get_local_address (data->server, &error);
# 1171|     g_assert_no_error (error);
# 1172|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_fd_reuse’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1256:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1254|       }
# 1255|   
# 1256|->   addr = g_socket_get_local_address (data->server, &error);
# 1257|     g_assert_no_error (error);
# 1258|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def67]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_unix_connection_ancillary_data’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1488:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pv[1]’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1466:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1466:3: note: in expansion of macro ‘g_assert_cmpint’
# 1486|         connection = create_connection_for_fd (sv[0]);
# 1487|   
# 1488|->       status = close (pv[1]);
# 1489|         g_assert_cmpint (status, ==, 0);
# 1490|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1512:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pv[1]’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1466:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1466:3: note: in expansion of macro ‘g_assert_cmpint’
# 1510|   
# 1511|         err = NULL;
# 1512|->       g_unix_connection_send_fd (G_UNIX_CONNECTION (connection), pv[1], NULL,
# 1513|   				 &err);
# 1514|         g_assert_no_error (err);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_unix_connection_ancillary_data’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1536:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[0]’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:21: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:1466:3: note: in expansion of macro ‘g_assert_cmpint’
# 1534|      * g_unix_connection_receive_credentials().
# 1535|      */
# 1536|-> }
# 1537|   #endif
# 1538|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_credentials_tcp_client’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:2036:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2034|       }
# 2035|   
# 2036|->   addr = g_socket_get_local_address (data->server, &error);
# 2037|     g_assert_no_error (error);
# 2038|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_receive_bytes’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:2369:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2367|       }
# 2368|   
# 2369|->   addr = g_socket_get_local_address (data->server, &error);
# 2370|     g_assert_no_error (error);
# 2371|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c: scope_hint: In function ‘test_receive_bytes_from’
glib2-2.83.0-build/glib-2.83.0/gio/tests/socket.c:2469:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2467|       }
# 2468|   
# 2469|->   dest_addr = g_socket_get_local_address (data->server, &error);
# 2470|     g_assert_no_error (error);
# 2471|   

Error: CPPCHECK_WARNING (CWE-457): [#def73]
glib2-2.83.0-build/glib-2.83.0/gio/tests/srvtarget.c:125: warning[uninitvar]: Uninitialized variable: result
#  123|         for (o = 0; o < NUM_ORDERINGS; o++)
#  124|   	{
#  125|-> 	  if (!strcmp (result, ordering[o].order))
#  126|   	    {
#  127|   	      ordering[o].seen++;

Error: CPPCHECK_WARNING (CWE-476): [#def74]
glib2-2.83.0-build/glib-2.83.0/gio/tests/tls-certificate.c:409: warning[nullPointer]: Possible null pointer dereference: l
#  407|     for (i = 0; i < 3; i++)
#  408|       {
#  409|->       GTlsCertificate *cert = l->data;
#  410|         gchar *parsed_cert_pem = NULL;
#  411|         g_object_get (cert,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-fd.c: scope_hint: In function ‘check_fd_list’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-fd.c:32:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘my_fd’
#   30|     for (i = 0; i < 40; i++)
#   31|       g_close (fd_list[i], NULL);
#   32|-> }
#   33|   
#   34|   static void

Error: GCC_ANALYZER_WARNING (CWE-457): [#def76]
glib2-2.83.0-build/glib-2.83.0/gobject/gobject.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gio.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c: scope_hint: In function ‘test_read_write’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:444:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
glib2-2.83.0-build/glib-2.83.0/gio/gunixinputstream.h:31:43: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:444:8: note: in expansion of macro ‘G_UNIX_INPUT_STREAM’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:442:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:442:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
glib2-2.83.0-build/glib-2.83.0/gio/gunixinputstream.h:31:43: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:444:8: note: in expansion of macro ‘G_UNIX_INPUT_STREAM’
#  442|     g_assert_cmpint (pipe (fd), ==, 0);
#  443|   
#  444|->   is = G_UNIX_INPUT_STREAM (g_unix_input_stream_new (fd[0], TRUE));
#  445|     os = G_UNIX_OUTPUT_STREAM (g_unix_output_stream_new (fd[1], TRUE));
#  446|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def77]
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c: scope_hint: In function ‘test_write_wouldblock’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:492:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:490:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:490:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
#  490|     g_assert_cmpint (pipe (fd), ==, 0);
#  491|   
#  492|->   g_assert_cmpint (fcntl (fd[0], F_SETPIPE_SZ, 4096, NULL), !=, 0);
#  493|     retval = fcntl (fd[0], F_GETPIPE_SZ);
#  494|     g_assert_cmpint (retval, >=, 0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def78]
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c: scope_hint: In function ‘test_writev_wouldblock’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:575:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:573:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:573:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
#  573|     g_assert_cmpint (pipe (fd), ==, 0);
#  574|   
#  575|->   g_assert_cmpint (fcntl (fd[0], F_SETPIPE_SZ, 4096, NULL), !=, 0);
#  576|     retval = fcntl (fd[0], F_GETPIPE_SZ);
#  577|     g_assert_cmpint (retval, >=, 0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def79]
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c: scope_hint: In function ‘test_write_async_wouldblock’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:697:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:687:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:687:3: note: in expansion of macro ‘g_assert_cmpint’
#  695|      * See https://gitlab.gnome.org/GNOME/glib/issues/1654
#  696|      */
#  697|->   g_unix_set_fd_nonblocking (fd[0], TRUE, NULL);
#  698|     g_unix_set_fd_nonblocking (fd[1], TRUE, NULL);
#  699|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def80]
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c: scope_hint: In function ‘test_writev_async_wouldblock’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:788:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:778:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/unix-streams.c:778:3: note: in expansion of macro ‘g_assert_cmpint’
#  786|      * See https://gitlab.gnome.org/GNOME/glib/issues/1654
#  787|      */
#  788|->   g_unix_set_fd_nonblocking (fd[0], TRUE, NULL);
#  789|     g_unix_set_fd_nonblocking (fd[1], TRUE, NULL);
#  790|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c: scope_hint: In function ‘xdg_dir_time_list_add’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:108:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:16: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.h:19:55: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:141:29: note: in expansion of macro ‘_xdg_mime_cache_new_from_file’
#  106|     list = calloc (1, sizeof (XdgDirTimeList));
#  107|     list->checked = XDG_CHECKED_UNCHECKED;
#  108|->   list->directory_name = file_name;
#  109|     list->mtime = mtime;
#  110|     list->next = dir_time_list;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c: scope_hint: In function ‘xdg_mime_init_from_directory’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:138:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  136|   
#  137|     file_name = malloc (strlen (directory) + strlen ("/mime.cache") + 1);
#  138|->   strcpy (file_name, directory); strcat (file_name, "/mime.cache");
#  139|     if (stat (file_name, &st) == 0)
#  140|       {

Error: CPPCHECK_WARNING (CWE-401): [#def83]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:147: error[memleakOnRealloc]: Common realloc mistake: '_caches' nulled but not freed upon failure
#  145|   	  xdg_dir_time_list_add (file_name, st.st_mtime);
#  146|   
#  147|-> 	  _caches = realloc (_caches, sizeof (XdgMimeCache *) * (n_caches + 2));
#  148|   	  _caches[n_caches] = cache;
#  149|             _caches[n_caches + 1] = NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def84]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:158:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  156|   
#  157|     file_name = malloc (strlen (directory) + strlen ("/globs2") + 1);
#  158|->   strcpy (file_name, directory); strcat (file_name, "/globs2");
#  159|     if (stat (file_name, &st) == 0)
#  160|       {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def85]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:168:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  166|         free (file_name);
#  167|         file_name = malloc (strlen (directory) + strlen ("/globs") + 1);
#  168|->       strcpy (file_name, directory); strcat (file_name, "/globs");
#  169|         if (stat (file_name, &st) == 0)
#  170|           {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def86]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:181:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  179|   
#  180|     file_name = malloc (strlen (directory) + strlen ("/magic") + 1);
#  181|->   strcpy (file_name, directory); strcat (file_name, "/magic");
#  182|     if (stat (file_name, &st) == 0)
#  183|       {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def87]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:193:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  191|   
#  192|     file_name = malloc (strlen (directory) + strlen ("/aliases") + 1);
#  193|->   strcpy (file_name, directory); strcat (file_name, "/aliases");
#  194|     _xdg_mime_alias_read_from_file (alias_list, file_name);
#  195|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def88]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:198:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  196|   
#  197|     file_name = malloc (strlen (directory) + strlen ("/subclasses") + 1);
#  198|->   strcpy (file_name, directory); strcat (file_name, "/subclasses");
#  199|     _xdg_mime_parent_read_from_file (parent_list, file_name);
#  200|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def89]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:203:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  201|   
#  202|     file_name = malloc (strlen (directory) + strlen ("/icons") + 1);
#  203|->   strcpy (file_name, directory); strcat (file_name, "/icons");
#  204|     _xdg_mime_icon_read_from_file (icon_list, file_name);
#  205|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def90]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:208:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  206|   
#  207|     file_name = malloc (strlen (directory) + strlen ("/generic-icons") + 1);
#  208|->   strcpy (file_name, directory); strcat (file_name, "/generic-icons");
#  209|     _xdg_mime_icon_read_from_file (generic_icon_list, file_name);
#  210|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def91]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c: scope_hint: In function ‘xdg_init_dirs’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:250:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mime_subdir’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  248|   
#  249|         mime_subdir = malloc (strlen (xdg_data_home) + strlen ("/mime/") + 1);
#  250|->       strcpy (mime_subdir, xdg_data_home);
#  251|         strcat (mime_subdir, "/mime/");
#  252|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:253:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xdg_dirs’
#  251|         strcat (mime_subdir, "/mime/");
#  252|   
#  253|->       xdg_dirs[current_dir++] = mime_subdir;
#  254|       }
#  255|     else if (home != NULL)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def93]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:260:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘guessed_xdg_home’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  258|   
#  259|         guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/mime/") + 1);
#  260|->       strcpy (guessed_xdg_home, home);
#  261|         strcat (guessed_xdg_home, "/.local/share/mime/");
#  262|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:263:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xdg_dirs’
#  261|         strcat (guessed_xdg_home, "/.local/share/mime/");
#  262|   
#  263|->       xdg_dirs[current_dir++] = guessed_xdg_home;
#  264|       }
#  265|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:300:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xdg_dirs’
#  298|   
#  299|     /* NULL terminator */
#  300|->   xdg_dirs[current_dir] = NULL;
#  301|   
#  302|     need_reread = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def96]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c: scope_hint: In function ‘xdg_check_dir’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:405:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:26:34: note: in definition of macro ‘_XDG_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:24:25: note: in expansion of macro ‘_XDG_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:24:37: note: in expansion of macro ‘XDG_PREFIX’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:58:47: note: in expansion of macro ‘XDG_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:1020:1: note: in expansion of macro ‘xdg_mime_get_generic_icon’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  403|     /* Check the mime.cache file */
#  404|     file_name = malloc (strlen (directory) + strlen ("/mime.cache") + 1);
#  405|->   strcpy (file_name, directory); strcat (file_name, "/mime.cache");
#  406|     invalid = xdg_check_file (file_name, &exists);
#  407|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def97]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:420:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:26:34: note: in definition of macro ‘_XDG_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:24:25: note: in expansion of macro ‘_XDG_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:24:37: note: in expansion of macro ‘XDG_PREFIX’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:58:47: note: in expansion of macro ‘XDG_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:1020:1: note: in expansion of macro ‘xdg_mime_get_generic_icon’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  418|     /* Check the globs file */
#  419|     file_name = malloc (strlen (directory) + strlen ("/globs") + 1);
#  420|->   strcpy (file_name, directory); strcat (file_name, "/globs");
#  421|     invalid = xdg_check_file (file_name, NULL);
#  422|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def98]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:431:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:26:34: note: in definition of macro ‘_XDG_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:24:25: note: in expansion of macro ‘_XDG_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:24:37: note: in expansion of macro ‘XDG_PREFIX’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:58:47: note: in expansion of macro ‘XDG_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.c:1020:1: note: in expansion of macro ‘xdg_mime_get_generic_icon’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  429|     /* Check the magic file */
#  430|     file_name = malloc (strlen (directory) + strlen ("/magic") + 1);
#  431|->   strcpy (file_name, directory); strcat (file_name, "/magic");
#  432|     invalid = xdg_check_file (file_name, NULL);
#  433|     free (file_name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c: scope_hint: In function ‘__gio_xdg_alias_list_new’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c:53:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
#   51|     list = malloc (sizeof (XdgAliasList));
#   52|   
#   53|->   list->aliases = NULL;
#   54|     list->n_aliases = 0;
#   55|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c: scope_hint: In function ‘__gio_xdg_alias_read_from_file’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c:134:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.aliases’
#  132|   	{
#  133|   	  alloc <<= 1;
#  134|-> 	  list->aliases = realloc (list->aliases, 
#  135|   				   alloc * sizeof (XdgAlias));
#  136|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c:141:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  139|         list->n_aliases++;
#  140|       }
#  141|->   list->aliases = realloc (list->aliases, 
#  142|   			   list->n_aliases * sizeof (XdgAlias));
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def102]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c:141:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
#  139|         list->n_aliases++;
#  140|       }
#  141|->   list->aliases = realloc (list->aliases, 
#  142|   			   list->n_aliases * sizeof (XdgAlias));
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def103]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c:147:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:16: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.h:15: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimealias.c:16: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
#  145|     
#  146|     if (list->n_aliases > 1)
#  147|->     qsort (list->aliases, list->n_aliases, 
#  148|              sizeof (XdgAlias), alias_entry_cmp);
#  149|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c: scope_hint: In function ‘__gio_xdg_cache_mime_type_subclass’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:1020:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘first_seen’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.h:14: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.h:28:55: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:938:1: note: in expansion of macro ‘_xdg_mime_cache_mime_type_subclass’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.h:29:55: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:948:11: note: in expansion of macro ‘_xdg_mime_cache_unalias_mime_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c: scope_hint: In function ‘__gio_xdg_cache_mime_type_subclass’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.h:29:55: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:949:11: note: in expansion of macro ‘_xdg_mime_cache_unalias_mime_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c: scope_hint: In function ‘__gio_xdg_cache_mime_type_subclass’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.h:29:55: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:949:11: note: in expansion of macro ‘_xdg_mime_cache_unalias_mime_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c: scope_hint: In function ‘__gio_xdg_cache_mime_type_subclass’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c: scope_hint: In function ‘__gio_xdg_cache_mime_type_subclass’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:989:21: note: in expansion of macro ‘GET_UINT32’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:993:19: note: in expansion of macro ‘GET_UINT32’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:994:11: note: in expansion of macro ‘OUT_OF_BOUNDS’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:1011:24: note: in expansion of macro ‘GET_UINT32’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:1016:35: note: in expansion of macro ‘GET_UINT32’
# 1018|   
# 1019|   		  /* Detect and avoid buggy circular relationships */
# 1020|-> 		  for (k = 0; (*seen)[k] != NULL; k++)
# 1021|   		    if (parent == (*seen)[k])
# 1022|   		      goto next_parent;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def105]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c: scope_hint: In function ‘__gio_xdg_cache_list_mime_parents’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimecache.c:1125:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1123|     
# 1124|     result = (char **) malloc (p * sizeof (char *));
# 1125|->   memcpy (result, all_parents, p * sizeof (char *));
# 1126|   
# 1127|     return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_list_append’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:120:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_element’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:15: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:16: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:20: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_list_append’
#  118|   
#  119|     new_element = _xdg_glob_list_new ();
#  120|->   new_element->data = strdup (data);
#  121|     new_element->mime_type = strdup (mime_type);
#  122|     new_element->weight = weight;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:184:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  182|       {
#  183|         node = _xdg_glob_hash_node_new ();
#  184|->       node->character = character;
#  185|         node->next = glob_hash_node;
#  186|         glob_hash_node = node;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:207:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  205|   	    {
#  206|   	      node = _xdg_glob_hash_node_new ();
#  207|-> 	      node->character = character;
#  208|   	      node->next = prev_node->next;
#  209|   	      prev_node->next = node;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:226:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  224|   	{
#  225|   	  node = _xdg_glob_hash_node_new ();
#  226|-> 	  node->character = character;
#  227|   	  node->next = prev_node->next;
#  228|   	  prev_node->next = node;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:257:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  255|   		  child = _xdg_glob_hash_node_new ();
#  256|   		  child->character = 0;
#  257|-> 		  child->mime_type = strdup (mime_type);
#  258|   		  child->weight = weight;
#  259|   		  child->case_sensitive = case_sensitive;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:277:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  275|         node->child = _xdg_glob_hash_insert_ucs4 (node->child, text, mime_type, weight, case_sensitive);
#  276|       }
#  277|->   return glob_hash_node;
#  278|   }
#  279|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:277:10: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:32:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:563:1: note: in expansion of macro ‘_xdg_glob_hash_append_glob’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:29:43: note: in expansion of macro ‘_XDG_RESERVED_ENTRY3’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:28:34: note: in expansion of macro ‘_XDG_RESERVED_ENTRY2’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.h:33:47: note: in expansion of macro ‘XDG_RESERVED_ENTRY’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c:574:10: note: in expansion of macro ‘_xdg_glob_determine_type’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeglob.c: scope_hint: In function ‘_xdg_glob_hash_insert_ucs4’
#  275|         node->child = _xdg_glob_hash_insert_ucs4 (node->child, text, mime_type, weight, case_sensitive);
#  276|       }
#  277|->   return glob_hash_node;
#  278|   }
#  279|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c: scope_hint: In function ‘_gio_xdg_icon_list_new’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c:52:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
#   50|     list = malloc (sizeof (XdgIconList));
#   51|   
#   52|->   list->icons = NULL;
#   53|     list->n_icons = 0;
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c: scope_hint: In function ‘_gio_xdg_icon_read_from_file’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c:133:23: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.icons’
#  131|   	{
#  132|   	  alloc <<= 1;
#  133|-> 	  list->icons = realloc (list->icons, 
#  134|   				   alloc * sizeof (XdgIcon));
#  135|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c:140:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  138|         list->n_icons++;
#  139|       }
#  140|->   list->icons = realloc (list->icons, 
#  141|   			   list->n_icons * sizeof (XdgIcon));
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def116]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c:140:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
#  138|         list->n_icons++;
#  139|       }
#  140|->   list->icons = realloc (list->icons, 
#  141|   			   list->n_icons * sizeof (XdgIcon));
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def117]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c:146:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:16: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.h:14: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeicon.c:15: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
#  144|     
#  145|     if (list->n_icons > 1)
#  146|->     qsort (list->icons, list->n_icons, 
#  147|              sizeof (XdgIcon), icon_entry_cmp);
#  148|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeint.c: scope_hint: In function ‘__gio_xdg_convert_to_ucs4’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeint.c:153:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
#  151|     while (*p) 
#  152|       {
#  153|->       out[i++] = _xdg_utf8_to_ucs4 (p);
#  154|         p = _xdg_utf8_next_char (p); 
#  155|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeint.c:156:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
#  154|         p = _xdg_utf8_next_char (p); 
#  155|       }
#  156|->   out[i] = 0;
#  157|     *len = i;
#  158|    

Error: CPPCHECK_WARNING (CWE-401): [#def120]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimemagic.c:174: error[memleakOnRealloc]: Common realloc mistake: 'retval' nulled but not freed upon failure
#  172|   	{
#  173|   	  len = len + 128;
#  174|-> 	  retval = realloc (retval, len);
#  175|   	}
#  176|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c: scope_hint: In function ‘__gio_xdg_parent_list_new’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:54:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
#   52|     list = malloc (sizeof (XdgParentList));
#   53|   
#   54|->   list->parents = NULL;
#   55|     list->n_mimes = 0;
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c: scope_hint: In function ‘__gio_xdg_parent_read_from_file’
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:141:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  139|         for (i = 0; i < list->n_mimes; i++)
#  140|   	{
#  141|-> 	  if (strcmp (list->parents[i].mime, line) == 0)
#  142|   	    {
#  143|   	      entry = &(list->parents[i]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:153:29: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.parents’
#  151|   	    {
#  152|   	      alloc <<= 1;
#  153|-> 	      list->parents = realloc (list->parents, 
#  154|   				       alloc * sizeof (XdgMimeParents));
#  155|   	    }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:173:44: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*entry.parents + ((long unsigned int)*entry.n_parents + 18446744073709551615) * 8’
#  171|   				    (entry->n_parents + 2) * sizeof (char *));
#  172|   	}
#  173|->       entry->parents[entry->n_parents - 1] = strdup (sep);
#  174|         entry->parents[entry->n_parents] = NULL;
#  175|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:177:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.parents’
#  175|       }
#  176|   
#  177|->   list->parents = realloc (list->parents, 
#  178|   			   list->n_mimes * sizeof (XdgMimeParents));
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:177:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  175|       }
#  176|   
#  177|->   list->parents = realloc (list->parents, 
#  178|   			   list->n_mimes * sizeof (XdgMimeParents));
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def127]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:177:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
#  175|       }
#  176|   
#  177|->   list->parents = realloc (list->parents, 
#  178|   			   list->n_mimes * sizeof (XdgMimeParents));
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def128]
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:183:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmime.h:16: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.h:15: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/xdgmime/xdgmimeparent.c:16: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
#  181|     
#  182|     if (list->n_mimes > 1)
#  183|->     qsort (list->parents, list->n_mimes, 
#  184|              sizeof (XdgMimeParents), &parent_entry_cmp);
#  185|   }

Error: GCC_ANALYZER_WARNING: [#def129]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘bdz_alloc_graph3’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:70:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:70:28: note: only use operands of an integer type inside the size argument
#   68|   {
#   69|   	graph3->edges=malloc(nedges*sizeof(bdz_edge_t));
#   70|-> 	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   71|   	graph3->vert_degree=malloc((size_t)nvertices);	
#   72|   };

Error: GCC_ANALYZER_WARNING: [#def130]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:71:29: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:71:29: note: only use operands of an integer type inside the size argument
#   69|   	graph3->edges=malloc(nedges*sizeof(bdz_edge_t));
#   70|   	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   71|-> 	graph3->vert_degree=malloc((size_t)nvertices);	
#   72|   };
#   73|   static void bdz_init_graph3(bdz_graph3_t * graph3, cmph_uint32 nedges, cmph_uint32 nvertices)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def131]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘bdz_init_graph3’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:75:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.first_edge’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   73|   static void bdz_init_graph3(bdz_graph3_t * graph3, cmph_uint32 nedges, cmph_uint32 nvertices)
#   74|   {
#   75|-> 	memset(graph3->first_edge,0xff,nvertices*sizeof(cmph_uint32));
#   76|   	memset(graph3->vert_degree,0,(size_t)nvertices);
#   77|   	graph3->nedges=0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def132]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:76:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.vert_degree’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   74|   {
#   75|   	memset(graph3->first_edge,0xff,nvertices*sizeof(cmph_uint32));
#   76|-> 	memset(graph3->vert_degree,0,(size_t)nvertices);
#   77|   	graph3->nedges=0;
#   78|   };

Error: GCC_ANALYZER_WARNING (CWE-688): [#def133]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘bdz_generate_queue’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:166:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_edge’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  164|   	cmph_uint32 tmp_edge;
#  165|   	cmph_uint8 * marked_edge =malloc((size_t)(nedges >> 3) + 1);
#  166|-> 	memset(marked_edge, 0, (size_t)(nedges >> 3) + 1);
#  167|   
#  168|   	for(i=0;i<nedges;i++){

Error: GCC_ANALYZER_WARNING (CWE-457): [#def134]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:169:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.vertices[0]’
#  167|   
#  168|   	for(i=0;i<nedges;i++){
#  169|-> 		v0=graph3->edges[i].vertices[0];
#  170|   		v1=graph3->edges[i].vertices[1];
#  171|   		v2=graph3->edges[i].vertices[2];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:176:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queue’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘bdz_generate_queue’
#  174|   				graph3->vert_degree[v2]==1){
#  175|   			if(!GETBIT(marked_edge,i)) {
#  176|-> 				queue[queue_head++]=i;
#  177|   				SETBIT(marked_edge,i);
#  178|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘bdz_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:354:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
#  352|   	#endif
#  353|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  354|-> 	mphf->algo = mph->algo;
#  355|   	bdzf = (bdz_data_t *)malloc(sizeof(bdz_data_t));
#  356|   	bdzf->g = bdz->g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:356:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bdzf’
#  354|   	mphf->algo = mph->algo;
#  355|   	bdzf = (bdz_data_t *)malloc(sizeof(bdz_data_t));
#  356|-> 	bdzf->g = bdz->g;
#  357|   	bdz->g = NULL; //transfer memory ownership
#  358|   	bdzf->hl = bdz->hl;

Error: GCC_ANALYZER_WARNING: [#def138]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘assigning’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:422:32: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:422:32: note: only use operands of an integer type inside the size argument
#  420|   	cmph_uint8 * marked_vertices =malloc((size_t)(bdz->n >> 3) + 1);
#  421|           cmph_uint32 sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  422|-> 	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));	
#  423|   	memset(marked_vertices, 0, (size_t)(bdz->n >> 3) + 1);
#  424|   	memset(bdz->g, 0xff, (size_t)(sizeg));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def139]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:423:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_vertices’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  421|           cmph_uint32 sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  422|   	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));	
#  423|-> 	memset(marked_vertices, 0, (size_t)(bdz->n >> 3) + 1);
#  424|   	memset(bdz->g, 0xff, (size_t)(sizeg));
#  425|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def140]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:424:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*bdz.g’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  422|   	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));	
#  423|   	memset(marked_vertices, 0, (size_t)(bdz->n >> 3) + 1);
#  424|-> 	memset(bdz->g, 0xff, (size_t)(sizeg));
#  425|   
#  426|   	for(i=nedges-1;i+1>0;i--){

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘ranking’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:468:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bdz.ranktable’
#  466|   	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  467|   	// ranktable computation
#  468|-> 	bdz->ranktable[0] = 0;	
#  469|   	i = 1;
#  470|   	while(1)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:468:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)*bdz.ranktablesize, 4)’
#  466|   	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  467|   	// ranktable computation
#  468|-> 	bdz->ranktable[0] = 0;	
#  469|   	i = 1;
#  470|   	while(1)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def143]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c: scope_hint: In function ‘bdz_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:543:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:543:23: note: heap-based allocation
#  541|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  542|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  543|-> 	buf = (char *)malloc((size_t)buflen);
#  544|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  545|   	bdz->hl = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING: [#def144]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:554:32: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz.c:554:32: note: only use operands of an integer type inside the size argument
#  552|   	nbytes = fread(&(bdz->r), sizeof(cmph_uint32), (size_t)1, f);	
#  553|   	sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  554|-> 	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));
#  555|   	nbytes = fread(bdz->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  556|   

Error: GCC_ANALYZER_WARNING: [#def145]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘bdz_ph_alloc_graph3’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:57:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:57:28: note: only use operands of an integer type inside the size argument
#   55|   {
#   56|   	graph3->edges=malloc(nedges*sizeof(bdz_ph_edge_t));
#   57|-> 	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   58|   	graph3->vert_degree=malloc((size_t)nvertices);	
#   59|   };

Error: GCC_ANALYZER_WARNING: [#def146]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:58:29: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:58:29: note: only use operands of an integer type inside the size argument
#   56|   	graph3->edges=malloc(nedges*sizeof(bdz_ph_edge_t));
#   57|   	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   58|-> 	graph3->vert_degree=malloc((size_t)nvertices);	
#   59|   };
#   60|   static void bdz_ph_init_graph3(bdz_ph_graph3_t * graph3, cmph_uint32 nedges, cmph_uint32 nvertices)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘bdz_ph_init_graph3’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:62:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.first_edge’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   60|   static void bdz_ph_init_graph3(bdz_ph_graph3_t * graph3, cmph_uint32 nedges, cmph_uint32 nvertices)
#   61|   {
#   62|-> 	memset(graph3->first_edge,0xff,nvertices*sizeof(cmph_uint32));
#   63|   	memset(graph3->vert_degree,0,(size_t)nvertices);
#   64|   	graph3->nedges=0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:63:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.vert_degree’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   61|   {
#   62|   	memset(graph3->first_edge,0xff,nvertices*sizeof(cmph_uint32));
#   63|-> 	memset(graph3->vert_degree,0,(size_t)nvertices);
#   64|   	graph3->nedges=0;
#   65|   };

Error: GCC_ANALYZER_WARNING (CWE-688): [#def149]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘bdz_ph_generate_queue’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:153:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_edge’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  151|   	cmph_uint32 tmp_edge;
#  152|   	cmph_uint8 * marked_edge =malloc((size_t)(nedges >> 3) + 1);
#  153|-> 	memset(marked_edge, 0, (size_t)(nedges >> 3) + 1);
#  154|   
#  155|   	for(i=0;i<nedges;i++){

Error: GCC_ANALYZER_WARNING (CWE-457): [#def150]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:156:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.vertices[0]’
#  154|   
#  155|   	for(i=0;i<nedges;i++){
#  156|-> 		v0=graph3->edges[i].vertices[0];
#  157|   		v1=graph3->edges[i].vertices[1];
#  158|   		v2=graph3->edges[i].vertices[2];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:163:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queue’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘bdz_ph_generate_queue’
#  161|   				graph3->vert_degree[v2]==1){
#  162|   			if(!GETBIT(marked_edge,i)) {
#  163|-> 				queue[queue_head++]=i;
#  164|   				SETBIT(marked_edge,i);
#  165|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘bdz_ph_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:324:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
#  322|   	#endif
#  323|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  324|-> 	mphf->algo = mph->algo;
#  325|   	bdz_phf = (bdz_ph_data_t *)malloc(sizeof(bdz_ph_data_t));
#  326|   	bdz_phf->g = bdz_ph->g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:326:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bdz_phf’
#  324|   	mphf->algo = mph->algo;
#  325|   	bdz_phf = (bdz_ph_data_t *)malloc(sizeof(bdz_ph_data_t));
#  326|-> 	bdz_phf->g = bdz_ph->g;
#  327|   	bdz_ph->g = NULL; //transfer memory ownership
#  328|   	bdz_phf->hl = bdz_ph->hl;

Error: GCC_ANALYZER_WARNING: [#def154]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘assigning’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:387:35: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:387:35: note: only use operands of an integer type inside the size argument
#  385|   	cmph_uint8 * marked_vertices =malloc((size_t)(bdz_ph->n >> 3) + 1);
#  386|   	cmph_uint32 sizeg = (cmph_uint32)ceil(bdz_ph->n/4.0);
#  387|-> 	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));	
#  388|   	memset(marked_vertices, 0, (size_t)(bdz_ph->n >> 3) + 1);
#  389|   	//memset(bdz_ph->g, 0xff, sizeg);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:388:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_vertices’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  386|   	cmph_uint32 sizeg = (cmph_uint32)ceil(bdz_ph->n/4.0);
#  387|   	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));	
#  388|-> 	memset(marked_vertices, 0, (size_t)(bdz_ph->n >> 3) + 1);
#  389|   	//memset(bdz_ph->g, 0xff, sizeg);
#  390|   

Error: GCC_ANALYZER_WARNING: [#def156]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘bdz_ph_optimization’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:432:44: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:432:44: note: only use operands of an integer type inside the size argument
#  430|   	cmph_uint8 byte = 0;
#  431|   	cmph_uint32 sizeg = (cmph_uint32)ceil(bdz_ph->n/5.0);
#  432|-> 	cmph_uint8 * new_g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));	
#  433|   	cmph_uint8 value;
#  434|   	cmph_uint32 idx;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:438:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_g’
#  436|   	{	
#  437|               idx = i/5;
#  438|->             byte = new_g[idx];
#  439|               value = GETVALUE(bdz_ph->g, i);
#  440|               byte = (cmph_uint8) (byte + value*pow3_table[i%5U]);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def158]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c: scope_hint: In function ‘bdz_ph_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:498:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:498:23: note: heap-based allocation
#  496|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  497|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  498|-> 	buf = (char *)malloc((size_t)buflen);
#  499|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  500|   	bdz_ph->hl = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING: [#def159]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:509:35: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:509:35: note: only use operands of an integer type inside the size argument
#  507|   	nbytes = fread(&(bdz_ph->r), sizeof(cmph_uint32), (size_t)1, f);	
#  508|   	sizeg = (cmph_uint32)ceil(bdz_ph->n/5.0);
#  509|-> 	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));
#  510|   	nbytes = fread(bdz_ph->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  511|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:5: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:80:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bdz_ph.g + (sizetype)(i >> 2)’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:439:21: note: in expansion of macro ‘GETVALUE’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bdz_ph.c:439:21: note: in expansion of macro ‘GETVALUE’
#   78|    * GETVALUE(array, i) is a macro that get a value for a 2-bit integer stored in an array.
#   79|    */
#   80|-> #define GETVALUE(array, i) ((cmph_uint8)((array[i >> 2] >> ((i & 0x00000003U) << 1U)) & 0x00000003U))
#   81|   
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_rank.c:6: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h: scope_hint: In function ‘set_bits_value’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:121:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
#  119|   	register cmph_uint32 shift2 = 32 - shift1;
#  120|   	
#  121|-> 	bits_table[word_idx] &= ~((string_mask) << shift1);
#  122|   	bits_table[word_idx] |= bits_string << shift1;
#  123|   	

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def162]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:126:59: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
#  124|   	if(shift2 < string_length)
#  125|   	{
#  126|-> 		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  127|   		bits_table[word_idx+1] |= bits_string >> shift2;
#  128|   	};

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def163]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:127:55: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
#  125|   	{
#  126|   		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  127|-> 		bits_table[word_idx+1] |= bits_string >> shift2;
#  128|   	};
#  129|   };

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def164]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h: scope_hint: In function ‘get_bits_value’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:142:56: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
#  140|   	
#  141|   	if(shift2 < string_length)
#  142|-> 		bits_string |= (bits_table[word_idx+1] << shift2) & string_mask;
#  143|   
#  144|   	return bits_string;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h: scope_hint: In function ‘set_bits_at_pos’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:154:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
#  152|   	register cmph_uint32 string_mask = (1U << string_length) - 1;
#  153|   	
#  154|-> 	bits_table[word_idx] &= ~((string_mask) << shift1);
#  155|   	bits_table[word_idx] |= bits_string << shift1;
#  156|   	if(shift2 < string_length)

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def166]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:158:59: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
#  156|   	if(shift2 < string_length)
#  157|   	{
#  158|-> 		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  159|   		bits_table[word_idx+1] |= bits_string >> shift2;
#  160|   	}

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def167]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:159:55: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
#  157|   	{
#  158|   		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  159|-> 		bits_table[word_idx+1] |= bits_string >> shift2;
#  160|   	}
#  161|   };

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def168]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h: scope_hint: In function ‘get_bits_at_pos’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:174:56: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
#  172|   
#  173|   	if(shift2 < string_length)
#  174|-> 		bits_string |= (bits_table[word_idx+1] << shift2) & string_mask;
#  175|   	return bits_string;
#  176|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c: scope_hint: In function ‘bmz_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:79:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bmz.hashes + (long unsigned int)i * 8’
#   77|   
#   78|   	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*3);
#   79|-> 	for(i = 0; i < 3; ++i) bmz->hashes[i] = NULL;
#   80|   
#   81|   	do

Error: GCC_ANALYZER_WARNING (CWE-688): [#def170]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:136:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visited’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  134|   	  DEBUGP("Searching step\n");
#  135|   	  visited = (cmph_uint8 *)malloc((size_t)bmz->n/8 + 1);
#  136|-> 	  memset(visited, 0, (size_t)bmz->n/8 + 1);
#  137|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz->m/8 + 1);
#  138|   	  memset(used_edges, 0, (size_t)bmz->m/8 + 1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def171]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:138:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘used_edges’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  136|   	  memset(visited, 0, (size_t)bmz->n/8 + 1);
#  137|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz->m/8 + 1);
#  138|-> 	  memset(used_edges, 0, (size_t)bmz->m/8 + 1);
#  139|   	  free(bmz->g);
#  140|   	  bmz->g = (cmph_uint32 *)calloc((size_t)bmz->n, sizeof(cmph_uint32));

Error: CPPCHECK_WARNING (CWE-401): [#def172]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:321: error[memleakOnRealloc]: Common realloc mistake: 'unused_g_values' nulled but not freed upon failure
#  319|   					        if(nunused_g_values == unused_g_values_capacity)
#  320|   						{
#  321|->    						        unused_g_values = (cmph_uint32 *)realloc(unused_g_values, (unused_g_values_capacity + BUFSIZ)*sizeof(cmph_uint32));
#  322|   						        unused_g_values_capacity += BUFSIZ;  							
#  323|   						} 

Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c: scope_hint: In function ‘bmz_traverse_critical_nodes_heuristic’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:324:85: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unused_g_values’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:7: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:310:61: note: in expansion of macro ‘GETBIT’
#  322|   						        unused_g_values_capacity += BUFSIZ;  							
#  323|   						} 
#  324|-> 						unused_g_values[nunused_g_values++] = next_g;							
#  325|   
#  326|   					}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c: scope_hint: In function ‘bmz_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:500:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmz’
#  498|   	mphf->data = bmz;
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|-> 	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|   	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def175]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:500:40: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘(long unsigned int)(nhashes + 1) * 8’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:500:40: note: heap-based allocation
#  498|   	mphf->data = bmz;
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|-> 	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|   	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-823): [#def176]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:501:30: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value ‘(long unsigned int)nhashes * 8’ as offset without upper-bounds checking
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|   	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|-> 	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);
#  503|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def177]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:508:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:508:31: note: heap-based allocation
#  506|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  507|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  508|-> 		buf = (char *)malloc((size_t)buflen);
#  509|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  510|   		state = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz.c:516:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  514|   
#  515|   	DEBUGP("Reading m and n\n");
#  516|-> 	nbytes = fread(&(bmz->n), sizeof(cmph_uint32), (size_t)1, f);	
#  517|   	nbytes = fread(&(bmz->m), sizeof(cmph_uint32), (size_t)1, f);	
#  518|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c: scope_hint: In function ‘bmz8_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:83:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bmz8.hashes + (long unsigned int)i * 8’
#   81|   
#   82|   	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*3);
#   83|-> 	for(i = 0; i < 3; ++i) bmz8->hashes[i] = NULL;
#   84|   
#   85|   	do

Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:142:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visited’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  140|   	  DEBUGP("Searching step\n");
#  141|   	  visited = (cmph_uint8 *)malloc((size_t)bmz8->n/8 + 1);
#  142|-> 	  memset(visited, 0, (size_t)bmz8->n/8 + 1);
#  143|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz8->m/8 + 1);
#  144|   	  memset(used_edges, 0, (size_t)bmz8->m/8 + 1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def181]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:144:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘used_edges’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  142|   	  memset(visited, 0, (size_t)bmz8->n/8 + 1);
#  143|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz8->m/8 + 1);
#  144|-> 	  memset(used_edges, 0, (size_t)bmz8->m/8 + 1);
#  145|   	  free(bmz8->g);
#  146|   	  bmz8->g = (cmph_uint8 *)calloc((size_t)bmz8->n, sizeof(cmph_uint8));

Error: CPPCHECK_WARNING (CWE-401): [#def182]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:330: error[memleakOnRealloc]: Common realloc mistake: 'unused_g_values' nulled but not freed upon failure
#  328|   					        if(nunused_g_values == unused_g_values_capacity)
#  329|   						{
#  330|-> 							unused_g_values = (cmph_uint8*)realloc(unused_g_values, ((size_t)(unused_g_values_capacity + BUFSIZ))*sizeof(cmph_uint8));
#  331|   						        unused_g_values_capacity += (cmph_uint8)BUFSIZ;  							
#  332|   						} 

Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c: scope_hint: In function ‘bmz8_traverse_critical_nodes_heuristic’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:333:85: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unused_g_values’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:7: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:319:61: note: in expansion of macro ‘GETBIT’
#  331|   						        unused_g_values_capacity += (cmph_uint8)BUFSIZ;  							
#  332|   						} 
#  333|-> 						unused_g_values[nunused_g_values++] = next_g;							
#  334|   
#  335|   					}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def184]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c: scope_hint: In function ‘bmz8_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:510:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmz8’
#  508|   	mphf->data = bmz8;
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|-> 	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|   	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def185]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:510:41: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘(long unsigned int)((int)nhashes + 1) * 8’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:510:41: note: heap-based allocation
#  508|   	mphf->data = bmz8;
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|-> 	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|   	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-823): [#def186]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:511:31: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value ‘(long unsigned int)nhashes * 8’ as offset without upper-bounds checking
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|   	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|-> 	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);
#  513|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def187]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:518:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:518:31: note: heap-based allocation
#  516|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  517|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  518|-> 		buf = (char *)malloc((size_t)buflen);
#  519|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  520|   		state = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bmz8.c:526:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  524|   
#  525|   	DEBUGP("Reading m and n\n");
#  526|-> 	nbytes = fread(&(bmz8->n), sizeof(cmph_uint8), (size_t)1, f);	
#  527|   	nbytes = fread(&(bmz8->m), sizeof(cmph_uint8), (size_t)1, f);	
#  528|   

Error: GCC_ANALYZER_WARNING: [#def189]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c: scope_hint: In function ‘brz_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:153:38: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:153:38: note: only use operands of an integer type inside the size argument
#  151|           brz->k = (cmph_uint32)ceil(brz->m/((double)brz->b));
#  152|   	DEBUGP("k: %u\n", brz->k);
#  153|-> 	brz->size   = (cmph_uint8 *) calloc((size_t)brz->k, sizeof(cmph_uint8));
#  154|   	
#  155|   	// Clustering the keys by graph id.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c: scope_hint: In function ‘brz_gen_mphf’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:263:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buckets_size’
#  261|   				fprintf(stderr, "Flushing  %u\n", nkeys_in_buffer);
#  262|   			}
#  263|-> 			value = buckets_size[0];
#  264|   			sum = 0;
#  265|   			keylen1 = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def191]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:286:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘filename’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#  284|   			}
#  285|   			filename = (char *)calloc(strlen((char *)(brz->tmp_dir)) + 11, sizeof(char));
#  286|-> 			sprintf(filename, "%s%u.cmph",brz->tmp_dir, nflushes);
#  287|   			tmp_fd = fopen(filename, "wb");
#  288|   			free(filename);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:292:69: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_index’
#  290|   			for(i = 0; i < nkeys_in_buffer; i++)
#  291|   			{
#  292|-> 				memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  293|   				nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  294|   			}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def193]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:293:42: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(filename, "wb")’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph.h:5: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.h:4: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:2: included_from: Included from here.
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
#  291|   			{
#  292|   				memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  293|-> 				nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  294|   			}
#  295|   			nkeys_in_buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def194]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:300:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(filename, "wb")’ where non-null expected
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
#  298|   			nflushes++;
#  299|   			free(keys_index);
#  300|-> 			fclose(tmp_fd);
#  301|   		}
#  302|   		memcpy(buffer + memory_usage, &keylen, sizeof(keylen));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:302:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
#  300|   			fclose(tmp_fd);
#  301|   		}
#  302|-> 		memcpy(buffer + memory_usage, &keylen, sizeof(keylen));
#  303|   		memcpy(buffer + memory_usage + sizeof(keylen), key, (size_t)keylen);
#  304|   		memory_usage += keylen + (cmph_uint32)sizeof(keylen);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:326:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buckets_size’
#  324|   			fprintf(stderr, "Flushing  %u\n", nkeys_in_buffer);
#  325|   		}
#  326|-> 		value = buckets_size[0];
#  327|   		sum = 0;
#  328|   		keylen1 = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def197]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:348:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘filename’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#  346|   		}
#  347|   		filename = (char *)calloc(strlen((char *)(brz->tmp_dir)) + 11, sizeof(char));
#  348|-> 		sprintf(filename, "%s%u.cmph",brz->tmp_dir, nflushes);
#  349|   		tmp_fd = fopen(filename, "wb");
#  350|   		free(filename);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:354:61: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_index’
#  352|   		for(i = 0; i < nkeys_in_buffer; i++)
#  353|   		{
#  354|-> 			memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  355|   			nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  356|   		}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def199]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:355:34: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(filename, "wb")’ where non-null expected
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
#  353|   		{
#  354|   			memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  355|-> 			nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  356|   		}
#  357|   		nkeys_in_buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def200]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:411:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer_h0’
#  409|   	{
#  410|   		i = brz_min_index(buffer_h0, nflushes);
#  411|-> 		cur_bucket = buffer_h0[i];
#  412|   		key = (char *)buffer_manager_read_key(buff_manager, i, &keylen);
#  413|   		if(key)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:420:53: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_vd’
#  418|   				h0 = hash(brz->h0, key+sizeof(keylen), keylen) % brz->k;
#  419|   				if (h0 != buffer_h0[i]) break;
#  420|-> 				keys_vd[nkeys_vd++] = (cmph_uint8 *)key;
#  421|   				key = NULL; //transfer memory ownership
#  422|   				e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def202]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:428:53: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_vd’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:17: included_from: Included from here.
#  426|   			{
#  427|   				assert(nkeys_vd < brz->size[cur_bucket]);
#  428|-> 				keys_vd[nkeys_vd++] = buffer_merge[i];
#  429|   				buffer_merge[i] = NULL; //transfer memory ownership
#  430|   				e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:428:67: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer_merge’
#  426|   			{
#  427|   				assert(nkeys_vd < brz->size[cur_bucket]);
#  428|-> 				keys_vd[nkeys_vd++] = buffer_merge[i];
#  429|   				buffer_merge[i] = NULL; //transfer memory ownership
#  430|   				e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:438:45: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_vd’
#  436|   		{
#  437|   			assert(nkeys_vd < brz->size[cur_bucket]);
#  438|-> 			keys_vd[nkeys_vd++] = buffer_merge[i];
#  439|   			buffer_merge[i] = NULL; //transfer memory ownership
#  440|   			e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def205]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:438:59: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer_merge’
#  436|   		{
#  437|   			assert(nkeys_vd < brz->size[cur_bucket]);
#  438|-> 			keys_vd[nkeys_vd++] = buffer_merge[i];
#  439|   			buffer_merge[i] = NULL; //transfer memory ownership
#  440|   			e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c: scope_hint: In function ‘brz_copy_partial_fch_mphf’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:539:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
#  537|   	*buflen = buflenh1 + buflenh2 + n + 2U * (cmph_uint32)sizeof(cmph_uint32);
#  538|   	buf = (char *)malloc((size_t)(*buflen));
#  539|-> 	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  540|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  541|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c: scope_hint: In function ‘brz_copy_partial_bmz8_mphf’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:560:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
#  558|   	*buflen = buflenh1 + buflenh2 + n + 2U * (cmph_uint32)sizeof(cmph_uint32);
#  559|   	buf = (char *)malloc((size_t)(*buflen));
#  560|-> 	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  561|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  562|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c: scope_hint: In function ‘brz_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:608:67: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘brz’
#  606|   	nbytes = fread(&(brz->algo), sizeof(brz->algo), (size_t)1, f); // Reading algo.
#  607|   	nbytes = fread(&(brz->k), sizeof(cmph_uint32), (size_t)1, f);
#  608|-> 	brz->size   = (cmph_uint8 *) malloc(sizeof(cmph_uint8)*brz->k);
#  609|   	nbytes = fread(brz->size, sizeof(cmph_uint8)*(brz->k), (size_t)1, f);	
#  610|   	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def209]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:620:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:620:31: note: heap-based allocation
#  618|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  619|   		DEBUGP("Hash state 1 has %u bytes\n", buflen);
#  620|-> 		buf = (char *)malloc((size_t)buflen);
#  621|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  622|   		brz->h1[i] = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def210]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:627:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:627:31: note: heap-based allocation
#  625|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  626|   		DEBUGP("Hash state 2 has %u bytes\n", buflen);
#  627|-> 		buf = (char *)malloc((size_t)buflen);
#  628|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  629|   		brz->h2[i] = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING: [#def211]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:642:43: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:642:43: note: only use operands of an integer type inside the size argument
#  640|   		}
#  641|   		DEBUGP("g_i has %u bytes\n", n);
#  642|-> 		brz->g[i] = (cmph_uint8 *)calloc((size_t)n, sizeof(cmph_uint8));
#  643|   		nbytes = fread(brz->g[i], sizeof(cmph_uint8)*n, (size_t)1, f);
#  644|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:643:35: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)n, 1)’
#  641|   		DEBUGP("g_i has %u bytes\n", n);
#  642|   		brz->g[i] = (cmph_uint8 *)calloc((size_t)n, sizeof(cmph_uint8));
#  643|-> 		nbytes = fread(brz->g[i], sizeof(cmph_uint8)*n, (size_t)1, f);
#  644|   	}
#  645|   	//loading h0

Error: GCC_ANALYZER_WARNING (CWE-789): [#def213]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:648:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/brz.c:648:23: note: heap-based allocation
#  646|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  647|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  648|-> 	buf = (char *)malloc((size_t)buflen);
#  649|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  650|   	brz->h0 = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def214]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/buffer_entry.c: scope_hint: In function ‘buffer_entry_read_key’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/buffer_entry.c:72:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*buffer_entry.buff + (sizetype)*buffer_entry.pos’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   70|   		buffer_entry_load(buffer_entry);
#   71|   	}
#   72|-> 	memcpy(keylen + copied_bytes, buffer_entry->buff + buffer_entry->pos, (size_t)lacked_bytes);
#   73|   	buffer_entry->pos += lacked_bytes;
#   74|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/buffer_entry.c:78:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
#   76|   	copied_bytes = 0;
#   77|   	buf = (cmph_uint8 *)malloc(*keylen + sizeof(*keylen));
#   78|->         memcpy(buf, keylen, sizeof(*keylen));
#   79|   	if((buffer_entry->pos + lacked_bytes) > buffer_entry->nbytes) {
#   80|   		copied_bytes = buffer_entry->nbytes - buffer_entry->pos;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def216]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/buffer_entry.c:87:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*buffer_entry.buff + (sizetype)*buffer_entry.pos’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   85|   		buffer_entry_load(buffer_entry);
#   86|   	}        
#   87|-> 	memcpy(buf+sizeof(*keylen)+copied_bytes, buffer_entry->buff + buffer_entry->pos, (size_t)lacked_bytes);
#   88|   	buffer_entry->pos += lacked_bytes;
#   89|   	return buf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/buffer_manager.c: scope_hint: In function ‘buffer_manager_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/buffer_manager.c:28:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)nentries, 8)’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/buffer_manager.c:4: included_from: Included from here.
#   26|   	for(i = 0; i < buff_manager->nentries; i++)
#   27|   	{
#   28|-> 		buff_manager->buffer_entries[i] = buffer_entry_new(memory_avail_entry);
#   29|   	}	
#   30|   	return buff_manager;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c: scope_hint: In function ‘chd_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c:133:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘vals_table’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c:13: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c:131:21: note: in expansion of macro ‘GETBIT32’
#  131|   		if(!GETBIT32(occup_table, i))
#  132|   		{
#  133|-> 			vals_table[idx++] = i;
#  134|   		}
#  135|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c:146:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
#  144|   
#  145|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  146|-> 	mphf->algo = mph->algo;
#  147|   	chdf = (chd_data_t *)malloc(sizeof(chd_data_t));
#  148|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c:149:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chdf’
#  147|   	chdf = (chd_data_t *)malloc(sizeof(chd_data_t));
#  148|   	
#  149|-> 	chdf->packed_cr = packed_cr;
#  150|   	packed_cr = NULL; //transfer memory ownership
#  151|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c: scope_hint: In function ‘chd_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c:186:64: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chd’
#  184|   	nbytes = fread(&chd->packed_chd_phf_size, sizeof(cmph_uint32), (size_t)1, fd);
#  185|   	DEBUGP("Loading CHD_PH perfect hash function with %u bytes to disk\n", chd->packed_chd_phf_size);
#  186|-> 	chd->packed_chd_phf = (cmph_uint8 *) calloc((size_t)chd->packed_chd_phf_size,(size_t)1);
#  187|   	nbytes = fread(chd->packed_chd_phf, chd->packed_chd_phf_size, (size_t)1, fd);
#  188|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd.c:189:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  187|   	nbytes = fread(chd->packed_chd_phf, chd->packed_chd_phf_size, (size_t)1, fd);
#  188|   
#  189|-> 	nbytes = fread(&chd->packed_cr_size, sizeof(cmph_uint32), (size_t)1, fd);
#  190|   	DEBUGP("Loading Compressed rank structure, which has %u bytes\n", chd->packed_cr_size);
#  191|   	chd->packed_cr = (cmph_uint8 *) calloc((size_t)chd->packed_cr_size, (size_t)1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:87:67: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tmp_map_item’
#   85|   	register chd_ph_item_t * tmp_item;
#   86|   	register chd_ph_map_item_t * tmp_map_item = map_items + item_idx;
#   87|-> 	register chd_ph_bucket_t * bucket = buckets + tmp_map_item->bucket_num;
#   88|   	tmp_item = items + bucket->items_list;
#   89|   	

Error: GCC_ANALYZER_WARNING (CWE-457): [#def224]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c: scope_hint: In function ‘chd_ph_bucket_insert’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:87:67: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*tmp_map_item.bucket_num’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:6: included_from: Included from here.
#   85|   	register chd_ph_item_t * tmp_item;
#   86|   	register chd_ph_map_item_t * tmp_map_item = map_items + item_idx;
#   87|-> 	register chd_ph_bucket_t * bucket = buckets + tmp_map_item->bucket_num;
#   88|   	tmp_item = items + bucket->items_list;
#   89|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def225]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c: scope_hint: In function ‘chd_ph_mapping’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:248:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map_item’
#  246|   
#  247|   			g = hl[0] % chd_ph->nbuckets;
#  248|-> 			map_item->f = hl[1] % chd_ph->n;
#  249|   			map_item->h = hl[2] % (chd_ph->n - 1) + 1;
#  250|   			map_item->bucket_num=g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def226]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c: scope_hint: In function ‘chd_ph_ordering’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:314:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sorted_lists’
#  312|   		sorted_lists[bucket_size].size++;
#  313|   	};
#  314|-> 	sorted_lists[1].buckets_list = 0;
#  315|   	// Determine final position of list of buckets into the contiguous array that will store all the buckets
#  316|   	for(i = 2; i <= max_bucket_size; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c: scope_hint: In function ‘chd_ph_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:808:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
#  806|   
#  807|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  808|-> 	mphf->algo = mph->algo;
#  809|   	chd_phf = (chd_ph_data_t *)malloc(sizeof(chd_ph_data_t));
#  810|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:811:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chd_phf’
#  809|   	chd_phf = (chd_ph_data_t *)malloc(sizeof(chd_ph_data_t));
#  810|   	
#  811|-> 	chd_phf->cs = chd_ph->cs;
#  812|   	chd_ph->cs = NULL; //transfer memory ownership
#  813|   	chd_phf->hl = chd_ph->hl;

Error: GCC_ANALYZER_WARNING (CWE-789): [#def229]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c: scope_hint: In function ‘chd_ph_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:850:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:850:23: note: heap-based allocation
#  848|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, fd);
#  849|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  850|-> 	buf = (char *)malloc((size_t)buflen);
#  851|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  852|   	chd_ph->hl = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def230]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:857:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chd_ph.c:857:23: note: heap-based allocation
#  855|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, fd);
#  856|   	DEBUGP("Compressed sequence structure has %u bytes\n", buflen);
#  857|-> 	buf = (char *)malloc((size_t)buflen);
#  858|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  859|   	chd_ph->cs = (compressed_seq_t *) calloc(1, sizeof(compressed_seq_t)); 

Error: GCC_ANALYZER_WARNING (CWE-476): [#def231]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c: scope_hint: In function ‘chm_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:71:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*chm.hashes + (long unsigned int)i * 8’
#   69|   
#   70|   	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*3);
#   71|-> 	for(i = 0; i < 3; ++i) chm->hashes[i] = NULL;
#   72|   	//Mapping step
#   73|   	if (mph->verbosity)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def232]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:112:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visited’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  110|   	DEBUGP("Assignment step\n");
#  111|    	visited = (cmph_uint8 *)malloc((size_t)(chm->n/8 + 1));
#  112|-> 	memset(visited, 0, (size_t)(chm->n/8 + 1));
#  113|   	free(chm->g);
#  114|   	chm->g = (cmph_uint32 *)malloc(chm->n * sizeof(cmph_uint32));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:129:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:11: included_from: Included from here.
#  127|   
#  128|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  129|-> 	mphf->algo = mph->algo;
#  130|   	chmf = (chm_data_t *)malloc(sizeof(chm_data_t));
#  131|   	chmf->g = chm->g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:131:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chmf’
#  129|   	mphf->algo = mph->algo;
#  130|   	chmf = (chm_data_t *)malloc(sizeof(chm_data_t));
#  131|-> 	chmf->g = chm->g;
#  132|   	chm->g = NULL; //transfer memory ownership
#  133|   	chmf->hashes = chm->hashes;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c: scope_hint: In function ‘chm_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:252:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chm’
#  250|   	mphf->data = chm;
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|-> 	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|   	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def236]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:252:40: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘(long unsigned int)(nhashes + 1) * 8’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:252:40: note: heap-based allocation
#  250|   	mphf->data = chm;
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|-> 	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|   	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-823): [#def237]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:253:30: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value ‘(long unsigned int)nhashes * 8’ as offset without upper-bounds checking
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|   	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|-> 	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);
#  255|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def238]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:260:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:260:31: note: heap-based allocation
#  258|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  259|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  260|-> 		buf = (char *)malloc((size_t)buflen);
#  261|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  262|   		state = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/chm.c:268:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  266|   
#  267|   	DEBUGP("Reading m and n\n");
#  268|-> 	nbytes = fread(&(chm->n), sizeof(cmph_uint32), (size_t)1, f);	
#  269|   	nbytes = fread(&(chm->m), sizeof(cmph_uint32), (size_t)1, f);	
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def240]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph.c: scope_hint: In function ‘key_byte_vector_read’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph.c:89:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*key’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   87|   	size = *keylen;
#   88|   	*key = (char *)malloc(size);
#   89|-> 	memcpy(*key, keys_vd[cmph_vector->position] + sizeof(*keylen), size);
#   90|   	cmph_vector->position = cmph_vector->position + 1;
#   91|   	return (int)(*keylen);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def241]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph.c: scope_hint: In function ‘key_struct_vector_read’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph.c:103:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*key’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  101|       size = *keylen;
#  102|       *key = (char *)malloc(size);
#  103|->     memcpy(*key, (keys_vd + (cmph_struct_vector->position * cmph_struct_vector->struct_size) + cmph_struct_vector->key_offset), size);
#  104|       cmph_struct_vector->position = cmph_struct_vector->position + 1;
#  105|       return (int)(*keylen);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def242]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph.c: scope_hint: In function ‘key_vector_read’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph.c:116:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*key’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  114|   	size = *keylen;
#  115|           *key = (char *)malloc(size + 1);
#  116|->         strcpy(*key, keys_vd[cmph_vector->position]);
#  117|           cmph_vector->position = cmph_vector->position + 1;
#  118|   	return (int)(*keylen);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def243]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph_structs.c: scope_hint: In function ‘__config_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph_structs.c:12:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mph’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   10|   {
#   11|   	cmph_config_t *mph = (cmph_config_t *)malloc(sizeof(cmph_config_t));
#   12|-> 	memset(mph, 0, sizeof(cmph_config_t));
#   13|   	if (mph == NULL) return NULL;
#   14|   	mph->key_source = key_source;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph_structs.c: scope_hint: In function ‘__cmph_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/cmph_structs.c:65:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
#   63|   	}
#   64|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#   65|-> 	mphf->algo = algo;
#   66|   	nbytes = fread(&(mphf->size), sizeof(mphf->size), (size_t)1, f);
#   67|   	mphf->data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_rank.c: scope_hint: In function ‘compressed_rank_generate’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_rank.c:64:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘select_vec’
#   62|   			j++;
#   63|   		}
#   64|-> 		select_vec[i - 1] = j;
#   65|   	};
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def246]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_rank.c: scope_hint: In function ‘compressed_rank_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_rank.c:238:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cr.vals_rems’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:111:43: note: in definition of macro ‘BITS_TABLE_SIZE’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  236|   	cr->vals_rems = (cmph_uint32 *) calloc(vals_rems_size, sizeof(cmph_uint32));
#  237|   	vals_rems_size *= 4;
#  238|-> 	memcpy(cr->vals_rems, buf + pos, vals_rems_size);
#  239|   	
#  240|   	#ifdef DEBUG	

Error: GCC_ANALYZER_WARNING (CWE-688): [#def247]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_rank.c: scope_hint: In function ‘compressed_rank_pack’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_rank.c:260:17: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  258|   		cmph_uint32 buflen = 0;
#  259|   		compressed_rank_dump(cr, &buf, &buflen);
#  260|-> 		memcpy(cr_packed, buf, buflen);
#  261|   		free(buf);
#  262|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def248]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c: scope_hint: In function ‘compressed_seq_generate’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c:60:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lengths’
#   58|   		if(vals_table[i] == 0)
#   59|   		{
#   60|-> 			lengths[i] = 0;
#   61|   		}
#   62|   		else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c:64:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lengths’
#   62|   		else
#   63|   		{
#   64|-> 			lengths[i] = compressed_seq_i_log2(vals_table[i] + 1);
#   65|   			cs->total_length += lengths[i];
#   66|   		};

Error: GCC_ANALYZER_WARNING (CWE-688): [#def250]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c: scope_hint: In function ‘compressed_seq_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c:287:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cs.length_rems’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/bitbool.h:111:43: note: in definition of macro ‘BITS_TABLE_SIZE’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  285|   	cs->length_rems = (cmph_uint32 *) calloc(length_rems_size, sizeof(cmph_uint32));
#  286|   	length_rems_size *= 4;
#  287|-> 	memcpy(cs->length_rems, buf + pos, length_rems_size);
#  288|   	
#  289|   	#ifdef DEBUG

Error: GCC_ANALYZER_WARNING (CWE-688): [#def251]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c:305:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cs.store_table’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  303|   	cs->store_table = (cmph_uint32 *) calloc(store_table_size, sizeof(cmph_uint32));
#  304|           store_table_size *= 4;
#  305|-> 	memcpy(cs->store_table, buf + pos, store_table_size);
#  306|   	
#  307|   	#ifdef DEBUG

Error: GCC_ANALYZER_WARNING (CWE-688): [#def252]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c: scope_hint: In function ‘compressed_seq_pack’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/compressed_seq.c:324:17: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  322|   		cmph_uint32 buflen = 0;
#  323|   		compressed_seq_dump(cs, &buf, &buflen);
#  324|-> 		memcpy(cs_packed, buf, buflen);
#  325|   		free(buf);
#  326|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def253]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c: scope_hint: In function ‘check_for_collisions_h2’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:132:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘hashtable’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  130|   	{
#  131|   		cmph_uint32 nkeys = fch_buckets_get_size(buckets, sorted_indexes[i]);
#  132|-> 		memset(hashtable, 0, (size_t)fch->m);
#  133|   		//DEBUGP("bucket %u -- nkeys: %u\n", i, nkeys);
#  134|   		for (j = 0; j < nkeys; j++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c: scope_hint: In function ‘searching’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:177:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
#  175|   	for(i = 0; i < fch->m; i++)
#  176|   	{
#  177|-> 		random_table[i] = i;
#  178|   	}
#  179|   	permut(random_table, fch->m);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:182:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
#  180|   	for(i = 0; i < fch->m; i++)
#  181|   	{
#  182|-> 		map_table[random_table[i]] = i;
#  183|   	}
#  184|   	do {   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def256]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:212:83: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
#  210|   				counter = 0; 
#  211|   				restart = 0; // false
#  212|-> 				fch->g[sorted_indexes[i]] = (fch->m + random_table[filled_count + z] - h2) % fch->m;
#  213|   				//DEBUGP("g[%u]: %u\n", sorted_indexes[i], fch->g[sorted_indexes[i]]);
#  214|   				j = INDEX;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c: scope_hint: In function ‘fch_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:294:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c: scope_hint: In function ‘fch_new’
#  292|   	if (iterations == 0) return NULL;
#  293|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  294|-> 	mphf->algo = mph->algo;
#  295|   	fchf = (fch_data_t *)malloc(sizeof(fch_data_t));
#  296|   	fchf->g = fch->g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def258]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:296:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fchf’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c: scope_hint: In function ‘fch_new’
#  294|   	mphf->algo = mph->algo;
#  295|   	fchf = (fch_data_t *)malloc(sizeof(fch_data_t));
#  296|-> 	fchf->g = fch->g;
#  297|   	fch->g = NULL; //transfer memory ownership
#  298|   	fchf->h1 = fch->h1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def259]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c: scope_hint: In function ‘fch_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:373:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fch’
#  371|   	mphf->data = fch;
#  372|   	//DEBUGP("Reading h1\n");
#  373|-> 	fch->h1 = NULL;
#  374|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  375|   	//DEBUGP("Hash state of h1 has %u bytes\n", buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def260]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:376:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:376:23: note: heap-based allocation
#  374|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  375|   	//DEBUGP("Hash state of h1 has %u bytes\n", buflen);
#  376|-> 	buf = (char *)malloc((size_t)buflen);
#  377|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  378|   	fch->h1 = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def261]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:387:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/fch.c:387:23: note: heap-based allocation
#  385|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  386|   	//DEBUGP("Hash state of h2 has %u bytes\n", buflen);
#  387|-> 	buf = (char *)malloc((size_t)buflen);
#  388|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  389|   	fch->h2 = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c: scope_hint: In function ‘graph_clear_edges’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c:165:53: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*g.first + (long unsigned int)i * 4’
#  163|   {
#  164|   	cmph_uint32 i;
#  165|-> 	for (i = 0; i < g->nnodes; ++i) g->first[i] = EMPTY;
#  166|   	for (i = 0; i < g->nedges*2; ++i) 
#  167|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c:168:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*g.edges + (long unsigned int)i * 4’
#  166|   	for (i = 0; i < g->nedges*2; ++i) 
#  167|   	{
#  168|-> 		g->edges[i] = EMPTY;
#  169|   		g->next[i] = EMPTY;
#  170|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c:169:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*g.next + (long unsigned int)i * 4’
#  167|   	{
#  168|   		g->edges[i] = EMPTY;
#  169|-> 		g->next[i] = EMPTY;
#  170|   	}
#  171|   	g->cedges = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def265]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c: scope_hint: In function ‘graph_is_cyclic’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c:234:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘deleted’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  232|   	cmph_uint8 *deleted = (cmph_uint8 *)malloc((g->nedges*sizeof(cmph_uint8))/8 + 1);
#  233|   	size_t deleted_len = g->nedges/8 + 1;
#  234|-> 	memset(deleted, 0, deleted_len);
#  235|   
#  236|   	DEBUGP("Looking for cycles in graph with %u vertices and %u edges\n", g->nnodes, g->nedges);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def266]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c: scope_hint: In function ‘graph_obtain_critical_nodes’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c:265:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘deleted’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  263|   	cmph_uint8 *deleted = (cmph_uint8 *)malloc((g->nedges*sizeof(cmph_uint8))/8+1);
#  264|   	size_t deleted_len = g->nedges/8 + 1;
#  265|-> 	memset(deleted, 0, deleted_len);
#  266|   	free(g->critical_nodes);
#  267|   	g->critical_nodes = (cmph_uint8 *)malloc((g->nnodes*sizeof(cmph_uint8))/8 + 1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def267]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/graph.c:269:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*g.critical_nodes’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  267|   	g->critical_nodes = (cmph_uint8 *)malloc((g->nnodes*sizeof(cmph_uint8))/8 + 1);
#  268|   	g->ncritical_nodes = 0;
#  269|-> 	memset(g->critical_nodes, 0, (g->nnodes*sizeof(cmph_uint8))/8 + 1);
#  270|   	DEBUGP("Looking for the 2-core in graph with %u vertices and %u edges\n", g->nnodes, g->nedges);
#  271|   	for (v = 0; v < g->nnodes; ++v)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def268]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/hash.c: scope_hint: In function ‘hash_state_dump’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/hash.c:68:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*buf’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   66|   	}
#   67|   	*buf = (char *)malloc(strlen(cmph_hash_names[state->hashfunc]) + 1 + *buflen);
#   68|-> 	memcpy(*buf, cmph_hash_names[state->hashfunc], strlen(cmph_hash_names[state->hashfunc]) + 1);
#   69|   	DEBUGP("Algobuf is %u\n", *(cmph_uint32 *)algobuf);
#   70|   	len = *buflen;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/jenkins_hash.c: scope_hint: In function ‘jenkins_state_new’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/jenkins_hash.c:91:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
#   89|   	jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#   90|   	DEBUGP("Initializing jenkins hash\n");
#   91|-> 	state->seed = ((cmph_uint32)rand() % size);
#   92|   	return state;
#   93|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/jenkins_hash.c: scope_hint: In function ‘jenkins_state_copy’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/jenkins_hash.c:237:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dest_state’
#  235|   {
#  236|   	jenkins_state_t *dest_state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  237|-> 	dest_state->hashfunc = src_state->hashfunc;
#  238|   	dest_state->seed = src_state->seed;
#  239|   	return dest_state;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/jenkins_hash.c: scope_hint: In function ‘jenkins_state_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/jenkins_hash.c:245:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
#  243|   {
#  244|   	jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  245|-> 	state->seed = *(cmph_uint32 *)buf;
#  246|   	state->hashfunc = CMPH_HASH_JENKINS;
#  247|   	DEBUGP("Loaded jenkins state with seed %u\n", state->seed);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c: scope_hint: In function ‘select_generate_sel_table’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c:84:65: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
#   82|   		{
#   83|   			old_part_sum = part_sum; 
#   84|-> 			part_sum += rank_lookup_table[bits_table[vec_idx]];
#   85|   			vec_idx++;
#   86|   		} while (part_sum <= one_idx);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c:88:50: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*sel.select_table’
#   86|   		} while (part_sum <= one_idx);
#   87|   		
#   88|-> 		sel->select_table[sel_table_idx] = select_lookup_table[bits_table[vec_idx - 1]][one_idx - old_part_sum] + ((vec_idx - 1) << 3); // ((vec_idx - 1) << 3) = ((vec_idx - 1) * 8)
#   89|   		one_idx += STEP_SELECT_TABLE ;
#   90|   		sel_table_idx++;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def274]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c: scope_hint: In function ‘select_load’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c:278:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*sel.bits_vec’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  276|   	sel->select_table = (cmph_uint32 *)calloc(sel_table_size/sizeof(cmph_uint32), sizeof(cmph_uint32));
#  277|   
#  278|-> 	memcpy(sel->bits_vec, buf + pos, vec_size);
#  279|   	pos += vec_size;
#  280|   	memcpy(sel->select_table, buf + pos, sel_table_size);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def275]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c:280:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*sel.select_table’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  278|   	memcpy(sel->bits_vec, buf + pos, vec_size);
#  279|   	pos += vec_size;
#  280|-> 	memcpy(sel->select_table, buf + pos, sel_table_size);
#  281|   	
#  282|   	DEBUGP("Loaded select structure with size %u bytes\n", buflen);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def276]
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c: scope_hint: In function ‘select_pack’
glib2-2.83.0-build/glib-2.83.0/girepository/cmph/select.c:298:17: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  296|   		cmph_uint32 buflen = 0;
#  297|   		select_dump(sel, &buf, &buflen);
#  298|-> 		memcpy(sel_packed, buf, buflen);
#  299|   		free(buf);
#  300|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def277]
glib2-2.83.0-build/glib-2.83.0/girepository/compiler/compiler.c: scope_hint: In function ‘write_out_typelib’
glib2-2.83.0-build/glib-2.83.0/girepository/compiler/compiler.c:131:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib2-2.83.0-build/glib-2.83.0/girepository/compiler/compiler.c:33: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/compiler/compiler.c:89:14: note: in expansion of macro ‘g_fopen’
glib2-2.83.0-build/glib-2.83.0/girepository/compiler/compiler.c:25: included_from: Included from here.
#  129|     g_free (tmp_filename);
#  130|   
#  131|->   return success;
#  132|   }
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
glib2-2.83.0-build/glib-2.83.0/girepository/compiler/compiler.c:131:10: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib2-2.83.0-build/glib-2.83.0/girepository/compiler/compiler.c:89:14: note: in expansion of macro ‘g_fopen’
#  129|     g_free (tmp_filename);
#  130|   
#  131|->   return success;
#  132|   }
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c: scope_hint: In function ‘gi_info_from_entry’
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c:506:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c:492:31: note: in expansion of macro ‘gi_typelib_get_string’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c:341:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c:341:3: note: in expansion of macro ‘g_return_val_if_fail’
#  504|                                                                 entry->offset);
#  505|   
#  506|->           unresolved->name = name;
#  507|             unresolved->namespace = namespace;
#  508|   

Error: CPPCHECK_WARNING (CWE-457): [#def280]
glib2-2.83.0-build/glib-2.83.0/girepository/gibaseinfo.c:915: error[uninitvar]: Uninitialized variables: &blob.name, &blob.value
#  913|     first = (AttributeBlob *) &rinfo->typelib->data[header->attributes];
#  914|   
#  915|->   res = bsearch (&blob, first, header->n_attributes,
#  916|                    header->attribute_blob_size, cmp_attribute);
#  917|   

Error: COMPILER_WARNING (CWE-476): [#def281]
glib2-2.83.0-build/glib-2.83.0/girepository/girparser.c:679:11: warning[-Wnull-dereference]: potential null pointer dereference
#  679 |       if (*str == '<')
#      |           ^~~~
#  677|         g_assert (str != NULL);
#  678|   
#  679|->       if (*str == '<')
#  680|           {
#  681|             char *tmp, *end;

Error: CPPCHECK_WARNING (CWE-457): [#def282]
glib2-2.83.0-build/glib-2.83.0/girepository/girparser.c:1711: error[legacyUninitvar]: Uninitialized variable: target_state
# 1709|       g_assert_not_reached ();
# 1710|   
# 1711|->   if (!introspectable_prelude (context, attribute_names, attribute_values, ctx, target_state))
# 1712|       return TRUE;
# 1713|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def283]
glib2-2.83.0-build/glib-2.83.0/glib/deprecated/gcompletion.c: scope_hint: In function ‘completion_check_cache’
glib2-2.83.0-build/glib-2.83.0/glib/deprecated/gcompletion.c:254:9: warning[-Wanalyzer-null-argument]: use of NULL ‘*cmp.prefix’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gutils.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmem.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glist.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/deprecated/gcompletion.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/deprecated/gcompletion.c:38: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/deprecated/gcompletion.c:359:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/deprecated/gcompletion.c:360:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/deprecated/gcompletion.c:360:3: note: in expansion of macro ‘g_return_val_if_fail’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  252|       }
#  253|     
#  254|->   len = strlen(cmp->prefix);
#  255|     list = cmp->cache;
#  256|     s = cmp->func ? cmp->func (list->data) : (gchar*) list->data;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def284]
glib2-2.83.0-build/glib-2.83.0/glib/garray.c: scope_hint: In function ‘g_array_new_take’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:192:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/garray.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:186:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:187:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:187:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:188:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:188:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:43: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
#  190|     array = g_array_sized_new (FALSE, clear, element_size, 0);
#  191|     rarray = (GRealArray *) array;
#  192|->   rarray->data = (guint8 *) g_steal_pointer (&data);
#  193|     rarray->len = len;
#  194|     rarray->elt_capacity = len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def285]
glib2-2.83.0-build/glib-2.83.0/glib/garray.c: scope_hint: In function ‘g_array_copy’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:1591:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:1586:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/garray.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
# 1589|       (GRealArray *) g_array_sized_new (rarray->zero_terminated, rarray->clear,
# 1590|                                         rarray->elt_size, rarray->elt_capacity);
# 1591|->   new_rarray->len = rarray->len;
# 1592|     if (rarray->len > 0)
# 1593|       memcpy (new_rarray->data, rarray->data, rarray->len * rarray->elt_size);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def286]
glib2-2.83.0-build/glib-2.83.0/glib/gthread.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gasyncqueue.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/thread-pool.c:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/thread-pool.c: scope_hint: In function ‘test_thread_pool_full’
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:5: warning[-Wanalyzer-infinite-loop]: infinite loop
glib2-2.83.0-build/glib-2.83.0/glib/tests/thread-pool.c:246:14: note: in expansion of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/glib/tests/thread-pool.c:246:14: note: in expansion of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/glib/tests/thread-pool.c:246:14: note: in expansion of macro ‘g_atomic_int_get’
#  112|       gint gaig_temp;                                                          \
#  113|       (void) (0 ? *(atomic) ^ *(atomic) : 1);                                  \
#  114|->     __atomic_load ((gint *)(atomic), &gaig_temp, __ATOMIC_SEQ_CST);          \
#  115|       (gint) gaig_temp;                                                        \
#  116|     }))

Error: GCC_ANALYZER_WARNING (CWE-835): [#def287]
glib2-2.83.0-build/glib-2.83.0/glib/gthread.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gasyncqueue.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/tests/threadtests.c:29: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/tests/threadtests.c: scope_hint: In function ‘on_weak_ref_disposed’
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:114:20: warning[-Wanalyzer-infinite-loop]: infinite loop
glib2-2.83.0-build/glib-2.83.0/gobject/tests/threadtests.c:364:11: note: in expansion of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/threadtests.c:364:11: note: in expansion of macro ‘g_atomic_int_get’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/threadtests.c:364:11: note: in expansion of macro ‘g_atomic_int_get’
#  112|       gint gaig_temp;                                                          \
#  113|       (void) (0 ? *(atomic) ^ *(atomic) : 1);                                  \
#  114|->     __atomic_load ((gint *)(atomic), &gaig_temp, __ATOMIC_SEQ_CST);          \
#  115|       (gint) gaig_temp;                                                        \
#  116|     }))

Error: GCC_ANALYZER_WARNING (CWE-835): [#def288]
glib2-2.83.0-build/glib-2.83.0/gio/tests/cancellable.c: scope_hint: In function ‘test_cancellable_disconnect_on_cancelled_callback_hangs’
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:131:5: warning[-Wanalyzer-infinite-loop]: infinite loop
glib2-2.83.0-build/glib-2.83.0/gio/tests/cancellable.c:554:11: note: in expansion of macro ‘g_atomic_pointer_get’
glib2-2.83.0-build/glib-2.83.0/gio/tests/cancellable.c:554:11: note: in expansion of macro ‘g_atomic_pointer_get’
glib2-2.83.0-build/glib-2.83.0/gio/tests/cancellable.c:554:11: note: in expansion of macro ‘g_atomic_pointer_get’
#  129|       glib_typeof (*(atomic)) gapg_temp_newval;                              \
#  130|       glib_typeof ((atomic)) gapg_temp_atomic = (atomic);                    \
#  131|->     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
#  132|       gapg_temp_newval;                                                      \
#  133|     }))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def289]
glib2-2.83.0-build/glib-2.83.0/glib/gbacktrace.c: scope_hint: In function ‘checked_dup’
glib2-2.83.0-build/glib-2.83.0/glib/gbacktrace.c:371:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘new_fd’
glib2-2.83.0-build/glib-2.83.0/glib/gbacktrace.c:48: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-unixprivate.h:36: included_from: Included from here.
#  369|       }
#  370|   
#  371|->   return new_fd;
#  372|   }
#  373|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def290]
glib2-2.83.0-build/glib-2.83.0/glib/gbacktrace.c: scope_hint: In function ‘stack_trace’
glib2-2.83.0-build/glib-2.83.0/glib/gbacktrace.c:424:11: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘2’
#  422|         if (old_err != -1)
#  423|           {
#  424|->           close (2);
#  425|             /* We can ignore the return value here as we're failing anyways */
#  426|             (void) !dup (old_err);

Error: GCC_ANALYZER_WARNING (CWE-787): [#def291]
glib2-2.83.0-build/glib-2.83.0/gobject/gvalue.c:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gbsearcharray.h: scope_hint: In function ‘g_bsearch_array_create’
glib2-2.83.0-build/glib-2.83.0/glib/gbsearcharray.h:133:3: warning[-Wanalyzer-out-of-bounds]: buffer overflow
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gvalue.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gvalue.c:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gbsearcharray.h:127:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gbsearcharray.h:131:12: note: in expansion of macro ‘G_BSEARCH_UPPER_POWER2’
glib2-2.83.0-build/glib-2.83.0/glib/gbsearcharray.h:131:12: note: in expansion of macro ‘G_BSEARCH_UPPER_POWER2’
#  131|       size = G_BSEARCH_UPPER_POWER2 (size);
#  132|     barray = (GBSearchArray *) g_malloc (size);
#  133|->   memset (barray, 0, sizeof (GBSearchArray));
#  134|   
#  135|     return barray;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c: scope_hint: In function ‘g_convert’
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c:480:6: warning[-Wanalyzer-malloc-leak]: leak of ‘open_converter(to_codeset,  from_codeset,  error)’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c:474:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c:475:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c:475:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c:476:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.c:476:3: note: in expansion of macro ‘g_return_val_if_fail’
#  478|     cd = open_converter (to_codeset, from_codeset, error);
#  479|   
#  480|->   if (cd == (GIConv) -1)
#  481|       {
#  482|         if (bytes_read)

Error: GCC_ANALYZER_WARNING (CWE-465): [#def293]
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c: scope_hint: In function ‘g_dataset_destroy_internal’
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c:359:10: warning[-Wanalyzer-deref-before-check]: check of ‘dataset’ for NULL after already dereferencing it
#  357|     
#  358|     dataset_location = dataset->location;
#  359|->   while (dataset)
#  360|       {
#  361|         GData *data;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def294]
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c: scope_hint: In function ‘g_data_remove_internal’
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c:572:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘old’
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c:50: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:114:28: note: in definition of macro ‘g_alloca0’
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c:552:11: note: in expansion of macro ‘g_newa0’
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c:552:11: note: in expansion of macro ‘g_newa0’
#  570|                 /* We must invoke the destroy notifications in the order of @keys.
#  571|                  * Hence, build up the list @old at index @i_keys. */
#  572|->               old[i_keys] = *data;
#  573|                 found_keys++;
#  574|                 remove = TRUE;

Error: CPPCHECK_WARNING (CWE-562): [#def295]
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c:996: error[returnDanglingLifetime]: Returning pointer to local variable 'new_data' that will be invalid when returning.
#  994|       g_datalist_unlock (datalist);
#  995|   
#  996|->   return result;
#  997|   }
#  998|   

Error: CPPCHECK_WARNING (CWE-562): [#def296]
glib2-2.83.0-build/glib-2.83.0/glib/gdataset.c:996: error[returnDanglingLifetime]: Returning pointer to local variable 'new_destroy' that will be invalid when returning.
#  994|       g_datalist_unlock (datalist);
#  995|   
#  996|->   return result;
#  997|   }
#  998|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def297]
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c: scope_hint: In function ‘g_get_current_dir’
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:2994:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buffer’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:22: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:2988:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:2988:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:2993:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:2993:7: note: in expansion of macro ‘g_assert’
# 2992|         /* Fallback return value */
# 2993|         g_assert (buffer_size >= 2);
# 2994|->       buffer[0] = G_DIR_SEPARATOR;
# 2995|         buffer[1] = 0;
# 2996|       }

Error: COMPILER_WARNING (CWE-476): [#def298]
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:2994:17: warning[-Wnull-dereference]: potential null pointer dereference
# 2994 |       buffer[0] = G_DIR_SEPARATOR;
# 2992|         /* Fallback return value */
# 2993|         g_assert (buffer_size >= 2);
# 2994|->       buffer[0] = G_DIR_SEPARATOR;
# 2995|         buffer[1] = 0;
# 2996|       }

Error: COMPILER_WARNING (CWE-476): [#def299]
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c: scope_hint: In function ‘g_get_current_dir’
glib2-2.83.0-build/glib-2.83.0/glib/gfileutils.c:2995:17: warning[-Wnull-dereference]: potential null pointer dereference
# 2995 |       buffer[1] = 0;
#      |       ~~~~~~~~~~^~~
# 2993|         g_assert (buffer_size >= 2);
# 2994|         buffer[0] = G_DIR_SEPARATOR;
# 2995|->       buffer[1] = 0;
# 2996|       }
# 2997|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def300]
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanager.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c: scope_hint: In function ‘is_valid_child_object_path’
glib2-2.83.0-build/glib-2.83.0/glib/ghash.h:175:30: warning[-Wanalyzer-null-argument]: use of NULL ‘child_object_path’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:562:8: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:482:3: note: in expansion of macro ‘g_warn_if_fail’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:482:20: note: in expansion of macro ‘g_str_equal’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:602:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.h:34:52: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:602:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT_MANAGER_SERVER’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:602:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.h:34:52: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:602:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT_MANAGER_SERVER’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:603:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobject.h:32:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:603:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:603:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobject.h:32:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:603:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:604:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:608:17: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:499:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.h:34:52: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:499:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT_MANAGER_SERVER’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:499:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.h:34:52: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:499:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT_MANAGER_SERVER’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:499:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:500:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobject.h:32:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobject.h:32:70: note: in expansion of macro ‘G_TYPE_DBUS_OBJECT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:500:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:500:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobject.h:32:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:500:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:500:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobject.h:32:37: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:500:21: note: in expansion of macro ‘G_IS_DBUS_OBJECT’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:500:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:501:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:501:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:562:8: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:482:3: note: in expansion of macro ‘g_warn_if_fail’
glib2-2.83.0-build/glib-2.83.0/gio/gdbusobjectmanagerserver.c:482:20: note: in expansion of macro ‘g_str_equal’
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  173|   
#  174|   /* Macro for optimization in the case it is not used as callback function */
#  175|-> #define g_str_equal(v1, v2) (strcmp ((const char *) (v1), (const char *) (v2)) == 0)
#  176|   
#  177|   GLIB_AVAILABLE_IN_ALL

Error: GCC_ANALYZER_WARNING (CWE-688): [#def301]
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:52: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gbinding.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-object.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gioenums.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/giotypes.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gnotificationbackend.h:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gfdonotificationbackend.c:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gfdonotificationbackend.c: scope_hint: In function ‘g_fdo_notification_backend_find_notification’
glib2-2.83.0-build/glib-2.83.0/glib/ghash.h:175:30: warning[-Wanalyzer-null-argument]: use of NULL ‘id’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/gfdonotificationbackend.c:111:11: note: in expansion of macro ‘g_str_equal’
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gfdonotificationbackend.c:93:11: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/gfdonotificationbackend.c: scope_hint: In function ‘g_fdo_notification_backend_find_notification’
glib2-2.83.0-build/glib-2.83.0/gio/gfdonotificationbackend.c:111:11: note: in expansion of macro ‘g_str_equal’
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:35: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  173|   
#  174|   /* Macro for optimization in the case it is not used as callback function */
#  175|-> #define g_str_equal(v1, v2) (strcmp ((const char *) (v1), (const char *) (v2)) == 0)
#  176|   
#  177|   GLIB_AVAILABLE_IN_ALL

Error: COMPILER_WARNING: [#def302]
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/g-ir-cpp-g9i4b742.c:43: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gi18n-lib.h:32:10: warning: "_" redefined
#   32 | #define  _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
#      |          ^
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/g-ir-cpp-g9i4b742.c:42: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gi18n.h:28:10: note: this is the location of the previous definition
#   28 | #define  _(String) gettext (String)
#      |          ^
#   30|   #endif
#   31|   
#   32|-> #define  _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
#   33|   #define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0)
#   34|   #define N_(String) (String)

Error: COMPILER_WARNING: [#def303]
glib2-2.83.0-build/glib-2.83.0/glib/gi18n-lib.h:33:9: warning: "Q_" redefined
#   33 | #define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0)
#      |         ^~
glib2-2.83.0-build/glib-2.83.0/glib/gi18n.h:29:9: note: this is the location of the previous definition
#   29 | #define Q_(String) g_dpgettext (NULL, String, 0)
#      |         ^~
#   31|   
#   32|   #define  _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
#   33|-> #define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0)
#   34|   #define N_(String) (String)
#   35|   #define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) + 1)

Error: COMPILER_WARNING: [#def304]
glib2-2.83.0-build/glib-2.83.0/glib/gi18n-lib.h:35:9: warning: "C_" redefined
#   35 | #define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) + 1)
#      |         ^~
glib2-2.83.0-build/glib-2.83.0/glib/gi18n.h:31:9: note: this is the location of the previous definition
#   31 | #define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1)
#      |         ^~
#   33|   #define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0)
#   34|   #define N_(String) (String)
#   35|-> #define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) + 1)
#   36|   #define NC_(Context, String) (String)
#   37|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def305]
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_set_group_comment’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3401:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gbytes.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3382:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3382:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3382:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4177:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3382:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3382:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_set_group_comment’
# 3399|      */
# 3400|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3401|->   group = group_node->next->data;
# 3402|     for (GList *lp = group->key_value_pairs; lp != NULL; )
# 3403|       {

Error: COMPILER_WARNING (CWE-476): [#def306]
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_set_group_comment’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3401:21: warning[-Wnull-dereference]: potential null pointer dereference
# 3401 |   group = group_node->next->data;
#      |           ~~~~~~~~~~^~~~~~
# 3399|      */
# 3400|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3401|->   group = group_node->next->data;
# 3402|     for (GList *lp = group->key_value_pairs; lp != NULL; )
# 3403|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def307]
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_get_group_comment’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3630:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_get_group_comment’
# 3628|   
# 3629|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3630|->   group_node = group_node->next;
# 3631|     group = (GKeyFileGroup *)group_node->data;  
# 3632|     return get_group_comment (key_file, group, error);

Error: COMPILER_WARNING (CWE-476): [#def308]
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3630:14: warning[-Wnull-dereference]: potential null pointer dereference
# 3630 |   group_node = group_node->next;
#      |   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
# 3628|   
# 3629|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3630|->   group_node = group_node->next;
# 3631|     group = (GKeyFileGroup *)group_node->data;  
# 3632|     return get_group_comment (key_file, group, error);

Error: CPPCHECK_WARNING (CWE-909): [#def309]
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3857: error[uninitStructMember]: Uninitialized struct member: pair.key
# 3855|   
# 3856|         if (next_group->key_value_pairs == NULL ||
# 3857|->           (pair->key != NULL && !g_strstr_len (pair->value, -1, "\n")))
# 3858|           {
# 3859|             GKeyFileKeyValuePair *pair = g_new (GKeyFileKeyValuePair, 1);

Error: CPPCHECK_WARNING (CWE-457): [#def310]
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3857: warning[uninitvar]: Uninitialized variable: pair
# 3855|   
# 3856|         if (next_group->key_value_pairs == NULL ||
# 3857|->           (pair->key != NULL && !g_strstr_len (pair->value, -1, "\n")))
# 3858|           {
# 3859|             GKeyFileKeyValuePair *pair = g_new (GKeyFileKeyValuePair, 1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def311]
glib2-2.83.0-build/glib-2.83.0/glib/glist.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/ghash.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_parse_value_as_string’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4310:32: warning[-Wanalyzer-null-argument]: use of NULL ‘value’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gmem.h:264:32: note: in definition of macro ‘_G_NEW’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4310:18: note: in expansion of macro ‘g_new’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3189:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3190:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3190:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3191:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:3191:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2053:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2054:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2054:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2055:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2055:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1830:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1831:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1831:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1832:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1832:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_parse_value_as_string’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_parse_value_as_string’
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gvariant.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:38: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:69: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1848:13: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4308:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4308:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4308:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmem.h:264:32: note: in definition of macro ‘_G_NEW’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4310:18: note: in expansion of macro ‘g_new’
glib2-2.83.0-build/glib-2.83.0/glib/gmem.h:264:32: note: in definition of macro ‘_G_NEW’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4310:18: note: in expansion of macro ‘g_new’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 4308|     g_assert (pieces == NULL || *pieces == NULL);
# 4309|   
# 4310|->   string_value = g_new (gchar, strlen (value) + 1);
# 4311|   
# 4312|     p = value;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def312]
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_parse_value_as_integer’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:4511:16: warning[-Wanalyzer-null-argument]: use of NULL ‘value’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2721:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2722:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2722:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2723:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:2723:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1830:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1831:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1831:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1832:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1832:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_parse_value_as_integer’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_parse_value_as_integer’
glib2-2.83.0-build/glib-2.83.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gkeyfile.c:1848:13: note: in expansion of macro ‘g_strdup’
/usr/include/features.h:511: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/limits.h:26: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include/limits.h:210: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include/syslimits.h:9: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include/limits.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:11: included_from: Included from here.
/usr/include/stdlib.h:215:17: note: argument 1 of ‘strtol’ must be non-null
# 4509|   
# 4510|     errno = 0;
# 4511|->   long_value = strtol (value, &eof_int, 10);
# 4512|     errsv = errno;
# 4513|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def313]
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.c: scope_hint: In function ‘print_string’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.c:3461:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gvariant.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:38: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-init.h:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.c:54: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.c:940:18: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.c: scope_hint: In function ‘print_string’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.c:940:18: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.c:35: included_from: Included from here.
/usr/include/stdio.h:707:12: note: argument 1 of ‘fputs’ must be non-null
# 3459|         gchar *converted_string = strdup_convert (string, charset);
# 3460|   
# 3461|->       ret = fputs (converted_string, stream);
# 3462|         g_free (converted_string);
# 3463|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def314]
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c:65: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c: scope_hint: In function ‘g_thread_new’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:351:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c:952:5: note: in expansion of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gatomic.h:29: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gthread.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c:43: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c:991:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c:991:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c:951:6: note: in expansion of macro ‘G_UNLIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:353:32: note: in definition of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:353:32: note: in definition of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/glib/gthread.c:952:5: note: in expansion of macro ‘g_error’
#  349|    */
#  350|   #define g_error(...)  G_STMT_START {                 \
#  351|->                         g_log (G_LOG_DOMAIN,         \
#  352|                                  G_LOG_LEVEL_ERROR,    \
#  353|                                  __VA_ARGS__);         \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def315]
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-private.h:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsettingsschema.c:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/gsettingsschema.c: scope_hint: In function ‘g_settings_schema_get_value.part.0’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:351:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘schema’
glib2-2.83.0-build/glib-2.83.0/gio/gsettingsschema.c:1005:5: note: in expansion of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/gio/gsettingsschema.c:1004:6: note: in expansion of macro ‘G_UNLIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1251:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/gio/gsettingsschema.c:1004:6: note: in expansion of macro ‘G_UNLIKELY’
glib2-2.83.0-build/glib-2.83.0/gio/gsettingsschema.c:1005:5: note: in expansion of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/gio/gsettingsschema.c:1005:5: note: in expansion of macro ‘g_error’
#  349|    */
#  350|   #define g_error(...)  G_STMT_START {                 \
#  351|->                         g_log (G_LOG_DOMAIN,         \
#  352|                                  G_LOG_LEVEL_ERROR,    \
#  353|                                  __VA_ARGS__);         \

Error: GCC_ANALYZER_WARNING (CWE-835): [#def316]
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/constructor-helper.c:33: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/constructor-helper.c: scope_hint: In function ‘string_add’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:354:25: warning[-Wanalyzer-infinite-loop]: infinite loop
glib2-2.83.0-build/glib-2.83.0/glib/tests/constructor-helper.c:158:5: note: in expansion of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/glib/tests/constructor-helper.c:158:5: note: in expansion of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/glib/tests/constructor-helper.c:158:5: note: in expansion of macro ‘g_error’
glib2-2.83.0-build/glib-2.83.0/glib/tests/constructor-helper.c:158:5: note: in expansion of macro ‘g_error’
#  352|                                  G_LOG_LEVEL_ERROR,    \
#  353|                                  __VA_ARGS__);         \
#  354|->                         for (;;) ;                   \
#  355|                         } G_STMT_END
#  356|   #define g_message(...)  g_log (G_LOG_DOMAIN,         \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c: scope_hint: In function ‘g_queue_push_nth_link’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:484:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gutils.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmem.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glist.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:29: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:471:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:472:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:472:3: note: in expansion of macro ‘g_return_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:480:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:480:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:481:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:481:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gqueue.c:752:3: note: in expansion of macro ‘g_return_val_if_fail’
#  482|   
#  483|     next = g_queue_peek_nth_link (queue, n);
#  484|->   prev = next->prev;
#  485|   
#  486|     if (prev)

Error: CPPCHECK_WARNING (CWE-476): [#def318]
glib2-2.83.0-build/glib-2.83.0/glib/gslist.c:283: warning[nullPointer]: Possible null pointer dereference: prev_list
#  281|       }
#  282|   
#  283|->   new_list->next = prev_list->next;
#  284|     prev_list->next = new_list;
#  285|   

Error: CPPCHECK_WARNING (CWE-476): [#def319]
glib2-2.83.0-build/glib-2.83.0/glib/gslist.c:284: warning[nullPointer]: Possible null pointer dereference: prev_list
#  282|   
#  283|     new_list->next = prev_list->next;
#  284|->   prev_list->next = new_list;
#  285|   
#  286|     return list;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def320]
glib2-2.83.0-build/glib-2.83.0/gio/glocalfileinfo.h:35: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:60: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c: scope_hint: In function ‘expand_symlinks’
glib2-2.83.0-build/glib-2.83.0/glib/gstdio.h:78:19: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:1608:11: note: in expansion of macro ‘g_lstat’
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:1603:12: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:1608:11: note: in expansion of macro ‘g_lstat’
/usr/include/features.h:511: included_from: Included from here.
/usr/include/sys/types.h:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gio/glocalfile.c:25: included_from: Included from here.
/usr/include/sys/stat.h:327:12: note: argument 1 of ‘lstat’ must be non-null
#   76|   #define g_mkdir   mkdir
#   77|   #define g_stat    stat
#   78|-> #define g_lstat   lstat
#   79|   #define g_remove  remove
#   80|   #define g_fopen   fopen

Error: GCC_ANALYZER_WARNING: [#def321]
glib2-2.83.0-build/glib-2.83.0/glib/gtester.c: scope_hint: In function ‘test_log_printfe’
glib2-2.83.0-build/glib-2.83.0/glib/gtester.c:91:9: warning[-Wanalyzer-fd-use-without-check]: ‘write’ on possibly invalid file descriptor ‘-1’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtester.c:22: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtester.c:702:5: note: in expansion of macro ‘g_warning’
#   89|     va_end (args);
#   90|     do
#   91|->     r = write (log_fd, result, strlen (result));
#   92|     while (r < 0 && errno == EINTR);
#   93|     g_free (result);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def322]
glib2-2.83.0-build/glib-2.83.0/glib/gutf8.c: scope_hint: In function ‘g_utf8_make_valid’
glib2-2.83.0-build/glib-2.83.0/glib/gutf8.c:2137:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘invalid’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gquark.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gconvert.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gutf8.c:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gutf8.c:2124:3: note: in expansion of macro ‘g_return_val_if_fail’
# 2135|         if (g_utf8_validate (remainder, remaining_bytes, &invalid)) 
# 2136|   	break;
# 2137|->       valid_bytes = invalid - remainder;
# 2138|       
# 2139|         if (string == NULL) 

Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:748:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:1935:18: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c: scope_hint: In function ‘g_get_user_database_entry’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:658:7: note: in expansion of macro ‘g_once_init_enter_pointer’
glib2-2.83.0-build/glib-2.83.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:747:37: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c: scope_hint: In function ‘g_get_user_database_entry’
#  746|                   name_parts = g_strsplit (gecos_fields[0], "&", 0);
#  747|                   uppercase_pw_name = g_strdup (pw->pw_name);
#  748|->                 uppercase_pw_name[0] = g_ascii_toupper (uppercase_pw_name[0]);
#  749|                   e.real_name = g_strjoinv (uppercase_pw_name, name_parts);
#  750|                   g_strfreev (gecos_fields);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c: scope_hint: In function ‘g_get_user_database_entry’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:748:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘config_dir’
glib2-2.83.0-build/glib-2.83.0/glib/gasyncqueue.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-private.h:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:62: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:658:7: note: in expansion of macro ‘g_once_init_enter_pointer’
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gvariant.h:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:38: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gutilsprivate.h:27: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:747:37: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c: scope_hint: In function ‘g_get_user_database_entry’
#  746|                   name_parts = g_strsplit (gecos_fields[0], "&", 0);
#  747|                   uppercase_pw_name = g_strdup (pw->pw_name);
#  748|->                 uppercase_pw_name[0] = g_ascii_toupper (uppercase_pw_name[0]);
#  749|                   e.real_name = g_strjoinv (uppercase_pw_name, name_parts);
#  750|                   g_strfreev (gecos_fields);

Error: CPPCHECK_WARNING (CWE-457): [#def325]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:3307: error[uninitvar]: Uninitialized variable: euid
# 3305|         /* These aren't in the header files, so we prototype them here.
# 3306|          */
# 3307|->       int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3308|         int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3309|         

Error: CPPCHECK_WARNING (CWE-457): [#def326]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:3307: error[uninitvar]: Uninitialized variable: ruid
# 3305|         /* These aren't in the header files, so we prototype them here.
# 3306|          */
# 3307|->       int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3308|         int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3309|         

Error: CPPCHECK_WARNING (CWE-457): [#def327]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:3307: error[uninitvar]: Uninitialized variable: suid
# 3305|         /* These aren't in the header files, so we prototype them here.
# 3306|          */
# 3307|->       int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3308|         int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3309|         

Error: CPPCHECK_WARNING (CWE-457): [#def328]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:3308: error[uninitvar]: Uninitialized variable: egid
# 3306|          */
# 3307|         int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3308|->       int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3309|         
# 3310|         if (getresuid (&ruid, &euid, &suid) != 0 ||

Error: CPPCHECK_WARNING (CWE-457): [#def329]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:3308: error[uninitvar]: Uninitialized variable: rgid
# 3306|          */
# 3307|         int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3308|->       int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3309|         
# 3310|         if (getresuid (&ruid, &euid, &suid) != 0 ||

Error: CPPCHECK_WARNING (CWE-457): [#def330]
glib2-2.83.0-build/glib-2.83.0/glib/gutils.c:3308: error[uninitvar]: Uninitialized variable: sgid
# 3306|          */
# 3307|         int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3308|->       int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3309|         
# 3310|         if (getresuid (&ruid, &euid, &suid) != 0 ||

Error: COMPILER_WARNING (CWE-476): [#def331]
glib2-2.83.0-build/glib-2.83.0/glib/gvariant-parser.c:1709:9: warning[-Wnull-dereference]: potential null pointer dereference
# 1709 |   quote = token[0];
#      |   ~~~~~~^~~~~~~~~~
# 1707|     token_stream_end_ref (stream, &ref);
# 1708|     length = strlen (token);
# 1709|->   quote = token[0];
# 1710|   
# 1711|     /* The output will always be at least one byte smaller than the input,

Error: COMPILER_WARNING (CWE-476): [#def332]
glib2-2.83.0-build/glib-2.83.0/glib/gvariant-parser.c:1841:18: warning[-Wnull-dereference]: potential null pointer dereference
# 1841 |   g_assert (token[0] == 'b');
#      |             ~~~~~^~~
# 1839|     token = token_stream_get (stream);
# 1840|     token_stream_end_ref (stream, &ref);
# 1841|->   g_assert (token[0] == 'b');
# 1842|     length = strlen (token);
# 1843|     quote = token[1];

Error: COMPILER_WARNING (CWE-476): [#def333]
glib2-2.83.0-build/glib-2.83.0/glib/gvariant-parser.c:2231:18: warning[-Wnull-dereference]: potential null pointer dereference
# 2231 |   g_assert (token[0] == '%');
#      |             ~~~~~^~~
# 2229|   
# 2230|     token = token_stream_get (stream);
# 2231|->   g_assert (token[0] == '%');
# 2232|   
# 2233|     positional = g_slice_new (Positional);

Error: CPPCHECK_WARNING (CWE-457): [#def334]
glib2-2.83.0-build/glib-2.83.0/glib/gvariant.c:3826: error[legacyUninitvar]: Uninitialized variable: type
# 3824|       children = g_renew (GVariant *, children, GVSB(builder)->offset);
# 3825|   
# 3826|->   value = g_variant_new_from_children (type,
# 3827|                                          children,
# 3828|                                          GVSB(builder)->offset,

Error: CPPCHECK_WARNING (CWE-457): [#def335]
glib2-2.83.0-build/glib-2.83.0/glib/tests/array-test.c:906: error[uninitvar]: Uninitialized variable: &i
#  904|         g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
#  905|                                "*assertion*!= NULL*");
#  906|->       g_assert_false (g_array_binary_search (NULL, &i, cmpint, NULL));
#  907|         g_test_assert_expected_messages ();
#  908|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def336]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘test_error_private_init’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:261:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
glib2-2.83.0-build/glib-2.83.0/glib/gthread.h:35: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gasyncqueue.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:1: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:89:32: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:89:32: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:90:3: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
#  259|   test_error_private_init (TestErrorPrivate *priv)
#  260|   {
#  261|->   priv->foo = 13;
#  262|     /* If that triggers, it's test bug.
#  263|      */

Error: COMPILER_WARNING (CWE-476): [#def337]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:261:13: warning[-Wnull-dereference]: potential null pointer dereference
#  261 |   priv->foo = 13;
#      |   ~~~~~~~~~~^~~~
#  259|   test_error_private_init (TestErrorPrivate *priv)
#  260|   {
#  261|->   priv->foo = 13;
#  262|     /* If that triggers, it's test bug.
#  263|      */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:275:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘g_error_with_test_error_private_copy’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:97:42: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:97:42: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:98:37: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:98:37: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:99:3: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
#  273|                            TestErrorPrivate       *dest_priv)
#  274|   {
#  275|->   dest_priv->foo = src_priv->foo;
#  276|     dest_priv->check = src_priv->check;
#  277|   

Error: COMPILER_WARNING (CWE-476): [#def339]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:275:18: warning[-Wnull-dereference]: potential null pointer dereference
#  275 |   dest_priv->foo = src_priv->foo;
#      |   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
#  273|                            TestErrorPrivate       *dest_priv)
#  274|   {
#  275|->   dest_priv->foo = src_priv->foo;
#  276|     dest_priv->check = src_priv->check;
#  277|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def340]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:275:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘g_error_with_test_error_private_copy’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:97:42: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:97:42: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:98:37: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:98:37: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:99:3: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
#  273|                            TestErrorPrivate       *dest_priv)
#  274|   {
#  275|->   dest_priv->foo = src_priv->foo;
#  276|     dest_priv->check = src_priv->check;
#  277|   

Error: COMPILER_WARNING (CWE-476): [#def341]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:276:20: warning[-Wnull-dereference]: potential null pointer dereference
#  276 |   dest_priv->check = src_priv->check;
#      |   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
#  274|   {
#  275|     dest_priv->foo = src_priv->foo;
#  276|->   dest_priv->check = src_priv->check;
#  277|   
#  278|     dest_priv->check->copy_called++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:284:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘g_error_with_test_error_private_clear’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:105:32: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:105:32: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:106:3: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
#  282|   test_error_private_clear (TestErrorPrivate *priv)
#  283|   {
#  284|->   priv->check->free_called++;
#  285|   }
#  286|   

Error: COMPILER_WARNING (CWE-476): [#def343]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:284:7: warning[-Wnull-dereference]: potential null pointer dereference
#  284 |   priv->check->free_called++;
#      |   ~~~~^~~~~~~
#  282|   test_error_private_clear (TestErrorPrivate *priv)
#  283|   {
#  284|->   priv->check->free_called++;
#  285|   }
#  286|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:294:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘test_extended’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘test_extended’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
#  292|     TestErrorPrivate *test_error = test_error_get_private (error);
#  293|   
#  294|->   test_error->check = check;
#  295|   
#  296|     return test_error;

Error: COMPILER_WARNING (CWE-476): [#def345]
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:294:21: warning[-Wnull-dereference]: potential null pointer dereference
#  294 |   test_error->check = check;
#      |   ~~~~~~~~~~~~~~~~~~^~~~~~~
#  292|     TestErrorPrivate *test_error = test_error_get_private (error);
#  293|   
#  294|->   test_error->check = check;
#  295|   
#  296|     return test_error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def346]
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘test_extended’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:329:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:74: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘test_extended’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘test_extended’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:76:1: note: in definition of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:81:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:82:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:82:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gerror.h:82:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:287:1: note: in expansion of macro ‘G_DEFINE_EXTENDED_ERROR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:74: note: in definition of macro ‘g_assert_cmpint’
#  327|   
#  328|     copy_test_priv = test_error_get_private (copy_error);
#  329|->   g_assert_cmpint (test_priv->foo, ==, copy_test_priv->foo);
#  330|   
#  331|     g_error_free (error);

Error: COMPILER_WARNING (CWE-476): [#def347]
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:1: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c: scope_hint: In function ‘test_extended’
glib2-2.83.0-build/glib-2.83.0/glib/tests/error.c:329:54: warning[-Wnull-dereference]: potential null pointer dereference
#  329 |   g_assert_cmpint (test_priv->foo, ==, copy_test_priv->foo);
#  327|   
#  328|     copy_test_priv = test_error_get_private (copy_error);
#  329|->   g_assert_cmpint (test_priv->foo, ==, copy_test_priv->foo);
#  330|   
#  331|     g_error_free (error);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def348]
glib2-2.83.0-build/glib-2.83.0/glib/tests/fileutils.c: scope_hint: In function ‘test_read_link’
glib2-2.83.0-build/glib-2.83.0/glib/tests/fileutils.c:2040:3: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen("file-test-data", "w")’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/fileutils.c:33: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/fileutils.c:2039:3: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/fileutils.c:2039:3: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/fileutils.c:2039:3: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gprintf.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gstdio.h:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/fileutils.c:37: included_from: Included from here.
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
# 2038|     file = fopen (filename, "w");
# 2039|     g_assert_nonnull (file);
# 2040|->   fclose (file);
# 2041|   
# 2042|     g_assert_no_errno (symlink (filename, link1));

Error: CPPCHECK_WARNING (CWE-457): [#def349]
glib2-2.83.0-build/glib-2.83.0/glib/tests/gvariant.c:481: error[legacyUninitvar]: Uninitialized variable: result
#  479|       }
#  480|   
#  481|->   return result;
#  482|   }
#  483|   

Error: CPPCHECK_WARNING (CWE-457): [#def350]
glib2-2.83.0-build/glib-2.83.0/glib/tests/gvariant.c:538: error[legacyUninitvar]: Uninitialized variable: replacement
#  536|     g_string_append (result, type_string + l + 1);
#  537|   
#  538|->   g_variant_type_free (replacement);
#  539|     g_string_free (junk, TRUE);
#  540|   

Error: GCC_ANALYZER_WARNING (CWE-685): [#def351]
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c: scope_hint: In function ‘check_double_list_value’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:205:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (3 consumed)
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:2: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:138:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:138:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:202:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:202:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:202:7: note: in expansion of macro ‘g_assert_cmpint’
#  203|         g_assert_cmpfloat (value[i], ==, v);
#  204|         i++;
#  205|->       v = va_arg (args, gdouble);
#  206|       }
#  207|   

Error: GCC_ANALYZER_WARNING (CWE-685): [#def352]
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:205:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (4 consumed)
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:105:7: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:234:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:234:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:170:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:170:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:170:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:202:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:202:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:202:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/keyfile.c:202:7: note: in expansion of macro ‘g_assert_cmpint’
#  203|         g_assert_cmpfloat (value[i], ==, v);
#  204|         i++;
#  205|->       v = va_arg (args, gdouble);
#  206|       }
#  207|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def353]
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c: scope_hint: In function ‘test_unix_fd’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1316:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fds[1]’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:25: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1314:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1314:3: note: in expansion of macro ‘g_assert_cmpint’
# 1314|     g_assert_cmpint (s, ==, 0);
# 1315|   
# 1316|->   to_read = fill_a_pipe (fds[1]);
# 1317|     /* write at higher priority to keep the pipe full... */
# 1318|     a = g_unix_fd_add_full (G_PRIORITY_HIGH, fds[1], G_IO_OUT, write_bytes, &to_write, NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def354]
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c: scope_hint: In function ‘test_unix_fd_source’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1446:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fds[1]’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1444:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1444:3: note: in expansion of macro ‘g_assert_cmpint’
# 1444|     g_assert_cmpint (s, ==, 0);
# 1445|   
# 1446|->   source = g_unix_fd_source_new (fds[1], G_IO_OUT);
# 1447|     g_source_attach (source, NULL);
# 1448|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def355]
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c: scope_hint: In function ‘test_source_unix_fd_api’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1553:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fds_a[0]’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1546:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1546:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:54:61: note: in definition of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/mainloop.c:1547:3: note: in expansion of macro ‘g_assert_cmpint’
# 1551|   
# 1552|     /* attach a source with more than one fd */
# 1553|->   g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1554|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1555|     g_source_attach (source_a, NULL);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def356]
glib2-2.83.0-build/glib-2.83.0/glib/tests/markup-parse.c: scope_hint: In function ‘get_expected_filename’
glib2-2.83.0-build/glib-2.83.0/glib/tests/markup-parse.c:237:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/markup-parse.c:7: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/markup-parse.c:236:7: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/tests/markup-parse.c: scope_hint: In function ‘get_expected_filename’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
#  235|   
#  236|     f = g_strdup (filename);
#  237|->   p = strstr (f, ".gmarkup");
#  238|     if (p)
#  239|       *p = 0;

Error: CPPCHECK_WARNING (CWE-457): [#def357]
glib2-2.83.0-build/glib-2.83.0/glib/tests/markup-parse.c:249: error[legacyUninitvar]: Uninitialized variable: expected
#  247|     g_free (f);
#  248|   
#  249|->   return expected;
#  250|   }
#  251|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def358]
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c: scope_hint: In function ‘test_spawn_async_with_fds’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c:248:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘test_pipe[1][0]’
#  246|               case STDOUT_PIPE:
#  247|                 g_assert_cmpint (j, ==, 2); /* only works for stderr */
#  248|->               test_pipe[j][0] = test_pipe[1][0];
#  249|                 test_pipe[j][1] = test_pipe[1][1];
#  250|                 break;

Error: GCC_ANALYZER_WARNING (CWE-666): [#def359]
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c: scope_hint: In function ‘test_spawn_stderr_socket’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c:426:17: warning[-Wanalyzer-fd-phase-mismatch]: ‘dup2’ on file descriptor ‘fd’ in wrong phase
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c:28: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c:420:7: note: in expansion of macro ‘g_assert_cmpint’
#  424|   #endif
#  425|         /* Set the socket as FD 2, stderr */
#  426|->       estatus = dup2 (fd, 2);
#  427|         g_assert_cmpint (estatus, >=, 0);
#  428|   

Error: GCC_ANALYZER_WARNING: [#def360]
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c:426:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c:420:7: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-singlethread.c:420:7: note: in expansion of macro ‘g_assert_cmpint’
#  424|   #endif
#  425|         /* Set the socket as FD 2, stderr */
#  426|->       estatus = dup2 (fd, 2);
#  427|         g_assert_cmpint (estatus, >=, 0);
#  428|   

Error: GCC_ANALYZER_WARNING: [#def361]
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c: scope_hint: In function ‘test_spawn_stdio_overwrite’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:488:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘old_stderr_fd’
glib2-2.83.0-build/glib-2.83.0/glib/glist.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/ghash.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:52: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:27: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:486:9: note: in expansion of macro ‘g_clear_pointer’
#  486|           g_clear_pointer (&argv, g_strfreev);
#  487|   
#  488|->         ret = dup2 (old_stderr_fd, STDERR_FILENO);
#  489|           g_assert_cmpint (ret, ==, STDERR_FILENO);
#  490|   

Error: GCC_ANALYZER_WARNING: [#def362]
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:491:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘old_stdout_fd’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:486:9: note: in expansion of macro ‘g_clear_pointer’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:489:9: note: in expansion of macro ‘g_assert_cmpint’
#  489|           g_assert_cmpint (ret, ==, STDERR_FILENO);
#  490|   
#  491|->         ret = dup2 (old_stdout_fd, STDOUT_FILENO);
#  492|           g_assert_cmpint (ret, ==, STDOUT_FILENO);
#  493|   

Error: GCC_ANALYZER_WARNING: [#def363]
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:494:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘old_stdin_fd’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:486:9: note: in expansion of macro ‘g_clear_pointer’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:489:9: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/spawn-test.c:492:9: note: in expansion of macro ‘g_assert_cmpint’
#  492|           g_assert_cmpint (ret, ==, STDOUT_FILENO);
#  493|   
#  494|->         ret = dup2 (old_stdin_fd, STDIN_FILENO);
#  495|           g_assert_cmpint (ret, ==, STDIN_FILENO);
#  496|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def364]
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c: scope_hint: In function ‘do_test_strchug’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:928:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gstring.h:37: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/giochannel.h:36: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:56: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:38: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:925:9: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c: scope_hint: In function ‘do_test_strchug’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:36: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  926|   
#  927|     g_strchug (tmp);
#  928|->   res = (strcmp (tmp, expected) == 0);
#  929|     g_free (tmp);
#  930|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def365]
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c: scope_hint: In function ‘do_test_strchomp’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:964:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:961:9: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c: scope_hint: In function ‘do_test_strchomp’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  962|   
#  963|     g_strchomp (tmp);
#  964|->   res = (strcmp (tmp, expected) == 0);
#  965|     g_free (tmp);
#  966|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def366]
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c: scope_hint: In function ‘check_strtod_string’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:1630:49: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:1629:7: note: in expansion of macro ‘g_assert_true’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:1619:12: note: in expansion of macro ‘g_strdup’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c: scope_hint: In function ‘check_strtod_string’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:1629:7: note: in expansion of macro ‘g_assert_true’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:1629:7: note: in expansion of macro ‘g_assert_true’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/strfuncs.c:1629:7: note: in expansion of macro ‘g_assert_true’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1628|         g_assert_true (g_isnan (res) ? g_isnan (d) : (d == res));
# 1629|         g_assert_true ((gsize) (end - number) ==
# 1630|->                      (check_end ? correct_len : strlen (number)));
# 1631|       }
# 1632|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def367]
glib2-2.83.0-build/glib-2.83.0/glib/tests/string.c: scope_hint: In function ‘test_string_new_take’
glib2-2.83.0-build/glib-2.83.0/glib/tests/string.c:744:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(10)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  742|     GString *string;
#  743|   
#  744|->   strcpy (test_str, test_str_const);
#  745|     g_assert_cmpstr (test_str, ==, test_str_const);
#  746|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def368]
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c: scope_hint: In function ‘test_tap_subtest_stdout’
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c:2572:23: warning[-Wanalyzer-null-argument]: use of NULL ‘interesting_lines’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c:33: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c:2570:3: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c:2570:3: note: in expansion of macro ‘g_assert_nonnull’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
# 2570|     g_assert_nonnull (interesting_lines);
# 2571|   
# 2572|->   interesting_lines = strstr (interesting_lines, TAP_SUBTEST_PREFIX "# /sub-stdout");
# 2573|     g_assert_nonnull (interesting_lines);
# 2574|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def369]
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c: scope_hint: In function ‘test_tap_subtest_stdout_no_new_line’
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c:2628:23: warning[-Wanalyzer-null-argument]: use of NULL ‘interesting_lines’ where non-null expected
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c:2626:3: note: in expansion of macro ‘g_assert_nonnull’
glib2-2.83.0-build/glib-2.83.0/glib/tests/testing.c:2626:3: note: in expansion of macro ‘g_assert_nonnull’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
# 2626|     g_assert_nonnull (interesting_lines);
# 2627|   
# 2628|->   interesting_lines = strstr (interesting_lines, TAP_SUBTEST_PREFIX "# /sub-stdout-no-nl");
# 2629|     g_assert_nonnull (interesting_lines);
# 2630|   

Error: GCC_ANALYZER_WARNING: [#def370]
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c: scope_hint: In function ‘test_pipe_stdio_overwrite’
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:317:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘stdin_fd’
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:89: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib-private.h:23: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:29: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:300:3: note: in expansion of macro ‘g_assert_cmpint’
#  315|     g_assert_no_error (error);
#  316|   
#  317|->   ret = dup2 (stdin_fd, STDIN_FILENO);
#  318|     g_assert_cmpint (ret, >=, 0);
#  319|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def371]
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:322:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:300:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:300:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:318:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/glib/tests/unix.c:318:3: note: in expansion of macro ‘g_assert_cmpint’
#  320|     g_close (stdin_fd, &error);
#  321|     g_assert_no_error (error);
#  322|-> }
#  323|   
#  324|   static void

Error: GCC_ANALYZER_WARNING (CWE-685): [#def372]
glib2-2.83.0-build/glib-2.83.0/glib/tests/utils.c: scope_hint: In function ‘strv_check’
glib2-2.83.0-build/glib-2.83.0/glib/tests/utils.c:55:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (3 consumed)
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/tests/utils.c:30: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/utils.c:98:3: note: in expansion of macro ‘g_assert’
#   53|     for (i = 0; strv[i]; i++)
#   54|       {
#   55|->       s = va_arg (args, gchar*);
#   56|         if (g_strcmp0 (strv[i], s) != 0)
#   57|           {

Error: GCC_ANALYZER_WARNING (CWE-685): [#def373]
glib2-2.83.0-build/glib-2.83.0/glib/tests/utils.c:55:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (5 consumed)
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1243:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/glib/tests/utils.c:75:3: note: in expansion of macro ‘g_assert’
#   53|     for (i = 0; strv[i]; i++)
#   54|       {
#   55|->       s = va_arg (args, gchar*);
#   56|         if (g_strcmp0 (strv[i], s) != 0)
#   57|           {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def374]
glib2-2.83.0-build/glib-2.83.0/gobject/gobject.c: scope_hint: In function ‘object_remove_closure’
glib2-2.83.0-build/glib-2.83.0/gobject/gobject.c:5201:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 5199|     object_bit_lock (object, OPTIONAL_BIT_LOCK_CLOSURE_ARRAY);
# 5200|     carray = g_object_get_qdata (object, quark_closure_array);
# 5201|->   for (i = 0; i < carray->n_closures; i++)
# 5202|       if (carray->closures[i] == closure)
# 5203|         {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def375]
glib2-2.83.0-build/glib-2.83.0/gobject/gparam.c: scope_hint: In function ‘should_list_pspec’
glib2-2.83.0-build/glib-2.83.0/gobject/gparam.c:1293:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pspec’
# 1291|       return FALSE;
# 1292|   
# 1293|->   found = param_spec_ht_lookup (ht, pspec->name, owner_type, TRUE);
# 1294|     if (found != pspec)
# 1295|       {

Error: COMPILER_WARNING (CWE-476): [#def376]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘handlers_find’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:558:28: warning[-Wnull-dereference]: potential null pointer dereference
#  558 |                   if (!node->c_marshaller)
#      |                        ~~~~^~~~~~~~~~~~~~
#  556|   		{
#  557|   		  node = LOOKUP_SIGNAL_NODE (hlist->signal_id);
#  558|-> 		  if (!node->c_marshaller)
#  559|   		    continue;
#  560|   		}

Error: COMPILER_WARNING (CWE-476): [#def377]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘handler_insert’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:685:13: warning[-Wnull-dereference]: potential null pointer dereference
#  685 |   if (!hlist->handlers)
#      |        ~~~~~^~~~~~~~~~
#  683|   
#  684|     hlist = handler_list_ensure (signal_id, instance);
#  685|->   if (!hlist->handlers)
#  686|       {
#  687|         hlist->handlers = handler;

Error: COMPILER_WARNING (CWE-476): [#def378]
glib2-2.83.0-build/glib-2.83.0/gobject/gclosure.h:27: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘g_signal_stop_emission_by_name’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:1167:41: warning[-Wnull-dereference]: potential null pointer dereference
# 1167 |       else if (!g_type_is_a (itype, node->itype))
# 1165|         if (detail && !(node->flags & G_SIGNAL_DETAILED))
# 1166|   	g_critical ("%s: signal '%s' does not support details", G_STRLOC, detailed_signal);
# 1167|->       else if (!g_type_is_a (itype, node->itype))
# 1168|           g_critical ("%s: signal '%s' is invalid for instance '%p' of type '%s'",
# 1169|                       G_STRLOC, detailed_signal, instance, g_type_name (itype));

Error: COMPILER_WARNING (CWE-476): [#def379]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:1816:17: warning[-Wnull-dereference]: potential null pointer dereference
# 1816 |           if (cc->closure->marshal == node->c_marshaller)
#      |               ~~^~~~~~~~~
# 1814|   	{
# 1815|   	  ClassClosure *cc = g_bsearch_array_get_nth (node->class_closure_bsa, &g_class_closure_bconfig, 0);
# 1816|-> 	  if (cc->closure->marshal == node->c_marshaller)
# 1817|   	    _g_closure_set_va_marshal (cc->closure, va_marshaller);
# 1818|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def380]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘g_signal_override_class_closure.part.0’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:1979:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:760:35: note: in definition of macro ‘g_type_is_a’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘g_signal_override_class_closure.part.0’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:760:35: note: in definition of macro ‘g_type_is_a’
# 1977|     node = LOOKUP_SIGNAL_NODE (signal_id);
# 1978|     node_check_deprecated (node);
# 1979|->   if (!g_type_is_a (instance_type, node->itype))
# 1980|       g_critical ("%s: type '%s' cannot be overridden for signal id '%u'", G_STRLOC, type_debug_name (instance_type), signal_id);
# 1981|     else

Error: COMPILER_WARNING (CWE-476): [#def381]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:1979:40: warning[-Wnull-dereference]: potential null pointer dereference
# 1979 |   if (!g_type_is_a (instance_type, node->itype))
# 1977|     node = LOOKUP_SIGNAL_NODE (signal_id);
# 1978|     node_check_deprecated (node);
# 1979|->   if (!g_type_is_a (instance_type, node->itype))
# 1980|       g_critical ("%s: type '%s' cannot be overridden for signal id '%u'", G_STRLOC, type_debug_name (instance_type), signal_id);
# 1981|     else

Error: COMPILER_WARNING (CWE-476): [#def382]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘g_signal_connect_closure’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:2400:41: warning[-Wnull-dereference]: potential null pointer dereference
# 2400 |       else if (!g_type_is_a (itype, node->itype))
# 2398|         if (detail && !(node->flags & G_SIGNAL_DETAILED))
# 2399|   	g_critical ("%s: signal '%s' does not support details", G_STRLOC, detailed_signal);
# 2400|->       else if (!g_type_is_a (itype, node->itype))
# 2401|           g_critical ("%s: signal '%s' is invalid for instance '%p' of type '%s'",
# 2402|                       G_STRLOC, detailed_signal, instance, g_type_name (itype));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def383]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘node_check_deprecated’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:2446:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘node_check_deprecated’
# 2444|     if (g_enable_diagnostic[0] == '1')
# 2445|       {
# 2446|->       if (node->flags & G_SIGNAL_DEPRECATED)
# 2447|           {
# 2448|             g_warning ("The signal %s::%s is deprecated and shouldn't be used "

Error: COMPILER_WARNING (CWE-476): [#def384]
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c: scope_hint: In function ‘g_signal_connect_data’
glib2-2.83.0-build/glib-2.83.0/gobject/gsignal.c:2507:41: warning[-Wnull-dereference]: potential null pointer dereference
# 2507 |       else if (!g_type_is_a (itype, node->itype))
# 2505|         if (detail && !(node->flags & G_SIGNAL_DETAILED))
# 2506|   	g_critical ("%s: signal '%s' does not support details", G_STRLOC, detailed_signal);
# 2507|->       else if (!g_type_is_a (itype, node->itype))
# 2508|           g_critical ("%s: signal '%s' is invalid for instance '%p' of type '%s'",
# 2509|                       G_STRLOC, detailed_signal, instance, g_type_name (itype));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def385]
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘type_node_fundamental_new_W’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:535:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:29: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:526:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:527:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:527:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:427:3: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘type_node_fundamental_new_W’
#  533|   
#  534|     finfo = type_node_fundamental_info_I (node);
#  535|->   finfo->type_flags = type_flags & TYPE_FUNDAMENTAL_FLAG_MASK;
#  536|   
#  537|     return node;

Error: COMPILER_WARNING (CWE-476): [#def386]
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘type_node_fundamental_new_W’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:535:21: warning[-Wnull-dereference]: potential null pointer dereference
#  535 |   finfo->type_flags = type_flags & TYPE_FUNDAMENTAL_FLAG_MASK;
#      |                     ^
#  533|   
#  534|     finfo = type_node_fundamental_info_I (node);
#  535|->   finfo->type_flags = type_flags & TYPE_FUNDAMENTAL_FLAG_MASK;
#  536|   
#  537|     return node;

Error: COMPILER_WARNING (CWE-476): [#def387]
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘check_derivation_I’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:776:14: warning[-Wnull-dereference]: potential null pointer dereference
#  776 |   if (!(finfo->type_flags & G_TYPE_FLAG_DERIVABLE))
#      |         ~~~~~^~~~~~~~~~~~
#  774|     finfo = type_node_fundamental_info_I (pnode);
#  775|     /* ensure flat derivability */
#  776|->   if (!(finfo->type_flags & G_TYPE_FLAG_DERIVABLE))
#  777|       {
#  778|         g_critical ("cannot derive '%s' from non-derivable parent type '%s'",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def388]
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘check_type_info_I’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:884:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘check_type_info_I’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:1219:7: note: in expansion of macro ‘g_assert’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘check_type_info_I’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:881:3: note: in expansion of macro ‘g_assert’
#  882|     
#  883|     /* check instance members */
#  884|->   if (!(finfo->type_flags & G_TYPE_FLAG_INSTANTIATABLE) &&
#  885|         (info->instance_size || info->instance_init))
#  886|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def389]
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘_g_type_test_flags’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:3991:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘_g_type_test_flags’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c: scope_hint: In function ‘_g_type_test_flags’
# 3989|   	  GTypeFundamentalInfo *finfo = type_node_fundamental_info_I (node);
# 3990|   	  
# 3991|-> 	  fflags = (finfo->type_flags & fflags) == fflags;
# 3992|   	}
# 3993|         else

Error: COMPILER_WARNING (CWE-476): [#def390]
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.c:3991:26: warning[-Wnull-dereference]: potential null pointer dereference
# 3991 |           fflags = (finfo->type_flags & fflags) == fflags;
#      |                     ~~~~~^~~~~~~~~~~~
# 3989|   	  GTypeFundamentalInfo *finfo = type_node_fundamental_info_I (node);
# 3990|   	  
# 3991|-> 	  fflags = (finfo->type_flags & fflags) == fflags;
# 3992|   	}
# 3993|         else

Error: COMPILER_WARNING (CWE-476): [#def391]
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:64: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/girwriter-private.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/girwriter.c:27: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/girepository/girwriter.c: scope_hint: In function ‘gi_ir_writer_write’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:646:114: warning[-Wnull-dereference]: potential null pointer dereference
#  646 | #define G_TYPE_FROM_INSTANCE(instance)                          (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class))
#      |                                                                                                                  ^
#  644|    * Returns: the #GType
#  645|    */
#  646|-> #define G_TYPE_FROM_INSTANCE(instance)                          (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class))
#  647|   /**
#  648|    * G_TYPE_FROM_CLASS:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def392]
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c: scope_hint: In function ‘test_pollable_converter’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:2656:42: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipefds[0]’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:528:66: note: in expansion of macro ‘_G_TYPE_CIC’
glib2-2.83.0-build/glib-2.83.0/gio/ginputstream.h:35:38: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:295:11: note: in expansion of macro ‘G_INPUT_STREAM’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:293:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:293:3: note: in expansion of macro ‘g_assert_cmpint’
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:528:66: note: in expansion of macro ‘_G_TYPE_CIC’
glib2-2.83.0-build/glib-2.83.0/gio/ginputstream.h:35:38: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
glib2-2.83.0-build/glib-2.83.0/gio/tests/pollable.c:295:11: note: in expansion of macro ‘G_INPUT_STREAM’
# 2654|   /* --- implementation bits --- */
# 2655|   #if defined(G_DISABLE_CAST_CHECKS) || defined(__OPTIMIZE__)
# 2656|-> #  define _G_TYPE_CIC(ip, gt, ct)       ((ct*) (void *) ip)
# 2657|   #  define _G_TYPE_CCC(cp, gt, ct)       ((ct*) (void *) cp)
# 2658|   #else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def393]
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_type_info’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:335:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_type_info’
#  333|     ModuleTypeInfo *module_type_info = g_type_module_find_type_info (module, g_type);
#  334|   
#  335|->   *info = module_type_info->info;
#  336|     
#  337|     if (module_type_info->info.value_table)

Error: COMPILER_WARNING (CWE-476): [#def394]
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:335:9: warning[-Wnull-dereference]: potential null pointer dereference
#  335 |   *info = module_type_info->info;
#      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
#  333|     ModuleTypeInfo *module_type_info = g_type_module_find_type_info (module, g_type);
#  334|   
#  335|->   *info = module_type_info->info;
#  336|     
#  337|     if (module_type_info->info.value_table)

Error: COMPILER_WARNING (CWE-476): [#def395]
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_type_info’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:337:29: warning[-Wnull-dereference]: potential null pointer dereference
#  337 |   if (module_type_info->info.value_table)
#      |       ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
#  335|     *info = module_type_info->info;
#  336|     
#  337|->   if (module_type_info->info.value_table)
#  338|       *value_table = *module_type_info->info.value_table;
#  339|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def396]
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_interface_info’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:350:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_interface_info’
#  348|     ModuleInterfaceInfo *module_interface_info = g_type_module_find_interface_info (module, instance_type, interface_type);
#  349|   
#  350|->   *info = module_interface_info->info;
#  351|   }
#  352|   

Error: COMPILER_WARNING (CWE-476): [#def397]
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_interface_info’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:350:9: warning[-Wnull-dereference]: potential null pointer dereference
#  350 |   *info = module_interface_info->info;
#      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  348|     ModuleInterfaceInfo *module_interface_info = g_type_module_find_interface_info (module, instance_type, interface_type);
#  349|   
#  350|->   *info = module_interface_info->info;
#  351|   }
#  352|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def398]
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_register_type’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:420:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib2-2.83.0-build/glib-2.83.0/redhat-linux-build/glib/glibconfig.h:9: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gtypes.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/galloca.h:34: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/glib.h:32: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtype.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtypeplugin.h:26: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:24: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:388:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:389:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
glib2-2.83.0-build/glib-2.83.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
glib2-2.83.0-build/glib-2.83.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:389:3: note: in expansion of macro ‘g_return_val_if_fail’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_register_type’
#  418|         module_type_info = g_type_module_find_type_info (module, type);
#  419|   
#  420|->       if (module_type_info->parent_type != parent_type)
#  421|   	{
#  422|   	  const gchar *parent_type_name = g_type_name (parent_type);

Error: COMPILER_WARNING (CWE-476): [#def399]
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_register_type’
glib2-2.83.0-build/glib-2.83.0/gobject/gtypemodule.c:420:27: warning[-Wnull-dereference]: potential null pointer dereference
#  420 |       if (module_type_info->parent_type != parent_type)
#      |           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
#  418|         module_type_info = g_type_module_find_type_info (module, type);
#  419|   
#  420|->       if (module_type_info->parent_type != parent_type)
#  421|   	{
#  422|   	  const gchar *parent_type_name = g_type_name (parent_type);

Error: CPPCHECK_WARNING (CWE-758): [#def400]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/flags.c:40: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   38|     NO_FLAG      = 0,
#   39|     LOWEST_FLAG  = 1,
#   40|->   HIGHEST_FLAG = 1 << 31
#   41|   } MyFlagsEnum;
#   42|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def401]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/performance/performance-threaded.c: scope_hint: In function ‘simple_register_class’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/performance/performance-threaded.c:37:17: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘GType’ {aka ‘long unsigned int’} but received ‘int’ for variadic argument 1 of ‘args’
#   35|     for (;;)
#   36|       {
#   37|->       interface = va_arg (args, GType);
#   38|         if (interface == 0)
#   39|           break;

Error: CPPCHECK_WARNING (CWE-758): [#def402]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/signals.c:121: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  119|     MY_FLAGS_FIRST_BIT = (1 << 0),
#  120|     MY_FLAGS_THIRD_BIT = (1 << 2),
#  121|->   MY_FLAGS_LAST_BIT = (1 << 31)
#  122|   } MyFlags;
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def403]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘int’ for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#  115|   
#  116|     va_start (var_args, value);
#  117|->   G_VALUE_COLLECT (value, var_args, 0, &error);
#  118|     va_end (var_args);
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def404]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘int’ for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#  115|   
#  116|     va_start (var_args, value);
#  117|->   G_VALUE_COLLECT (value, var_args, 0, &error);
#  118|     va_end (var_args);
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def405]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘void *’ but received ‘int’ for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
#  115|   
#  116|     va_start (var_args, value);
#  117|->   G_VALUE_COLLECT (value, var_args, 0, &error);
#  118|     va_end (var_args);
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-685): [#def406]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c: scope_hint: In function ‘collect’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: warning[-Wanalyzer-va-list-exhausted]: ‘var_args’ has no more arguments (1 consumed)
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:31: included_from: Included from here.
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:85:5: note: in expansion of macro ‘G_VALUE_COLLECT_INIT2’
glib2-2.83.0-build/glib-2.83.0/gobject/gvaluecollector.h:174:3: note: in expansion of macro ‘G_VALUE_COLLECT_INIT’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:117:3: note: in expansion of macro ‘G_VALUE_COLLECT’ (12) ‘var_args’ has no more arguments (1 consumed)
#  115|   
#  116|     va_start (var_args, value);
#  117|->   G_VALUE_COLLECT (value, var_args, 0, &error);
#  118|     va_end (var_args);
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def407]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘gchar *’ {aka ‘char *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def408]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘gint *’ {aka ‘int *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def409]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘guchar *’ {aka ‘unsigned char *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def410]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘double’ but received ‘guint *’ {aka ‘unsigned int *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def411]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c: scope_hint: In function ‘lcopy’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘gchar *’ {aka ‘char *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def412]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘gint *’ {aka ‘int *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def413]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘guchar *’ {aka ‘unsigned char *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def414]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘guint *’ {aka ‘unsigned int *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def415]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘gchar *’ {aka ‘char *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def416]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘gint *’ {aka ‘int *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def417]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘guchar *’ {aka ‘unsigned char *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def418]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘guint *’ {aka ‘unsigned int *’} for variadic argument 1 of ‘var_args’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-685): [#def419]
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-list-exhausted]: ‘var_args’ has no more arguments (1 consumed)
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’
glib2-2.83.0-build/glib-2.83.0/gobject/tests/value.c:132:3: note: in expansion of macro ‘G_VALUE_LCOPY’ (12) ‘var_args’ has no more arguments (1 consumed)
#  130|   
#  131|     va_start (var_args, value);
#  132|->   G_VALUE_LCOPY (value, var_args, 0, &error);
#  133|     va_end (var_args);
#  134|   

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-98.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameglib2-2.83.0-1.fc42
store-results-to/tmp/tmptlnkuxzf/glib2-2.83.0-1.fc42.tar.xz
time-created2024-11-13 00:07:02
time-finished2024-11-13 00:19:40
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmptlnkuxzf/glib2-2.83.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmptlnkuxzf/glib2-2.83.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9