glib2-2.87.0-3.fc44

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-775): [#def6]
glib-2.87.0/fuzzing/driver.c:31:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_resource: opened here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:31:3: throw: if ‘fseek’ throws an exception...
glib-2.87.0/fuzzing/driver.c:31:3: danger: ‘fopen(argv[1], "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   29|     f = fopen (argv[1], "r");
#   30|     assert (f);
#   31|->   fseek (f, 0, SEEK_END);
#   32|     tell_result = ftell (f);
#   33|     assert (tell_result >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
glib-2.87.0/fuzzing/driver.c:31:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_memory: allocated here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:31:3: throw: if ‘fseek’ throws an exception...
glib-2.87.0/fuzzing/driver.c:31:3: danger: ‘fopen(argv[1], "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   29|     f = fopen (argv[1], "r");
#   30|     assert (f);
#   31|->   fseek (f, 0, SEEK_END);
#   32|     tell_result = ftell (f);
#   33|     assert (tell_result >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
glib-2.87.0/fuzzing/driver.c:32:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_resource: opened here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:32:17: throw: if ‘ftell’ throws an exception...
glib-2.87.0/fuzzing/driver.c:32:17: danger: ‘fopen(argv[1], "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   30|     assert (f);
#   31|     fseek (f, 0, SEEK_END);
#   32|->   tell_result = ftell (f);
#   33|     assert (tell_result >= 0);
#   34|     len = (size_t) tell_result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
glib-2.87.0/fuzzing/driver.c:32:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_memory: allocated here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:32:17: throw: if ‘ftell’ throws an exception...
glib-2.87.0/fuzzing/driver.c:32:17: danger: ‘fopen(argv[1], "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   30|     assert (f);
#   31|     fseek (f, 0, SEEK_END);
#   32|->   tell_result = ftell (f);
#   33|     assert (tell_result >= 0);
#   34|     len = (size_t) tell_result;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
glib-2.87.0/fuzzing/driver.c:35:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_resource: opened here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:33:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:34:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:35:3: throw: if ‘fseek’ throws an exception...
glib-2.87.0/fuzzing/driver.c:35:3: danger: ‘fopen(argv[1], "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   33|     assert (tell_result >= 0);
#   34|     len = (size_t) tell_result;
#   35|->   fseek (f, 0, SEEK_SET);
#   36|     buf = (unsigned char*) malloc (len);
#   37|     n_read = fread (buf, 1, len, f);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
glib-2.87.0/fuzzing/driver.c:35:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_memory: allocated here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:33:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:34:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:35:3: throw: if ‘fseek’ throws an exception...
glib-2.87.0/fuzzing/driver.c:35:3: danger: ‘fopen(argv[1], "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   33|     assert (tell_result >= 0);
#   34|     len = (size_t) tell_result;
#   35|->   fseek (f, 0, SEEK_SET);
#   36|     buf = (unsigned char*) malloc (len);
#   37|     n_read = fread (buf, 1, len, f);

Error: CPPCHECK_WARNING (CWE-476): [#def12]
glib-2.87.0/fuzzing/driver.c:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#   35|     fseek (f, 0, SEEK_SET);
#   36|     buf = (unsigned char*) malloc (len);
#   37|->   n_read = fread (buf, 1, len, f);
#   38|     assert (n_read == len);
#   39|     LLVMFuzzerTestOneInput (buf, len);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
glib-2.87.0/fuzzing/driver.c:39:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_resource: opened here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:33:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:34:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:38:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:39:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:39:3: throw: if ‘LLVMFuzzerTestOneInput’ throws an exception...
glib-2.87.0/fuzzing/driver.c:39:3: danger: ‘fopen(argv[1], "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#   37|     n_read = fread (buf, 1, len, f);
#   38|     assert (n_read == len);
#   39|->   LLVMFuzzerTestOneInput (buf, len);
#   40|   
#   41|     free (buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
glib-2.87.0/fuzzing/driver.c:39:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:33:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:34:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:36:26: acquire_memory: allocated here
glib-2.87.0/fuzzing/driver.c:38:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:39:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:39:3: throw: if ‘LLVMFuzzerTestOneInput’ throws an exception...
glib-2.87.0/fuzzing/driver.c:39:3: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#   37|     n_read = fread (buf, 1, len, f);
#   38|     assert (n_read == len);
#   39|->   LLVMFuzzerTestOneInput (buf, len);
#   40|   
#   41|     free (buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
glib-2.87.0/fuzzing/driver.c:39:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "r")’
glib-2.87.0/fuzzing/driver.c:26:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/fuzzing/driver.c:29:7: branch_false: ...to here
glib-2.87.0/fuzzing/driver.c:29:7: acquire_memory: allocated here
glib-2.87.0/fuzzing/driver.c:30:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:31:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:33:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:34:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:38:3: branch_true: following ‘true’ branch...
glib-2.87.0/fuzzing/driver.c:39:3: branch_true: ...to here
glib-2.87.0/fuzzing/driver.c:39:3: throw: if ‘LLVMFuzzerTestOneInput’ throws an exception...
glib-2.87.0/fuzzing/driver.c:39:3: danger: ‘fopen(argv[1], "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   37|     n_read = fread (buf, 1, len, f);
#   38|     assert (n_read == len);
#   39|->   LLVMFuzzerTestOneInput (buf, len);
#   40|   
#   41|     free (buf);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def16]
glib-2.87.0/gio/gapplicationcommandline.c:773:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gapplicationcommandline.c:769:3: branch_false: following ‘false’ branch (when ‘cmdline’ is non-NULL)...
glib-2.87.0/gio/gapplicationcommandline.c:769:3: branch_false: ...to here
glib-2.87.0/gio/gapplicationcommandline.c:770:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gapplicationcommandline.c:772:3: branch_true: ...to here
glib-2.87.0/gio/gapplicationcommandline.c:772:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gapplicationcommandline.c:773:13: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/gio/gapplicationcommandline.c:773:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  771|   
#  772|     va_start (ap, format);
#  773|->   message = g_strdup_vprintf (format, ap);
#  774|     va_end (ap);
#  775|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def17]
glib-2.87.0/gio/gapplicationcommandline.c:808:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gapplicationcommandline.c:804:3: branch_false: following ‘false’ branch (when ‘cmdline’ is non-NULL)...
glib-2.87.0/gio/gapplicationcommandline.c:804:3: branch_false: ...to here
glib-2.87.0/gio/gapplicationcommandline.c:805:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gapplicationcommandline.c:807:3: branch_true: ...to here
glib-2.87.0/gio/gapplicationcommandline.c:807:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gapplicationcommandline.c:808:13: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/gio/gapplicationcommandline.c:808:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  806|   
#  807|     va_start (ap, format);
#  808|->   message = g_strdup_vprintf (format, ap);
#  809|     va_end (ap);
#  810|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def18]
glib-2.87.0/gio/gasyncinitable.c:150:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gasyncinitable.c:336:1: enter_function: entry to ‘g_async_initable_new_async’
glib-2.87.0/gio/gasyncinitable.c:346:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gasyncinitable.c:347:3: call_function: calling ‘g_async_initable_new_valist_async’ from ‘g_async_initable_new_async’
#  148|   
#  149|   typedef GAsyncInitableIface GAsyncInitableInterface;
#  150|-> G_DEFINE_INTERFACE (GAsyncInitable, g_async_initable, G_TYPE_OBJECT)
#  151|   
#  152|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def19]
glib-2.87.0/gio/gasyncinitable.c:432:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gasyncinitable.c:336:1: enter_function: entry to ‘g_async_initable_new_async’
glib-2.87.0/gio/gasyncinitable.c:346:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gasyncinitable.c:347:3: call_function: calling ‘g_async_initable_new_valist_async’ from ‘g_async_initable_new_async’
#  430|     GObject *obj;
#  431|   
#  432|->   g_return_if_fail (G_TYPE_IS_ASYNC_INITABLE (object_type));
#  433|   
#  434|     obj = g_object_new_valist (object_type,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def20]
glib-2.87.0/gio/gasyncinitable.c:434:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gasyncinitable.c:336:1: enter_function: entry to ‘g_async_initable_new_async’
glib-2.87.0/gio/gasyncinitable.c:346:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gasyncinitable.c:347:3: call_function: calling ‘g_async_initable_new_valist_async’ from ‘g_async_initable_new_async’
#  432|     g_return_if_fail (G_TYPE_IS_ASYNC_INITABLE (object_type));
#  433|   
#  434|->   obj = g_object_new_valist (object_type,
#  435|   			     first_property_name,
#  436|   			     var_args);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
glib-2.87.0/gio/gcontenttype-fdo.c:704:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
glib-2.87.0/gio/gcontenttype-fdo.c:701:7: acquire_memory: allocated here
glib-2.87.0/gio/gcontenttype-fdo.c:702:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gcontenttype-fdo.c:702:6: branch_true: ...to here
glib-2.87.0/gio/gcontenttype-fdo.c:704:21: throw: if ‘readdir’ throws an exception...
glib-2.87.0/gio/gcontenttype-fdo.c:704:21: danger: ‘opendir(dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  702|     if (d)
#  703|       {
#  704|->       while ((ent = readdir (d)) != NULL)
#  705|           {
#  706|             if (g_str_has_suffix (ent->d_name, ".xml"))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
glib-2.87.0/gio/gcontenttype-fdo.c:730:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
glib-2.87.0/gio/gcontenttype-fdo.c:727:7: acquire_memory: allocated here
glib-2.87.0/gio/gcontenttype-fdo.c:728:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gcontenttype-fdo.c:728:6: branch_true: ...to here
glib-2.87.0/gio/gcontenttype-fdo.c:730:21: throw: if ‘readdir’ throws an exception...
glib-2.87.0/gio/gcontenttype-fdo.c:730:21: danger: ‘opendir(dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  728|     if (d)
#  729|       {
#  730|->       while ((ent = readdir (d)) != NULL)
#  731|           {
#  732|             if (strcmp (ent->d_name, "packages") != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
glib-2.87.0/gio/gdbusaddress.c:740:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(nonce_file, "rbe")’
glib-2.87.0/gio/gdbusaddress.c:570:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:600:12: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:611:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:625:11: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:629:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:641:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:643:24: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:644:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:657:21: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:684:6: branch_true: following ‘true’ branch (when ‘connectable’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:690:16: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:704:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_true: following ‘true’ branch (when ‘nonce_file’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:717:15: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:717:15: acquire_resource: opened here
glib-2.87.0/gio/gdbusaddress.c:719:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:731:28: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:736:14: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:740:19: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:740:19: throw: if ‘glib_gettext’ throws an exception...
glib-2.87.0/gio/gdbusaddress.c:740:19: danger: ‘fopen(nonce_file, "rbe")’ leaks here; was opened at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#  738|                 if (num_bytes_read == 0)
#  739|                   {
#  740|->                   g_set_error (error,
#  741|                                  G_IO_ERROR,
#  742|                                  G_IO_ERROR_INVALID_ARGUMENT,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
glib-2.87.0/gio/gdbusaddress.c:740:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(nonce_file, "rbe")’
glib-2.87.0/gio/gdbusaddress.c:570:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:600:12: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:611:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:625:11: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:629:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:641:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:643:24: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:644:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:657:21: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:684:6: branch_true: following ‘true’ branch (when ‘connectable’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:690:16: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:704:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_true: following ‘true’ branch (when ‘nonce_file’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:717:15: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:717:15: acquire_memory: allocated here
glib-2.87.0/gio/gdbusaddress.c:719:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:731:28: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:736:14: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:740:19: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:740:19: throw: if ‘glib_gettext’ throws an exception...
glib-2.87.0/gio/gdbusaddress.c:740:19: danger: ‘fopen(nonce_file, "rbe")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
#  738|                 if (num_bytes_read == 0)
#  739|                   {
#  740|->                   g_set_error (error,
#  741|                                  G_IO_ERROR,
#  742|                                  G_IO_ERROR_INVALID_ARGUMENT,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
glib-2.87.0/gio/gdbusaddress.c:749:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(nonce_file, "rbe")’
glib-2.87.0/gio/gdbusaddress.c:570:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:600:12: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:611:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:625:11: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:629:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:641:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:643:24: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:644:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:657:21: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:684:6: branch_true: following ‘true’ branch (when ‘connectable’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:690:16: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:704:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_true: following ‘true’ branch (when ‘nonce_file’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:717:15: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:717:15: acquire_resource: opened here
glib-2.87.0/gio/gdbusaddress.c:719:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:731:28: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:736:14: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:749:19: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:749:19: throw: if ‘glib_gettext’ throws an exception...
glib-2.87.0/gio/gdbusaddress.c:749:19: danger: ‘fopen(nonce_file, "rbe")’ leaks here; was opened at [(17)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/16)
#  747|                 else
#  748|                   {
#  749|->                   g_set_error (error,
#  750|                                  G_IO_ERROR,
#  751|                                  G_IO_ERROR_INVALID_ARGUMENT,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
glib-2.87.0/gio/gdbusaddress.c:749:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(nonce_file, "rbe")’
glib-2.87.0/gio/gdbusaddress.c:570:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:600:12: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:611:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:625:11: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:629:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:641:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:643:24: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:644:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:657:21: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:684:6: branch_true: following ‘true’ branch (when ‘connectable’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:690:16: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:704:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:709:10: branch_true: following ‘true’ branch (when ‘nonce_file’ is non-NULL)...
glib-2.87.0/gio/gdbusaddress.c:717:15: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:717:15: acquire_memory: allocated here
glib-2.87.0/gio/gdbusaddress.c:719:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:731:28: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:736:14: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_true: ...to here
glib-2.87.0/gio/gdbusaddress.c:738:18: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gdbusaddress.c:749:19: branch_false: ...to here
glib-2.87.0/gio/gdbusaddress.c:749:19: throw: if ‘glib_gettext’ throws an exception...
glib-2.87.0/gio/gdbusaddress.c:749:19: danger: ‘fopen(nonce_file, "rbe")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/16)
#  747|                 else
#  748|                   {
#  749|->                   g_set_error (error,
#  750|                                  G_IO_ERROR,
#  751|                                  G_IO_ERROR_INVALID_ARGUMENT,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def27]
glib-2.87.0/gio/gdbusauth.c:62:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbusauth.c:52:7: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbusauth.c:59:7: branch_true: ...to here
glib-2.87.0/gio/gdbusauth.c:61:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbusauth.c:62:11: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/gio/gdbusauth.c:62:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   60|   
#   61|         va_start (var_args, message);
#   62|->       s = g_strdup_vprintf (message, var_args);
#   63|         va_end (var_args);
#   64|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def28]
glib-2.87.0/gio/gdbusauthmechanismsha1.c:508:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbusauthmechanismsha1.c:507:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbusauthmechanismsha1.c:508:7: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/gio/gdbusauthmechanismsha1.c:508:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  506|   
#  507|     va_start (var_args, message);
#  508|->   s = g_strdup_vprintf (message, var_args);
#  509|     va_end (var_args);
#  510|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def29]
glib-2.87.0/gio/gdbusdaemon.c:1377:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbusdaemon.c:1376:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbusdaemon.c:1377:19: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/gio/gdbusdaemon.c:1377:19: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1375|   
# 1376|     va_start (var_args, format);
# 1377|->   error_message = g_strdup_vprintf (format, var_args);
# 1378|     va_end (var_args);
# 1379|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def30]
glib-2.87.0/gio/gdbuserror.c:665:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbuserror.c:614:1: enter_function: entry to ‘g_dbus_error_set_dbus_error’
glib-2.87.0/gio/gdbuserror.c:620:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbuserror.c:621:3: branch_true: ...to here
glib-2.87.0/gio/gdbuserror.c:621:3: branch_true: following ‘true’ branch (when ‘dbus_error_name’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:622:3: branch_true: ...to here
glib-2.87.0/gio/gdbuserror.c:622:3: branch_true: following ‘true’ branch (when ‘dbus_error_message’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:624:6: branch_true: ...to here
glib-2.87.0/gio/gdbuserror.c:624:6: branch_false: following ‘false’ branch (when ‘error’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:627:6: branch_false: ...to here
glib-2.87.0/gio/gdbuserror.c:627:6: branch_false: following ‘false’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:634:7: branch_false: ...to here
glib-2.87.0/gio/gdbuserror.c:634:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbuserror.c:635:7: call_function: calling ‘g_dbus_error_set_dbus_error_valist’ from ‘g_dbus_error_set_dbus_error’
#  663|                                       va_list       var_args)
#  664|   {
#  665|->   g_return_if_fail (error == NULL || *error == NULL);
#  666|     g_return_if_fail (dbus_error_name != NULL);
#  667|     g_return_if_fail (dbus_error_message != NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def31]
glib-2.87.0/gio/gdbuserror.c:676:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbuserror.c:614:1: enter_function: entry to ‘g_dbus_error_set_dbus_error’
glib-2.87.0/gio/gdbuserror.c:620:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gdbuserror.c:621:3: branch_true: ...to here
glib-2.87.0/gio/gdbuserror.c:621:3: branch_true: following ‘true’ branch (when ‘dbus_error_name’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:622:3: branch_true: ...to here
glib-2.87.0/gio/gdbuserror.c:622:3: branch_true: following ‘true’ branch (when ‘dbus_error_message’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:624:6: branch_true: ...to here
glib-2.87.0/gio/gdbuserror.c:624:6: branch_false: following ‘false’ branch (when ‘error’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:627:6: branch_false: ...to here
glib-2.87.0/gio/gdbuserror.c:627:6: branch_false: following ‘false’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gdbuserror.c:634:7: branch_false: ...to here
glib-2.87.0/gio/gdbuserror.c:634:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbuserror.c:635:7: call_function: calling ‘g_dbus_error_set_dbus_error_valist’ from ‘g_dbus_error_set_dbus_error’
#  674|         gchar *message;
#  675|         gchar *s;
#  676|->       message = g_strdup_vprintf (format, var_args);
#  677|         s = g_strdup_printf ("%s: %s", message, dbus_error_message);
#  678|         *error = g_dbus_error_new_for_dbus_error (dbus_error_name, s);

Error: CPPCHECK_WARNING (CWE-758): [#def32]
glib-2.87.0/gio/gdbusmessage.c:3729: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 3727|     for (n = 0; n < 32; n++)
# 3728|       {
# 3729|->       if ((value & (1<<n)) != 0)
# 3730|           {
# 3731|             GFlagsValue *flags_value;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def33]
glib-2.87.0/gio/gdbusmethodinvocation.c:90:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbusmethodinvocation.c:643:1: enter_function: entry to ‘g_dbus_method_invocation_return_error’
glib-2.87.0/gio/gdbusmethodinvocation.c:651:3: branch_false: following ‘false’ branch (when ‘invocation’ is non-NULL)...
glib-2.87.0/gio/gdbusmethodinvocation.c:651:3: branch_false: ...to here
glib-2.87.0/gio/gdbusmethodinvocation.c:652:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gdbusmethodinvocation.c:654:3: branch_true: ...to here
glib-2.87.0/gio/gdbusmethodinvocation.c:654:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbusmethodinvocation.c:655:3: call_function: calling ‘g_dbus_method_invocation_return_error_valist’ from ‘g_dbus_method_invocation_return_error’
#   88|   };
#   89|   
#   90|-> G_DEFINE_TYPE (GDBusMethodInvocation, g_dbus_method_invocation, G_TYPE_OBJECT)
#   91|   
#   92|   static void

Error: GCC_ANALYZER_WARNING (CWE-404): [#def34]
glib-2.87.0/gio/gdbusmethodinvocation.c:689:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbusmethodinvocation.c:643:1: enter_function: entry to ‘g_dbus_method_invocation_return_error’
glib-2.87.0/gio/gdbusmethodinvocation.c:651:3: branch_false: following ‘false’ branch (when ‘invocation’ is non-NULL)...
glib-2.87.0/gio/gdbusmethodinvocation.c:651:3: branch_false: ...to here
glib-2.87.0/gio/gdbusmethodinvocation.c:652:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gdbusmethodinvocation.c:654:3: branch_true: ...to here
glib-2.87.0/gio/gdbusmethodinvocation.c:654:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbusmethodinvocation.c:655:3: call_function: calling ‘g_dbus_method_invocation_return_error_valist’ from ‘g_dbus_method_invocation_return_error’
#  687|     gchar *literal_message;
#  688|   
#  689|->   g_return_if_fail (G_IS_DBUS_METHOD_INVOCATION (invocation));
#  690|     g_return_if_fail (format != NULL);
#  691|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
glib-2.87.0/gio/gdbusmethodinvocation.c:692:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gdbusmethodinvocation.c:643:1: enter_function: entry to ‘g_dbus_method_invocation_return_error’
glib-2.87.0/gio/gdbusmethodinvocation.c:651:3: branch_false: following ‘false’ branch (when ‘invocation’ is non-NULL)...
glib-2.87.0/gio/gdbusmethodinvocation.c:651:3: branch_false: ...to here
glib-2.87.0/gio/gdbusmethodinvocation.c:652:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gdbusmethodinvocation.c:654:3: branch_true: ...to here
glib-2.87.0/gio/gdbusmethodinvocation.c:654:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gdbusmethodinvocation.c:655:3: call_function: calling ‘g_dbus_method_invocation_return_error_valist’ from ‘g_dbus_method_invocation_return_error’
#  690|     g_return_if_fail (format != NULL);
#  691|   
#  692|->   literal_message = g_strdup_vprintf (format, var_args);
#  693|     g_dbus_method_invocation_return_error_literal (invocation,
#  694|                                                    domain,

Error: CPPCHECK_WARNING (CWE-457): [#def36]
glib-2.87.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-688): [#def37]
glib-2.87.0/gio/gfdonotificationbackend.c:111:11: warning[-Wanalyzer-null-argument]: use of NULL ‘id’ where non-null expected
glib-2.87.0/gio/gfdonotificationbackend.c:464:1: enter_function: entry to ‘g_fdo_notification_backend_send_notification’
glib-2.87.0/gio/gfdonotificationbackend.c:493:7: call_function: calling ‘freedesktop_notification_new’ from ‘g_fdo_notification_backend_send_notification’
glib-2.87.0/gio/gfdonotificationbackend.c:493:7: return_function: returning to ‘g_fdo_notification_backend_send_notification’ from ‘freedesktop_notification_new’
glib-2.87.0/gio/gfdonotificationbackend.c:495:9: call_function: calling ‘g_fdo_notification_backend_find_notification’ from ‘g_fdo_notification_backend_send_notification’
#  109|       {
#  110|         FreedesktopNotification *n = it->data;
#  111|->       if (g_str_equal (n->id, id))
#  112|           return n;
#  113|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def38]
glib-2.87.0/gio/gfile.c:7593:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gfile.c:7590:3: branch_true: following ‘true’ branch (when ‘first_element’ is non-NULL)...
glib-2.87.0/gio/gfile.c:7592:3: branch_true: ...to here
glib-2.87.0/gio/gfile.c:7592:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gfile.c:7593:9: throw: if ‘g_build_filename_valist’ throws an exception...
glib-2.87.0/gio/gfile.c:7593:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 7591|   
# 7592|     va_start (args, first_element);
# 7593|->   str = g_build_filename_valist (first_element, &args);
# 7594|     va_end (args);
# 7595|   

Error: CPPCHECK_WARNING (CWE-457): [#def39]
glib-2.87.0/gio/gfileinfo.c:1625: error[legacyUninitvar]: Uninitialized variable: *&value
# 1623|     g_return_val_if_fail (G_IS_FILE_INFO (info), G_FILE_TYPE_UNKNOWN);
# 1624|   
# 1625|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_TYPE, G_FILE_TYPE_UNKNOWN);
# 1626|     return (GFileType)_g_file_attribute_value_get_uint32 (value);
# 1627|   }

Error: CPPCHECK_WARNING (CWE-457): [#def40]
glib-2.87.0/gio/gfileinfo.c:1647: error[legacyUninitvar]: Uninitialized variable: *&value
# 1645|     g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
# 1646|   
# 1647|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN, FALSE);
# 1648|     return _g_file_attribute_value_get_boolean (value);
# 1649|   }

Error: CPPCHECK_WARNING (CWE-457): [#def41]
glib-2.87.0/gio/gfileinfo.c:1669: error[legacyUninitvar]: Uninitialized variable: *&value
# 1667|     g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
# 1668|   
# 1669|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP, FALSE);
# 1670|     return _g_file_attribute_value_get_boolean (value);
# 1671|   }

Error: CPPCHECK_WARNING (CWE-457): [#def42]
glib-2.87.0/gio/gfileinfo.c:1691: error[legacyUninitvar]: Uninitialized variable: *&value
# 1689|     g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
# 1690|   
# 1691|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK, FALSE);
# 1692|     return _g_file_attribute_value_get_boolean (value);
# 1693|   }

Error: CPPCHECK_WARNING (CWE-457): [#def43]
glib-2.87.0/gio/gfileinfo.c:1713: error[legacyUninitvar]: Uninitialized variable: *&value
# 1711|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1712|   
# 1713|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_NAME, NULL);
# 1714|     return _g_file_attribute_value_get_byte_string (value);
# 1715|   }

Error: CPPCHECK_WARNING (CWE-457): [#def44]
glib-2.87.0/gio/gfileinfo.c:1735: error[legacyUninitvar]: Uninitialized variable: *&value
# 1733|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1734|   
# 1735|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, NULL);
# 1736|     return _g_file_attribute_value_get_string (value);
# 1737|   }

Error: CPPCHECK_WARNING (CWE-457): [#def45]
glib-2.87.0/gio/gfileinfo.c:1757: error[legacyUninitvar]: Uninitialized variable: *&value
# 1755|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1756|   
# 1757|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME, NULL);
# 1758|     return _g_file_attribute_value_get_string (value);
# 1759|   }

Error: CPPCHECK_WARNING (CWE-457): [#def46]
glib-2.87.0/gio/gfileinfo.c:1780: error[legacyUninitvar]: Uninitialized variable: *&value
# 1778|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1779|   
# 1780|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_ICON, NULL);
# 1781|   
# 1782|     obj = _g_file_attribute_value_get_object (value);

Error: CPPCHECK_WARNING (CWE-457): [#def47]
glib-2.87.0/gio/gfileinfo.c:1809: error[legacyUninitvar]: Uninitialized variable: *&value
# 1807|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1808|   
# 1809|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON, NULL);
# 1810|   
# 1811|     obj = _g_file_attribute_value_get_object (value);

Error: CPPCHECK_WARNING (CWE-457): [#def48]
glib-2.87.0/gio/gfileinfo.c:1836: error[legacyUninitvar]: Uninitialized variable: *&value
# 1834|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 1835|   
# 1836|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, NULL);
# 1837|     return _g_file_attribute_value_get_string (value);
# 1838|   }

Error: CPPCHECK_WARNING (CWE-457): [#def49]
glib-2.87.0/gio/gfileinfo.c:1860: error[legacyUninitvar]: Uninitialized variable: *&value
# 1858|     g_return_val_if_fail (G_IS_FILE_INFO (info), (goffset) 0);
# 1859|   
# 1860|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SIZE, (goffset) 0);
# 1861|     return (goffset) _g_file_attribute_value_get_uint64 (value);
# 1862|   }

Error: CPPCHECK_WARNING (CWE-457): [#def50]
glib-2.87.0/gio/gfileinfo.c:2076: error[legacyUninitvar]: Uninitialized variable: *&value
# 2074|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 2075|   
# 2076|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET, NULL);
# 2077|     return _g_file_attribute_value_get_byte_string (value);
# 2078|   }

Error: CPPCHECK_WARNING (CWE-457): [#def51]
glib-2.87.0/gio/gfileinfo.c:2099: error[legacyUninitvar]: Uninitialized variable: *&value
# 2097|     g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
# 2098|   
# 2099|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_ETAG_VALUE, NULL);
# 2100|     return _g_file_attribute_value_get_string (value);
# 2101|   }

Error: CPPCHECK_WARNING (CWE-457): [#def52]
glib-2.87.0/gio/gfileinfo.c:2122: error[legacyUninitvar]: Uninitialized variable: *&value
# 2120|     g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
# 2121|   
# 2122|->   get_required_attribute (&value, info, G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER, 0);
# 2123|     return _g_file_attribute_value_get_int32 (value);
# 2124|   }

Error: COMPILER_WARNING (CWE-704): [#def53]
glib-2.87.0/gio/ginetaddressmask.c: scope_hint: In function ‘g_inet_address_mask_new_from_string’
glib-2.87.0/gio/ginetaddressmask.c:300:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  300 |   slash = strchr (mask_string, '/');
#      |         ^
#  298|     guint length;
#  299|   
#  300|->   slash = strchr (mask_string, '/');
#  301|     if (slash)
#  302|       {

Error: COMPILER_WARNING (CWE-704): [#def54]
glib-2.87.0/gio/ginetaddressmask.c:300:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  298|     guint length;
#  299|   
#  300|->   slash = strchr (mask_string, '/');
#  301|     if (slash)
#  302|       {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def55]
glib-2.87.0/gio/ginitable.c:60:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/ginitable.c:153:1: enter_function: entry to ‘g_initable_new’
glib-2.87.0/gio/ginitable.c:162:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/ginitable.c:163:12: call_function: calling ‘g_initable_new_valist’ from ‘g_initable_new’
#   58|   
#   59|   typedef GInitableIface GInitableInterface;
#   60|-> G_DEFINE_INTERFACE (GInitable, g_initable, G_TYPE_OBJECT)
#   61|   
#   62|   static void

Error: GCC_ANALYZER_WARNING (CWE-404): [#def56]
glib-2.87.0/gio/ginitable.c:243:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/ginitable.c:153:1: enter_function: entry to ‘g_initable_new’
glib-2.87.0/gio/ginitable.c:162:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/ginitable.c:163:12: call_function: calling ‘g_initable_new_valist’ from ‘g_initable_new’
#  241|     GObject *obj;
#  242|   
#  243|->   g_return_val_if_fail (G_TYPE_IS_INITABLE (object_type), NULL);
#  244|   
#  245|     obj = g_object_new_valist (object_type,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def57]
glib-2.87.0/gio/ginitable.c:245:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/ginitable.c:153:1: enter_function: entry to ‘g_initable_new’
glib-2.87.0/gio/ginitable.c:162:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/ginitable.c:163:12: call_function: calling ‘g_initable_new_valist’ from ‘g_initable_new’
#  243|     g_return_val_if_fail (G_TYPE_IS_INITABLE (object_type), NULL);
#  244|   
#  245|->   obj = g_object_new_valist (object_type,
#  246|   			     first_property_name,
#  247|   			     var_args);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
glib-2.87.0/gio/gio-launch-desktop.c:134:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/gio-launch-desktop.c:127:8: acquire_resource: socket created here
glib-2.87.0/gio/gio-launch-desktop.c:129:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
glib-2.87.0/gio/gio-launch-desktop.c:132:65: branch_false: ...to here
glib-2.87.0/gio/gio-launch-desktop.c:134:7: throw: if ‘connect’ throws an exception...
glib-2.87.0/gio/gio-launch-desktop.c:134:7: danger: ‘fd’ leaks here
#  132|     salen = offsetof (struct sockaddr_un, sun_path) + (socklen_t) strlen (sa.un.sun_path) + 1;
#  133|   
#  134|->   if (connect (fd, &sa.sa, salen) < 0)
#  135|       goto fail;
#  136|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def59]
glib-2.87.0/gio/gio-launch-desktop.c:253:3: warning[-Wanalyzer-putenv-of-auto-var]: ‘putenv’ on a pointer to automatic variable ‘buf’
glib-2.87.0/gio/gio-launch-desktop.c:246:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
glib-2.87.0/gio/gio-launch-desktop.c:249:7: branch_false: ...to here
glib-2.87.0/gio/gio-launch-desktop.c:250:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gio-launch-desktop.c:253:3: branch_false: ...to here
glib-2.87.0/gio/gio-launch-desktop.c:253:3: danger: ‘putenv’ on a pointer to automatic variable ‘buf’
#  251|       return -1;
#  252|   
#  253|->   putenv (buf);
#  254|   
#  255|   #if defined(__linux__) && !defined(__ANDROID__)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def60]
glib-2.87.0/gio/gio-tool.c:42:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gio-tool.c:41:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gio-tool.c:42:13: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/gio/gio-tool.c:42:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   40|   
#   41|     va_start (args, format);
#   42|->   message = g_strdup_vprintf (format, args);
#   43|     va_end (args);
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def61]
glib-2.87.0/gio/glib-compile-resources.c:662:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/glib-compile-resources.c:655:6: branch_false: following ‘false’ branch (when ‘ext’ is non-NULL)...
glib-2.87.0/gio/glib-compile-resources.c:658:3: branch_false: ...to here
glib-2.87.0/gio/glib-compile-resources.c:659:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/glib-compile-resources.c:660:10: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
glib-2.87.0/gio/glib-compile-resources.c:662:11: branch_true: ...to here
glib-2.87.0/gio/glib-compile-resources.c:662:11: throw: if ‘g_ascii_strcasecmp’ throws an exception...
glib-2.87.0/gio/glib-compile-resources.c:662:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  660|     while ((value = va_arg (list, const char *)) != NULL)
#  661|       {
#  662|->       if (g_ascii_strcasecmp (ext, value) != 0)
#  663|           continue;
#  664|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def62]
glib-2.87.0/gio/glocalfile.c:1562:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/gio/glocalfile.c:1749:1: enter_function: entry to ‘_g_local_file_find_topdir_for’
glib-2.87.0/gio/glocalfile.c:1755:9: call_function: calling ‘get_parent’ from ‘_g_local_file_find_topdir_for’
# 1560|   
# 1561|     path_copy = g_strdup (path);
# 1562|->   len = strlen (path_copy);
# 1563|     while (len > 1 && path_copy[len-1] == '/')
# 1564|       path_copy[--len] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
glib-2.87.0/gio/glocalfile.c:1562:9: warning[-Wanalyzer-null-argument]: use of NULL ‘dir’ where non-null expected
glib-2.87.0/gio/glocalfile.c:1708:1: enter_function: entry to ‘find_mountpoint_for’
glib-2.87.0/gio/glocalfile.c:1715:6: branch_false: following ‘false’ branch (when ‘resolve_basename_symlink == 0’)...
glib-2.87.0/gio/glocalfile.c:1722:11: call_function: inlined call to ‘g_strdup_inline’ from ‘find_mountpoint_for’
glib-2.87.0/gio/glocalfile.c:1726:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/glocalfile.c:1728:16: branch_true: ...to here
glib-2.87.0/gio/glocalfile.c:1728:16: call_function: calling ‘get_parent’ from ‘find_mountpoint_for’
# 1560|   
# 1561|     path_copy = g_strdup (path);
# 1562|->   len = strlen (path_copy);
# 1563|     while (len > 1 && path_copy[len-1] == '/')
# 1564|       path_copy[--len] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def64]
glib-2.87.0/gio/glocalfile.c:1562:9: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
glib-2.87.0/gio/glocalfile.c:1708:1: enter_function: entry to ‘find_mountpoint_for’
glib-2.87.0/gio/glocalfile.c:1715:6: branch_false: following ‘false’ branch (when ‘resolve_basename_symlink == 0’)...
glib-2.87.0/gio/glocalfile.c:1722:11: call_function: inlined call to ‘g_strdup_inline’ from ‘find_mountpoint_for’
glib-2.87.0/gio/glocalfile.c:1726:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/glocalfile.c:1728:16: branch_true: ...to here
glib-2.87.0/gio/glocalfile.c:1728:16: call_function: calling ‘get_parent’ from ‘find_mountpoint_for’
# 1560|   
# 1561|     path_copy = g_strdup (path);
# 1562|->   len = strlen (path_copy);
# 1563|     while (len > 1 && path_copy[len-1] == '/')
# 1564|       path_copy[--len] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def65]
glib-2.87.0/gio/glocalfile.c:1620:11: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
glib-2.87.0/gio/glocalfile.c:1708:1: enter_function: entry to ‘find_mountpoint_for’
glib-2.87.0/gio/glocalfile.c:1715:6: branch_true: following ‘true’ branch (when ‘resolve_basename_symlink != 0’)...
glib-2.87.0/gio/glocalfile.c:1717:13: branch_true: ...to here
glib-2.87.0/gio/glocalfile.c:1717:13: call_function: calling ‘expand_symlinks’ from ‘find_mountpoint_for’
# 1618|     do
# 1619|       {
# 1620|->       if (g_lstat (target, &target_stat) != 0)
# 1621|           {
# 1622|             g_free (target);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
glib-2.87.0/gio/glocalfile.c:3136:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopendir(fd)’
glib-2.87.0/gio/glocalfile.c:3134:12: acquire_memory: allocated here
glib-2.87.0/gio/glocalfile.c:3136:11: branch_true: following ‘true’ branch...
glib-2.87.0/gio/glocalfile.c:3136:18: branch_true: ...to here
glib-2.87.0/gio/glocalfile.c:3136:18: throw: if ‘glib__private__’ throws an exception...
glib-2.87.0/gio/glocalfile.c:3136:18: danger: ‘fdopendir(fd)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 3134|       dirp = fdopendir (fd);
# 3135|       saved_errno = errno;
# 3136|->     dir = dirp ? GLIB_PRIVATE_CALL(g_dir_new_from_dirp) (dirp) : NULL;
# 3137|       g_assert ((dirp == NULL) == (dir == NULL));
# 3138|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
glib-2.87.0/gio/glocalfileenumerator.c:82:1: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(g_file_get_path(file))’
glib-2.87.0/gio/glocalfileenumerator.c:206:1: enter_function: entry to ‘_g_local_file_enumerator_new’
glib-2.87.0/gio/glocalfileenumerator.c:235:9: acquire_memory: allocated here
glib-2.87.0/gio/glocalfileenumerator.c:236:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/glocalfileenumerator.c:253:11: branch_false: ...to here
glib-2.87.0/gio/glocalfileenumerator.c:253:11: call_function: calling ‘_g_local_file_enumerator_get_type’ from ‘_g_local_file_enumerator_new’
#   80|   
#   81|   #define g_local_file_enumerator_get_type _g_local_file_enumerator_get_type
#   82|-> G_DEFINE_TYPE (GLocalFileEnumerator, g_local_file_enumerator, G_TYPE_FILE_ENUMERATOR)
#   83|   
#   84|   static GFileInfo *g_local_file_enumerator_next_file (GFileEnumerator  *enumerator,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
glib-2.87.0/gio/glocalfileenumerator.c:259:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/gio/glocalfileenumerator.c:235:9: acquire_memory: allocated here
glib-2.87.0/gio/glocalfileenumerator.c:236:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/glocalfileenumerator.c:253:11: branch_false: ...to here
glib-2.87.0/gio/glocalfileenumerator.c:259:20: throw: if ‘g_file_attribute_matcher_new’ throws an exception...
glib-2.87.0/gio/glocalfileenumerator.c:259:20: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  257|     local->dir = dir;
#  258|     local->filename = filename;
#  259|->   local->matcher = g_file_attribute_matcher_new (attributes);
#  260|   #ifndef USE_GDIR
#  261|     local->reduced_matcher = g_file_attribute_matcher_subtract_attributes (local->matcher,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def69]
glib-2.87.0/gio/gmarshal-internal.c:131:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:128:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:130:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:131:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:131:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:131:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  129|     arg0 = (gpointer) va_arg (args_copy, gpointer);
#  130|     if (arg0 != NULL)
#  131|->     arg0 = g_object_ref (arg0);
#  132|     va_end (args_copy);
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def70]
glib-2.87.0/gio/gmarshal-internal.c:222:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:219:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:221:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:222:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:222:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:222:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  220|     arg0 = (gpointer) va_arg (args_copy, gpointer);
#  221|     if (arg0 != NULL)
#  222|->     arg0 = g_object_ref (arg0);
#  223|     arg1 = (guint) va_arg (args_copy, guint);
#  224|     va_end (args_copy);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def71]
glib-2.87.0/gio/gmarshal-internal.c:315:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:312:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:314:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:315:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:315:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:315:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  313|     arg0 = (gpointer) va_arg (args_copy, gpointer);
#  314|     if (arg0 != NULL)
#  315|->     arg0 = g_object_ref (arg0);
#  316|     arg1 = (gpointer) va_arg (args_copy, gpointer);
#  317|     if (arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def72]
glib-2.87.0/gio/gmarshal-internal.c:318:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:312:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:314:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:316:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:317:6: branch_true: following ‘true’ branch (when ‘arg1’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:318:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:318:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:318:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  316|     arg1 = (gpointer) va_arg (args_copy, gpointer);
#  317|     if (arg1 != NULL)
#  318|->     arg1 = g_object_ref (arg1);
#  319|     va_end (args_copy);
#  320|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def73]
glib-2.87.0/gio/gmarshal-internal.c:743:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:740:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:742:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:743:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:743:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  741|     arg0 = (gpointer) va_arg (args_copy, gpointer);
#  742|     if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
#  743|->     arg0 = g_boxed_copy (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg0);
#  744|     va_end (args_copy);
#  745|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def74]
glib-2.87.0/gio/gmarshal-internal.c:830:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:827:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:829:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:830:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:830:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:830:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  828|     arg0 = (gpointer) va_arg (args_copy, gpointer);
#  829|     if (arg0 != NULL)
#  830|->     arg0 = g_object_ref (arg0);
#  831|     va_end (args_copy);
#  832|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def75]
glib-2.87.0/gio/gmarshal-internal.c:917:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:913:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:916:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:917:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:917:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
#  915|     arg1 = (gpointer) va_arg (args_copy, gpointer);
#  916|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
#  917|->     arg1 = g_boxed_copy (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
#  918|     va_end (args_copy);
#  919|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def76]
glib-2.87.0/gio/gmarshal-internal.c:1002:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:998:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1001:6: branch_true: following ‘true’ branch (when ‘arg1’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1002:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1002:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1002:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 1000|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1001|     if (arg1 != NULL)
# 1002|->     arg1 = g_object_ref (arg1);
# 1003|     va_end (args_copy);
# 1004|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def77]
glib-2.87.0/gio/gmarshal-internal.c:1091:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1087:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1090:6: branch_true: following ‘true’ branch (when ‘arg1’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1091:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1091:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1091:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
# 1089|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1090|     if (arg1 != NULL)
# 1091|->     arg1 = g_object_ref (arg1);
# 1092|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 1093|     if (arg2 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def78]
glib-2.87.0/gio/gmarshal-internal.c:1094:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1087:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1090:6: branch_false: following ‘false’ branch (when ‘arg1’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1092:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1093:6: branch_true: following ‘true’ branch (when ‘arg2’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1094:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1094:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1094:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
# 1092|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 1093|     if (arg2 != NULL)
# 1094|->     arg2 = g_object_ref (arg2);
# 1095|     va_end (args_copy);
# 1096|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def79]
glib-2.87.0/gio/gmarshal-internal.c:1269:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1266:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1268:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1269:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1269:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1269:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
# 1267|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1268|     if (arg0 != NULL)
# 1269|->     arg0 = g_object_ref (arg0);
# 1270|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1271|     if (arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def80]
glib-2.87.0/gio/gmarshal-internal.c:1272:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1266:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1268:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1270:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1271:6: branch_true: following ‘true’ branch (when ‘arg1’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1272:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1272:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1272:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
# 1270|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1271|     if (arg1 != NULL)
# 1272|->     arg1 = g_object_ref (arg1);
# 1273|     va_end (args_copy);
# 1274|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def81]
glib-2.87.0/gio/gmarshal-internal.c:1362:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1359:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1361:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1362:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1362:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1362:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
# 1360|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1361|     if (arg0 != NULL)
# 1362|->     arg0 = g_object_ref (arg0);
# 1363|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1364|     if (arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def82]
glib-2.87.0/gio/gmarshal-internal.c:1365:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1359:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1361:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1363:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1364:6: branch_true: following ‘true’ branch (when ‘arg1’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1365:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1365:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1365:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
# 1363|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1364|     if (arg1 != NULL)
# 1365|->     arg1 = g_object_ref (arg1);
# 1366|     arg2 = (gint) va_arg (args_copy, gint);
# 1367|     va_end (args_copy);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def83]
glib-2.87.0/gio/gmarshal-internal.c:1465:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1462:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1464:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1465:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1465:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1465:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
# 1463|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1464|     if (arg0 != NULL)
# 1465|->     arg0 = g_object_ref (arg0);
# 1466|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1467|     if (arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def84]
glib-2.87.0/gio/gmarshal-internal.c:1468:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1462:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1464:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1466:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1467:6: branch_true: following ‘true’ branch (when ‘arg1’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1468:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1468:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
# 1466|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1467|     if (arg1 != NULL)
# 1468|->     arg1 = g_object_ref (arg1);
# 1469|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 1470|     if ((param_types[2] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg2 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def85]
glib-2.87.0/gio/gmarshal-internal.c:1477:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1462:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1464:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1466:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1467:6: branch_false: following ‘false’ branch (when ‘arg1’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1469:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1476:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:1477:12: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1477:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 1475|     arg4 = (gpointer) va_arg (args_copy, gpointer);
# 1476|     if ((param_types[4] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg4 != NULL)
# 1477|->     arg4 = g_variant_ref_sink (arg4);
# 1478|     va_end (args_copy);
# 1479|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def86]
glib-2.87.0/gio/gmarshal-internal.c:1580:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1577:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1579:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1580:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1580:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1580:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
# 1578|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1579|     if (arg0 != NULL)
# 1580|->     arg0 = g_object_ref (arg0);
# 1581|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1582|     if (arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def87]
glib-2.87.0/gio/gmarshal-internal.c:1583:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1577:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1579:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1581:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1582:6: branch_true: following ‘true’ branch (when ‘arg1’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1583:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1583:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1583:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
# 1581|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1582|     if (arg1 != NULL)
# 1583|->     arg1 = g_object_ref (arg1);
# 1584|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 1585|     if ((param_types[2] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg2 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def88]
glib-2.87.0/gio/gmarshal-internal.c:1586:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1577:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1579:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1581:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1582:6: branch_false: following ‘false’ branch (when ‘arg1’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1584:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1585:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:1586:12: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1586:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
# 1584|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 1585|     if ((param_types[2] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg2 != NULL)
# 1586|->     arg2 = g_variant_ref_sink (arg2);
# 1587|     arg3 = (gpointer) va_arg (args_copy, gpointer);
# 1588|     if ((param_types[3] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg3 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def89]
glib-2.87.0/gio/gmarshal-internal.c:1589:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1577:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1579:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1581:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1582:6: branch_false: following ‘false’ branch (when ‘arg1’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1584:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1588:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:1589:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1589:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
# 1587|     arg3 = (gpointer) va_arg (args_copy, gpointer);
# 1588|     if ((param_types[3] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg3 != NULL)
# 1589|->     arg3 = g_boxed_copy (param_types[3] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg3);
# 1590|     va_end (args_copy);
# 1591|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def90]
glib-2.87.0/gio/gmarshal-internal.c:1681:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1678:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1680:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1681:12: branch_true: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1681:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1681:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
# 1679|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1680|     if (arg0 != NULL)
# 1681|->     arg0 = g_object_ref (arg0);
# 1682|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1683|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def91]
glib-2.87.0/gio/gmarshal-internal.c:1684:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1678:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1680:6: branch_false: following ‘false’ branch (when ‘arg0’ is NULL)...
glib-2.87.0/gio/gmarshal-internal.c:1682:3: branch_false: ...to here
glib-2.87.0/gio/gmarshal-internal.c:1683:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:1684:12: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1684:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
# 1682|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1683|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
# 1684|->     arg1 = g_variant_ref_sink (arg1);
# 1685|     va_end (args_copy);
# 1686|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def92]
glib-2.87.0/gio/gmarshal-internal.c:1949:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:1943:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:1948:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:1949:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:1949:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
# 1947|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 1948|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
# 1949|->     arg1 = g_boxed_copy (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
# 1950|     va_end (args_copy);
# 1951|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def93]
glib-2.87.0/gio/gmarshal-internal.c:2042:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:2036:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:2041:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:2042:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:2042:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 2040|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 2041|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
# 2042|->     arg1 = g_boxed_copy (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
# 2043|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 2044|     if ((param_types[2] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg2 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def94]
glib-2.87.0/gio/gmarshal-internal.c:2045:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:2036:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:2044:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:2045:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:2045:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
# 2043|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 2044|     if ((param_types[2] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg2 != NULL)
# 2045|->     arg2 = g_boxed_copy (param_types[2] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg2);
# 2046|     va_end (args_copy);
# 2047|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def95]
glib-2.87.0/gio/gmarshal-internal.c:2340:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:2331:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:2339:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:2340:12: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:2340:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
# 2338|     arg2 = (gpointer) va_arg (args_copy, gpointer);
# 2339|     if ((param_types[2] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg2 != NULL)
# 2340|->     arg2 = g_variant_ref_sink (arg2);
# 2341|     va_end (args_copy);
# 2342|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def96]
glib-2.87.0/gio/gmarshal-internal.c:2432:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:2426:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:2431:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:2432:12: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:2432:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
# 2430|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 2431|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
# 2432|->     arg1 = g_variant_ref_sink (arg1);
# 2433|     va_end (args_copy);
# 2434|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def97]
glib-2.87.0/gio/gmarshal-internal.c:2606:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:2603:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:2605:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:2606:12: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:2606:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
# 2604|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 2605|     if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
# 2606|->     arg0 = g_variant_ref_sink (arg0);
# 2607|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 2608|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def98]
glib-2.87.0/gio/gmarshal-internal.c:2609:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmarshal-internal.c:2603:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gio/gmarshal-internal.c:2608:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gmarshal-internal.c:2609:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gio/gmarshal-internal.c:2609:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
# 2607|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 2608|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
# 2609|->     arg1 = g_boxed_copy (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
# 2610|     va_end (args_copy);
# 2611|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
glib-2.87.0/gio/gmemorymonitorpsi.c:364:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*monitor.cg_path, 526338)’
glib-2.87.0/gio/gmemorymonitorpsi.c:343:8: acquire_resource: opened here
glib-2.87.0/gio/gmemorymonitorpsi.c:344:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gmemorymonitorpsi.c:364:31: branch_false: ...to here
glib-2.87.0/gio/gmemorymonitorpsi.c:363:13: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/gio/gmemorymonitorpsi.c:364:31: danger: ‘open(*monitor.cg_path, 526338)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  362|      */
#  363|     trigger = g_strdup_printf ("%s %d %d",
#  364|->                              (triggers[level_type].trigger_type == MEMORY_PRESSURE_MONITOR_TRIGGER_SOME) ? "some" : "full",
#  365|                                threshold_us,
#  366|                                window_us);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def100]
glib-2.87.0/gio/gmenu.c:1060:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmenu.c:1055:6: branch_true: following ‘true’ branch (when ‘format_string’ is non-NULL)...
glib-2.87.0/gio/gmenu.c:1059:7: branch_true: ...to here
glib-2.87.0/gio/gmenu.c:1059:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gmenu.c:1060:15: throw: if ‘g_variant_new_va’ throws an exception...
glib-2.87.0/gio/gmenu.c:1060:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1058|   
# 1059|         va_start (ap, format_string);
# 1060|->       value = g_variant_new_va (format_string, NULL, &ap);
# 1061|         va_end (ap);
# 1062|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def101]
glib-2.87.0/gio/gmenumodel.c:607:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gmenumodel.c:597:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gmenumodel.c:600:8: branch_false: ...to here
glib-2.87.0/gio/gmenumodel.c:600:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gmenumodel.c:606:3: branch_false: ...to here
glib-2.87.0/gio/gmenumodel.c:606:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gmenumodel.c:607:3: throw: if ‘g_variant_get_va’ throws an exception...
glib-2.87.0/gio/gmenumodel.c:607:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  605|   
#  606|     va_start (ap, format_string);
#  607|->   g_variant_get_va (value, format_string, NULL, &ap);
#  608|     g_variant_unref (value);
#  609|     va_end (ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def102]
glib-2.87.0/gio/gnotification.c:480:16: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gnotification.c:477:6: branch_true: following ‘true’ branch (when ‘target_format’ is non-NULL)...
glib-2.87.0/gio/gnotification.c:479:7: branch_true: ...to here
glib-2.87.0/gio/gnotification.c:479:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gnotification.c:480:16: throw: if ‘g_variant_new_va’ throws an exception...
glib-2.87.0/gio/gnotification.c:480:16: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  478|       {
#  479|         va_start (args, target_format);
#  480|->       target = g_variant_new_va (target_format, NULL, &args);
#  481|         va_end (args);
#  482|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def103]
glib-2.87.0/gio/gnotification.c:717:16: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gnotification.c:714:6: branch_true: following ‘true’ branch (when ‘target_format’ is non-NULL)...
glib-2.87.0/gio/gnotification.c:716:7: branch_true: ...to here
glib-2.87.0/gio/gnotification.c:716:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gnotification.c:717:16: throw: if ‘g_variant_new_va’ throws an exception...
glib-2.87.0/gio/gnotification.c:717:16: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  715|       {
#  716|         va_start (args, target_format);
#  717|->       target = g_variant_new_va (target_format, NULL, &args);
#  718|         va_end (args);
#  719|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
glib-2.87.0/gio/gopenuriportal.c:96:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/gopenuriportal.c:61:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gopenuriportal.c:67:3: branch_false: ...to here
glib-2.87.0/gio/gopenuriportal.c:74:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gopenuriportal.c:80:14: branch_true: ...to here
glib-2.87.0/gio/gopenuriportal.c:82:12: acquire_resource: opened here
glib-2.87.0/gio/gopenuriportal.c:84:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gopenuriportal.c:96:17: branch_false: ...to here
glib-2.87.0/gio/gopenuriportal.c:96:17: throw: if ‘g_unix_fd_list_new_from_array’ throws an exception...
glib-2.87.0/gio/gopenuriportal.c:96:17: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   94|         fcntl (fd, F_SETFD, FD_CLOEXEC);
#   95|   #endif
#   96|->       fd_list = g_unix_fd_list_new_from_array (&fd, 1);
#   97|         fd = -1;
#   98|         fd_id = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
glib-2.87.0/gio/gopenuriportal.c:369:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/gopenuriportal.c:280:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gopenuriportal.c:287:16: branch_false: ...to here
glib-2.87.0/gio/gopenuriportal.c:289:6: branch_false: following ‘false’ branch (when ‘callback’ is NULL)...
glib-2.87.0/gio/gopenuriportal.c:341:7: branch_false: ...to here
glib-2.87.0/gio/gopenuriportal.c:341:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gopenuriportal.c:347:10: branch_true: ...to here
glib-2.87.0/gio/gopenuriportal.c:347:10: branch_false: following ‘false’ branch (when ‘call_data’ is NULL)...
glib-2.87.0/gio/gopenuriportal.c:350:14: branch_false: ...to here
glib-2.87.0/gio/gopenuriportal.c:351:12: acquire_resource: opened here
glib-2.87.0/gio/gopenuriportal.c:353:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gopenuriportal.c:369:17: branch_false: ...to here
glib-2.87.0/gio/gopenuriportal.c:369:17: throw: if ‘g_unix_fd_list_new_from_array’ throws an exception...
glib-2.87.0/gio/gopenuriportal.c:369:17: danger: ‘fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  367|         fcntl (fd, F_SETFD, FD_CLOEXEC);
#  368|   #endif
#  369|->       fd_list = g_unix_fd_list_new_from_array (&fd, 1);
#  370|         fd = -1;
#  371|         fd_id = 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def106]
glib-2.87.0/gio/goutputstream.c:64:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/goutputstream.c:547:1: enter_function: entry to ‘g_output_stream_printf’
glib-2.87.0/gio/goutputstream.c:557:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/goutputstream.c:558:13: call_function: calling ‘g_output_stream_vprintf’ from ‘g_output_stream_printf’
#   62|   };
#   63|   
#   64|-> G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GOutputStream, g_output_stream, G_TYPE_OBJECT)
#   65|   
#   66|   static gssize   g_output_stream_real_splice        (GOutputStream             *stream,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def107]
glib-2.87.0/gio/goutputstream.c:603:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/goutputstream.c:547:1: enter_function: entry to ‘g_output_stream_printf’
glib-2.87.0/gio/goutputstream.c:557:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/goutputstream.c:558:13: call_function: calling ‘g_output_stream_vprintf’ from ‘g_output_stream_printf’
#  601|     gboolean  success;
#  602|   
#  603|->   g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream), FALSE);
#  604|     g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
#  605|     g_return_val_if_fail (error == NULL || *error == NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def108]
glib-2.87.0/gio/goutputstream.c:604:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/goutputstream.c:547:1: enter_function: entry to ‘g_output_stream_printf’
glib-2.87.0/gio/goutputstream.c:557:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/goutputstream.c:558:13: call_function: calling ‘g_output_stream_vprintf’ from ‘g_output_stream_printf’
#  602|   
#  603|     g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream), FALSE);
#  604|->   g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
#  605|     g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
#  606|     g_return_val_if_fail (format != NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def109]
glib-2.87.0/gio/goutputstream.c:605:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/goutputstream.c:547:1: enter_function: entry to ‘g_output_stream_printf’
glib-2.87.0/gio/goutputstream.c:557:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/goutputstream.c:558:13: call_function: calling ‘g_output_stream_vprintf’ from ‘g_output_stream_printf’
#  603|     g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream), FALSE);
#  604|     g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
#  605|->   g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
#  606|     g_return_val_if_fail (format != NULL, FALSE);
#  607|   

Error: COMPILER_WARNING (CWE-704): [#def110]
glib-2.87.0/gio/gresource.c: scope_hint: In function ‘g_resource_find_overlay’
glib-2.87.0/gio/gresource.c:462:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  462 |         eq = strchr (src, '=');
#      |            ^
#  460|           /* split the overlay into src/dst */
#  461|           src = overlay_dirs[i];
#  462|->         eq = strchr (src, '=');
#  463|           g_assert (eq); /* we checked this already */
#  464|           src_len = eq - src;

Error: COMPILER_WARNING (CWE-704): [#def111]
glib-2.87.0/gio/gresource.c:462:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  460|           /* split the overlay into src/dst */
#  461|           src = overlay_dirs[i];
#  462|->         eq = strchr (src, '=');
#  463|           g_assert (eq); /* we checked this already */
#  464|           src_len = eq - src;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
glib-2.87.0/gio/gresourcefile.c:188:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
glib-2.87.0/gio/gresourcefile.c:178:1: enter_function: entry to ‘canonicalize_filename’
glib-2.87.0/gio/gresourcefile.c:186:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:188:7: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:188:7: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:188:7: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:191:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gresourcefile.c:195:10: branch_false: ...to here
glib-2.87.0/gio/gresourcefile.c:195:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:198:15: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:198:14: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:200:15: call_function: calling ‘pop_to_previous_part’ from ‘canonicalize_filename’
glib-2.87.0/gio/gresourcefile.c:200:15: return_function: returning to ‘canonicalize_filename’ from ‘pop_to_previous_part’
glib-2.87.0/gio/gresourcefile.c:186:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:188:7: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:188:7: release_memory: ‘out’ is NULL
glib-2.87.0/gio/gresourcefile.c:188:7: danger: dereference of NULL ‘out’
#  186|     while (*in != 0)
#  187|       {
#  188|->       g_assert (*out == '/');
#  189|   
#  190|         /* move past slashes */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
glib-2.87.0/gio/gresourcefile.c:223:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
glib-2.87.0/gio/gresourcefile.c:178:1: enter_function: entry to ‘canonicalize_filename’
glib-2.87.0/gio/gresourcefile.c:186:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:188:7: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:188:7: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:188:7: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:191:14: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gresourcefile.c:195:10: branch_false: ...to here
glib-2.87.0/gio/gresourcefile.c:195:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:198:15: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:198:14: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:200:15: call_function: calling ‘pop_to_previous_part’ from ‘canonicalize_filename’
glib-2.87.0/gio/gresourcefile.c:200:15: return_function: returning to ‘canonicalize_filename’ from ‘pop_to_previous_part’
glib-2.87.0/gio/gresourcefile.c:186:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gresourcefile.c:223:7: branch_false: ...to here
glib-2.87.0/gio/gresourcefile.c:223:7: release_memory: ‘out’ is NULL
glib-2.87.0/gio/gresourcefile.c:223:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gresourcefile.c:223:21: branch_true: ...to here
glib-2.87.0/gio/gresourcefile.c:223:21: danger: dereference of NULL ‘out’
#  221|   
#  222|     /* Trim trailing / from path */
#  223|->   if (out > bptr && *out == '/')
#  224|       *out = 0;
#  225|     else

Error: CPPCHECK_WARNING (CWE-758): [#def114]
glib-2.87.0/gio/gsettings.c:496: warning[objectIndex]: The address of variable 'key' might be accessed at non-zero index.
#  494|     for (i = 0; i < n_keys; i++)
#  495|       {
#  496|->       const gchar *key_name = g_quark_to_string (keys[i]);
#  497|   
#  498|         if (g_str_has_suffix (key_name, "/"))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def115]
glib-2.87.0/gio/gsettings.c:1765:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsettings.c:1764:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsettings.c:1765:11: throw: if ‘g_variant_new_va’ throws an exception...
glib-2.87.0/gio/gsettings.c:1765:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1763|   
# 1764|     va_start (ap, format);
# 1765|->   value = g_variant_new_va (format, NULL, &ap);
# 1766|     va_end (ap);
# 1767|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def116]
glib-2.87.0/gio/gsimpleasyncresult.c:240:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsimpleasyncresult.c:748:1: enter_function: entry to ‘g_simple_async_result_set_error’
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: following ‘false’ branch (when ‘simple’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:757:3: branch_true: following ‘true’ branch (when ‘domain != 0’)...
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsimpleasyncresult.c:761:3: call_function: calling ‘g_simple_async_result_set_error_va’ from ‘g_simple_async_result_set_error’
#  238|   
#  239|   
#  240|-> G_DEFINE_TYPE_WITH_CODE (GSimpleAsyncResult, g_simple_async_result, G_TYPE_OBJECT,
#  241|   			 G_IMPLEMENT_INTERFACE (G_TYPE_ASYNC_RESULT,
#  242|   						g_simple_async_result_async_result_iface_init))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def117]
glib-2.87.0/gio/gsimpleasyncresult.c:725:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsimpleasyncresult.c:748:1: enter_function: entry to ‘g_simple_async_result_set_error’
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: following ‘false’ branch (when ‘simple’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:757:3: branch_true: following ‘true’ branch (when ‘domain != 0’)...
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsimpleasyncresult.c:761:3: call_function: calling ‘g_simple_async_result_set_error_va’ from ‘g_simple_async_result_set_error’
#  723|                                       va_list             args)
#  724|   {
#  725|->   g_return_if_fail (G_IS_SIMPLE_ASYNC_RESULT (simple));
#  726|     g_return_if_fail (domain != 0);
#  727|     g_return_if_fail (format != NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def118]
glib-2.87.0/gio/gsimpleasyncresult.c:730:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsimpleasyncresult.c:748:1: enter_function: entry to ‘g_simple_async_result_set_error’
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: following ‘false’ branch (when ‘simple’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:757:3: branch_true: following ‘true’ branch (when ‘domain != 0’)...
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsimpleasyncresult.c:761:3: call_function: calling ‘g_simple_async_result_set_error_va’ from ‘g_simple_async_result_set_error’
#  728|   
#  729|     if (simple->error)
#  730|->     g_error_free (simple->error);
#  731|     simple->error = g_error_new_valist (domain, code, format, args);
#  732|     simple->failed = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def119]
glib-2.87.0/gio/gsimpleasyncresult.c:731:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsimpleasyncresult.c:748:1: enter_function: entry to ‘g_simple_async_result_set_error’
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: following ‘false’ branch (when ‘simple’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:756:3: branch_false: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:757:3: branch_true: following ‘true’ branch (when ‘domain != 0’)...
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:758:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: branch_true: ...to here
glib-2.87.0/gio/gsimpleasyncresult.c:760:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsimpleasyncresult.c:761:3: call_function: calling ‘g_simple_async_result_set_error_va’ from ‘g_simple_async_result_set_error’
#  729|     if (simple->error)
#  730|       g_error_free (simple->error);
#  731|->   simple->error = g_error_new_valist (domain, code, format, args);
#  732|     simple->failed = TRUE;
#  733|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
glib-2.87.0/gio/gsocket.c:674:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/gsocket.c:649:6: branch_false: following ‘false’ branch (when ‘fd == -1’)...
glib-2.87.0/gio/gsocket.c:653:18: branch_false: ...to here
glib-2.87.0/gio/gsocket.c:653:7: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gsocket.c:655:10: branch_true: ...to here
glib-2.87.0/gio/gsocket.c:655:10: acquire_resource: socket created here
glib-2.87.0/gio/gsocket.c:657:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
glib-2.87.0/gio/gsocket.c:674:13: branch_false: ...to here
glib-2.87.0/gio/gsocket.c:674:13: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/gsocket.c:674:13: danger: ‘fd’ leaks here
#  672|          need to so some weird inheritance to exec you can re-enable this
#  673|          using lower level hacks with g_socket_get_fd(). */
#  674|->     flags = fcntl (fd, F_GETFD, 0);
#  675|       if (flags != -1 &&
#  676|   	(flags & FD_CLOEXEC) == 0)

Error: CPPCHECK_WARNING (CWE-457): [#def121]
glib-2.87.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-404): [#def122]
glib-2.87.0/gio/gsubprocess.c:588:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsubprocess.c:582:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gsubprocess.c:587:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsubprocess.c:588:3: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/gsubprocess.c:588:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  586|   
#  587|     va_start (ap, argv0);
#  588|->   g_ptr_array_add (args, (gchar *) argv0);
#  589|     while ((arg = va_arg (ap, const gchar *)))
#  590|       g_ptr_array_add (args, (gchar *) arg);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def123]
glib-2.87.0/gio/gsubprocess.c:590:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsubprocess.c:582:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gsubprocess.c:587:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsubprocess.c:589:10: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
glib-2.87.0/gio/gsubprocess.c:590:5: branch_true: ...to here
glib-2.87.0/gio/gsubprocess.c:590:5: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/gsubprocess.c:590:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  588|     g_ptr_array_add (args, (gchar *) argv0);
#  589|     while ((arg = va_arg (ap, const gchar *)))
#  590|->     g_ptr_array_add (args, (gchar *) arg);
#  591|     g_ptr_array_add (args, NULL);
#  592|     va_end (ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def124]
glib-2.87.0/gio/gsubprocess.c:591:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsubprocess.c:582:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gsubprocess.c:587:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsubprocess.c:591:3: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/gsubprocess.c:591:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  589|     while ((arg = va_arg (ap, const gchar *)))
#  590|       g_ptr_array_add (args, (gchar *) arg);
#  591|->   g_ptr_array_add (args, NULL);
#  592|     va_end (ap);
#  593|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def125]
glib-2.87.0/gio/gsubprocesslauncher.c:749:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsubprocesslauncher.c:743:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gsubprocesslauncher.c:748:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsubprocesslauncher.c:749:3: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/gsubprocesslauncher.c:749:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  747|   
#  748|     va_start (ap, argv0);
#  749|->   g_ptr_array_add (args, (gchar *) argv0);
#  750|     while ((arg = va_arg (ap, const gchar *)))
#  751|       g_ptr_array_add (args, (gchar *) arg);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def126]
glib-2.87.0/gio/gsubprocesslauncher.c:751:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsubprocesslauncher.c:743:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gsubprocesslauncher.c:748:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsubprocesslauncher.c:750:10: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
glib-2.87.0/gio/gsubprocesslauncher.c:751:5: branch_true: ...to here
glib-2.87.0/gio/gsubprocesslauncher.c:751:5: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/gsubprocesslauncher.c:751:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  749|     g_ptr_array_add (args, (gchar *) argv0);
#  750|     while ((arg = va_arg (ap, const gchar *)))
#  751|->     g_ptr_array_add (args, (gchar *) arg);
#  752|   
#  753|     g_ptr_array_add (args, NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def127]
glib-2.87.0/gio/gsubprocesslauncher.c:753:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gsubprocesslauncher.c:743:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gsubprocesslauncher.c:748:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gsubprocesslauncher.c:753:3: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/gsubprocesslauncher.c:753:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  751|       g_ptr_array_add (args, (gchar *) arg);
#  752|   
#  753|->   g_ptr_array_add (args, NULL);
#  754|     va_end (ap);
#  755|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def128]
glib-2.87.0/gio/gtask.c:919:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gtask.c:918:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gtask.c:919:11: throw: if ‘g_error_new_valist’ throws an exception...
glib-2.87.0/gio/gtask.c:919:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  917|   
#  918|     va_start (ap, format);
#  919|->   error = g_error_new_valist (domain, code, format, ap);
#  920|     va_end (ap);
#  921|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def129]
glib-2.87.0/gio/gtask.c:2130:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/gtask.c:2129:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/gtask.c:2130:11: throw: if ‘g_error_new_valist’ throws an exception...
glib-2.87.0/gio/gtask.c:2130:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 2128|   
# 2129|     va_start (args, format);
# 2130|->   error = g_error_new_valist (domain, code, format, args);
# 2131|     va_end (args);
# 2132|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def130]
glib-2.87.0/gio/gtestdbus.c:262:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  260|          * https://gitlab.gnome.org/GNOME/glib/-/issues/2322#note_1034330
#  261|          */
#  262|->       fflush (stdout);
#  263|         fflush (stderr);
#  264|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
glib-2.87.0/gio/gtestdbus.c:262:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  260|          * https://gitlab.gnome.org/GNOME/glib/-/issues/2322#note_1034330
#  261|          */
#  262|->       fflush (stdout);
#  263|         fflush (stderr);
#  264|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def132]
glib-2.87.0/gio/gtestdbus.c:263:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  261|          */
#  262|         fflush (stdout);
#  263|->       fflush (stderr);
#  264|   
#  265|         switch (fork ())

Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
glib-2.87.0/gio/gtestdbus.c:263:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  261|          */
#  262|         fflush (stdout);
#  263|->       fflush (stderr);
#  264|   
#  265|         switch (fork ())

Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
glib-2.87.0/gio/gtestdbus.c:269:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  267|           case -1:
#  268|             errsv = errno;
#  269|->           g_warning ("fork() failed: %s", g_strerror (errsv));
#  270|             g_assert_not_reached ();
#  271|             break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
glib-2.87.0/gio/gtestdbus.c:269:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  267|           case -1:
#  268|             errsv = errno;
#  269|->           g_warning ("fork() failed: %s", g_strerror (errsv));
#  270|             g_assert_not_reached ();
#  271|             break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
glib-2.87.0/gio/gtestdbus.c:270:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  268|             errsv = errno;
#  269|             g_warning ("fork() failed: %s", g_strerror (errsv));
#  270|->           g_assert_not_reached ();
#  271|             break;
#  272|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
glib-2.87.0/gio/gtestdbus.c:270:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  268|             errsv = errno;
#  269|             g_warning ("fork() failed: %s", g_strerror (errsv));
#  270|->           g_assert_not_reached ();
#  271|             break;
#  272|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
glib-2.87.0/gio/gtestdbus.c:275:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  273|           case 0:
#  274|             /* child */
#  275|->           close (pipe_fds[1]);
#  276|             watch_parent (pipe_fds[0]);
#  277|             break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
glib-2.87.0/gio/gtestdbus.c:275:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  273|           case 0:
#  274|             /* child */
#  275|->           close (pipe_fds[1]);
#  276|             watch_parent (pipe_fds[0]);
#  277|             break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
glib-2.87.0/gio/gtestdbus.c:281:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  279|           default:
#  280|             /* parent */
#  281|->           close (pipe_fds[0]);
#  282|             channel = g_io_channel_unix_new (pipe_fds[1]);
#  283|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
glib-2.87.0/gio/gtestdbus.c:281:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  279|           default:
#  280|             /* parent */
#  281|->           close (pipe_fds[0]);
#  282|             channel = g_io_channel_unix_new (pipe_fds[1]);
#  283|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def142]
glib-2.87.0/gio/gtestdbus.c:282:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#  280|             /* parent */
#  281|             close (pipe_fds[0]);
#  282|->           channel = g_io_channel_unix_new (pipe_fds[1]);
#  283|           }
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
glib-2.87.0/gio/gtlscertificate.c:1119:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cert’
glib-2.87.0/gio/gtlscertificate.c:557:1: enter_function: entry to ‘create_certificate_chain_from_list’
glib-2.87.0/gio/gtlscertificate.c:565:10: branch_false: following ‘false’ branch (when ‘pem’ is NULL)...
glib-2.87.0/gio/gtlscertificate.c:595:11: branch_false: ...to here
glib-2.87.0/gio/gtlscertificate.c:595:11: call_function: calling ‘g_tls_certificate_verify’ from ‘create_certificate_chain_from_list’
# 1117|   			  GTlsCertificate     *trusted_ca)
# 1118|   {
# 1119|->   return G_TLS_CERTIFICATE_GET_CLASS (cert)->verify (cert, identity, trusted_ca);
# 1120|   }
# 1121|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def144]
glib-2.87.0/gio/gtrashportal.c:114:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/gtrashportal.c:83:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gtrashportal.c:90:10: branch_false: ...to here
glib-2.87.0/gio/gtrashportal.c:92:8: acquire_resource: opened here
glib-2.87.0/gio/gtrashportal.c:93:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gtrashportal.c:101:11: branch_false: ...to here
glib-2.87.0/gio/gtrashportal.c:103:6: branch_false: following ‘false’ branch (when ‘fd != -1’)...
glib-2.87.0/gio/gtrashportal.c:114:13: branch_false: ...to here
glib-2.87.0/gio/gtrashportal.c:114:13: throw: if ‘g_unix_fd_list_new’ throws an exception...
glib-2.87.0/gio/gtrashportal.c:114:13: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  112|   #endif
#  113|   
#  114|->   fd_list = g_unix_fd_list_new ();
#  115|     fd_in = g_unix_fd_list_append (fd_list, fd, error);
#  116|     g_close (fd, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def145]
glib-2.87.0/gio/gtrashportal.c:115:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/gtrashportal.c:83:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gtrashportal.c:90:10: branch_false: ...to here
glib-2.87.0/gio/gtrashportal.c:92:8: acquire_resource: opened here
glib-2.87.0/gio/gtrashportal.c:93:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/gtrashportal.c:101:11: branch_false: ...to here
glib-2.87.0/gio/gtrashportal.c:103:6: branch_false: following ‘false’ branch (when ‘fd != -1’)...
glib-2.87.0/gio/gtrashportal.c:114:13: branch_false: ...to here
glib-2.87.0/gio/gtrashportal.c:115:11: throw: if ‘g_unix_fd_list_append’ throws an exception...
glib-2.87.0/gio/gtrashportal.c:115:11: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  113|   
#  114|     fd_list = g_unix_fd_list_new ();
#  115|->   fd_in = g_unix_fd_list_append (fd_list, fd, error);
#  116|     g_close (fd, NULL);
#  117|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def146]
glib-2.87.0/gio/gunixfdlist.c:128:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘new_fd’
glib-2.87.0/gio/gunixfdlist.c:109:14: acquire_resource: opened here
glib-2.87.0/gio/gunixfdlist.c:112:6: branch_false: following ‘false’ branch (when ‘new_fd >= 0’)...
glib-2.87.0/gio/gunixfdlist.c:112:6: branch_false: ...to here
glib-2.87.0/gio/gunixfdlist.c:128:11: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/gunixfdlist.c:128:11: danger: ‘new_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  126|     do
#  127|       {
#  128|->       s = fcntl (new_fd, F_GETFD);
#  129|   
#  130|         if (s >= 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
glib-2.87.0/gio/gunixmounts.c:226:11: warning[-Wanalyzer-null-argument]: use of NULL ‘value’ where non-null expected
glib-2.87.0/gio/gunixmounts.c:2048:1: enter_function: entry to ‘g_unix_mount_entry_for’
glib-2.87.0/gio/gunixmounts.c:2061:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/gunixmounts.c:2063:19: branch_true: ...to here
glib-2.87.0/gio/gunixmounts.c:2063:19: call_function: calling ‘g_unix_mount_entry_at’ from ‘g_unix_mount_entry_for’
#  224|     for (i = 0; set[i] != NULL; i++)
#  225|       {
#  226|->       if (strcmp (set[i], value) == 0)
#  227|   	return TRUE;
#  228|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
glib-2.87.0/gio/inotify/inotify-sub.c:39:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/gio/inotify/inotify-sub.c:36:1: enter_function: entry to ‘dup_dirname’
glib-2.87.0/gio/inotify/inotify-sub.c:39:16: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#   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): [#def149]
glib-2.87.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-404): [#def150]
glib-2.87.0/gio/tests/actions.c:178:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/actions.c:172:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/actions.c:176:10: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/gio/tests/actions.c:178:12: branch_false: ...to here
glib-2.87.0/gio/tests/actions.c:178:12: throw: if ‘g_strv_contains’ throws an exception...
glib-2.87.0/gio/tests/actions.c:178:12: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  176|         if (str == NULL)
#  177|           break;
#  178|->       if (!g_strv_contains (strv, str))
#  179|           {
#  180|             res = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-835): [#def151]
glib-2.87.0/gio/tests/cancellable.c:398:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/gio/tests/cancellable.c:398:11: danger: infinite loop here
glib-2.87.0/gio/tests/cancellable.c:398:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/gio/tests/cancellable.c:398:10: branch_true: ...to here
#  396|     CancellablePollThreadData *thread_data = user_data;
#  397|   
#  398|->   while (!g_atomic_int_get (&thread_data->polling_started))
#  399|       ;
#  400|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def152]
glib-2.87.0/gio/tests/cancellable.c:554:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/gio/tests/cancellable.c:554:11: danger: infinite loop here
glib-2.87.0/gio/tests/cancellable.c:554:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/gio/tests/cancellable.c:554:10: branch_true: ...to here
#  552|                            connecting_thread, &thread_data);
#  553|   
#  554|->   while (!g_atomic_pointer_get (&thread_data.loop))
#  555|       ;
#  556|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def153]
glib-2.87.0/gio/tests/cancellable.c:649:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/gio/tests/cancellable.c:649:11: danger: infinite loop here
glib-2.87.0/gio/tests/cancellable.c:649:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/gio/tests/cancellable.c:649:10: branch_true: ...to here
#  647|                            connecting_thread, &thread_data);
#  648|   
#  649|->   while (!g_atomic_pointer_get (&thread_data.loop))
#  650|       ;
#  651|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def154]
glib-2.87.0/gio/tests/fake-desktop-portal.c:476:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/fake-desktop-portal.c:470:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/fake-desktop-portal.c:475:12: acquire_resource: opened here
glib-2.87.0/gio/tests/fake-desktop-portal.c:476:17: throw: if ‘g_unix_fd_query_path’ throws an exception...
glib-2.87.0/gio/tests/fake-desktop-portal.c:476:17: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  474|   
#  475|         fd = g_open ("/dev/null", O_RDONLY);
#  476|->       fd_path = g_unix_fd_query_path (fd, NULL);
#  477|         g_free (fd_path);
#  478|         g_clear_fd (&fd, NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def155]
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:45:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:44:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:45:3: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:45:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   43|   
#   44|     va_start (ap, argv0);
#   45|->   g_ptr_array_add (args, (gchar *) argv0);
#   46|     while ((arg = va_arg (ap, const gchar *)))
#   47|       g_ptr_array_add (args, (gchar *) arg);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def156]
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:47:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:44:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:46:10: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:47:5: branch_true: ...to here
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:47:5: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:47:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   45|     g_ptr_array_add (args, (gchar *) argv0);
#   46|     while ((arg = va_arg (ap, const gchar *)))
#   47|->     g_ptr_array_add (args, (gchar *) arg);
#   48|     g_ptr_array_add (args, NULL);
#   49|     va_end (ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def157]
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:48:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:44:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:48:3: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/tests/g-file-info-filesystem-readonly.c:48:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   46|     while ((arg = va_arg (ap, const gchar *)))
#   47|       g_ptr_array_add (args, (gchar *) arg);
#   48|->   g_ptr_array_add (args, NULL);
#   49|     va_end (ap);
#   50|   

Error: CPPCHECK_WARNING (CWE-457): [#def158]
glib-2.87.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: COMPILER_WARNING (CWE-704): [#def159]
glib-2.87.0/gio/tests/gdbus-export.c: scope_hint: In function ‘dyna_cyber’
glib-2.87.0/gio/tests/gdbus-export.c:319:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  319 |   node_name = strrchr (object_path, '/') + 1;
#      |             ^
#  317|     guint n;
#  318|   
#  319|->   node_name = strrchr (object_path, '/') + 1;
#  320|   
#  321|     /* Add new node if it is not already known */

Error: COMPILER_WARNING (CWE-704): [#def160]
glib-2.87.0/gio/tests/gdbus-export.c:319:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  317|     guint n;
#  318|   
#  319|->   node_name = strrchr (object_path, '/') + 1;
#  320|   
#  321|     /* Add new node if it is not already known */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def161]
glib-2.87.0/gio/tests/gdbus-export.c:1749:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/gdbus-export.c:1747:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/gdbus-export.c:1749:3: throw: if ‘g_variant_new_va’ throws an exception...
glib-2.87.0/gio/tests/gdbus-export.c:1749:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1747|     va_start (ap, format_string);
# 1748|   
# 1749|->   g_dbus_connection_call (connection, g_dbus_connection_get_unique_name (connection), "/foo",
# 1750|                             DBUS_INTERFACE_PROPERTIES, method, g_variant_new_va (format_string, NULL, &ap),
# 1751|                             NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, ensure_result_cb, (gpointer) expected_reply);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
glib-2.87.0/gio/tests/gdbus-peer.c:317:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/gdbus-peer.c:311:8: acquire_resource: stream socket created here
glib-2.87.0/gio/tests/gdbus-peer.c:317:3: throw: if ‘g_close’ throws an exception...
glib-2.87.0/gio/tests/gdbus-peer.c:317:3: danger: ‘fd’ leaks here
#  315|     return fd != (int) INVALID_SOCKET;
#  316|   #else
#  317|->   g_close (fd, NULL);
#  318|     return fd >= 0;
#  319|   #endif

Error: COMPILER_WARNING (CWE-704): [#def163]
glib-2.87.0/gio/tests/gdbus-peer.c: scope_hint: In function ‘test_nonce_tcp’
glib-2.87.0/gio/tests/gdbus-peer.c:1764:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1764 |   s = strstr (address, "noncefile=");
#      |     ^
# 1762|     address = g_dbus_server_get_client_address (server);
# 1763|   
# 1764|->   s = strstr (address, "noncefile=");
# 1765|     g_assert (s != NULL);
# 1766|     s += sizeof "noncefile=" - 1;

Error: COMPILER_WARNING (CWE-704): [#def164]
glib-2.87.0/gio/tests/gdbus-peer.c:1764:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1762|     address = g_dbus_server_get_client_address (server);
# 1763|   
# 1764|->   s = strstr (address, "noncefile=");
# 1765|     g_assert (s != NULL);
# 1766|     s += sizeof "noncefile=" - 1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def165]
glib-2.87.0/gio/tests/gdbus-peer.c:1826:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘creat(g_uri_unescape_string(s, 0), 384)’
glib-2.87.0/gio/tests/gdbus-peer.c:1739:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1742:3: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1750:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1750:3: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1755:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1756:3: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1765:3: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
glib-2.87.0/gio/tests/gdbus-peer.c:1766:3: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1781:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1782:7: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1789:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1795:3: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1801:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1802:7: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1809:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1812:3: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1821:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1824:8: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1824:8: acquire_resource: opened here
glib-2.87.0/gio/tests/gdbus-peer.c:1825:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gdbus-peer.c:1826:3: branch_true: ...to here
glib-2.87.0/gio/tests/gdbus-peer.c:1826:3: danger: ‘creat(g_uri_unescape_string(s, 0), 384)’ leaks here; was opened at [(20)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/19)
# 1824|     fd = g_creat (nonce_file, 0600);
# 1825|     g_assert_cmpint (fd, !=, -1);
# 1826|->   g_close (fd, NULL);
# 1827|   
# 1828|     g_dbus_server_stop (server);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def166]
glib-2.87.0/gio/tests/gdbus-proxy.c:151:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/gdbus-proxy.c:145:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/gdbus-proxy.c:149:10: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/gio/tests/gdbus-proxy.c:151:31: branch_false: ...to here
glib-2.87.0/gio/tests/gdbus-proxy.c:151:11: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/gio/tests/gdbus-proxy.c:151:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  149|         if (str == NULL)
#  150|           break;
#  151|->       if (g_strcmp0 (str, strv[count]) != 0)
#  152|           {
#  153|             res = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def167]
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1169:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1168:8: acquire_resource: opened here
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1169:3: throw: if ‘g_unix_fd_list_append’ throws an exception...
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1169:3: danger: ‘fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1167|   
# 1168|     fd = dup (0);
# 1169|->   g_assert_cmpint (g_unix_fd_list_append (fd_list, fd, &error), ==, 0);
# 1170|     g_assert_no_error (error);
# 1171|     g_close (fd, &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def168]
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1175:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1174:8: acquire_resource: opened here
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1175:3: throw: if ‘g_unix_fd_list_append’ throws an exception...
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1175:3: danger: ‘fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1173|   
# 1174|     fd = dup (0);
# 1175|->   g_assert_cmpint (g_unix_fd_list_append (fd_list, fd, &error), ==, 1);
# 1176|     g_assert_no_error (error);
# 1177|     g_close (fd, &error);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def169]
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1658:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1652:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1656:10: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1658:7: branch_false: ...to here
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1658:7: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1658:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1656|         if (str == NULL)
# 1657|           break;
# 1658|->       g_ptr_array_add (interfaces, (gpointer) str);
# 1659|       }
# 1660|     while (TRUE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def170]
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1709:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1703:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1707:10: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1709:7: branch_false: ...to here
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1709:7: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/tests/gdbus-test-codegen.c:1709:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1707|         if (str == NULL)
# 1708|           break;
# 1709|->       g_ptr_array_add (interfaces, (gpointer) str);
# 1710|       }
# 1711|     while (TRUE);

Error: CPPCHECK_WARNING (CWE-457): [#def171]
glib-2.87.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): [#def172]
glib-2.87.0/gio/tests/gsettings.c:2335:3: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
glib-2.87.0/gio/tests/gsettings.c:2309:1: enter_function: entry to ‘test_strinfo’
glib-2.87.0/gio/tests/gsettings.c:2328:5: call_function: calling ‘strinfo_builder_append_item’ from ‘test_strinfo’
glib-2.87.0/gio/tests/gsettings.c:2328:5: return_function: returning to ‘test_strinfo’ from ‘strinfo_builder_append_item’
glib-2.87.0/gio/tests/gsettings.c:2329:5: call_function: calling ‘strinfo_builder_append_item’ from ‘test_strinfo’
glib-2.87.0/gio/tests/gsettings.c:2329:5: return_function: returning to ‘test_strinfo’ from ‘strinfo_builder_append_item’
glib-2.87.0/gio/tests/gsettings.c:2335:3: danger: assigned to ‘const guint32 *’ {{aka ‘const unsigned int *’}} here; ‘sizeof (guint32 {{aka const unsigned int}})’ is ‘4’
# 2333|     }
# 2334|   
# 2335|->   g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "foo"),
# 2336|                      ==, NULL);
# 2337|     g_assert_cmpstr (strinfo_string_from_alias (strinfo, length, "bar"),

Error: GCC_ANALYZER_WARNING (CWE-404): [#def173]
glib-2.87.0/gio/tests/gsettings.c:2662:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/gsettings.c:2656:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/gsettings.c:2660:10: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/gio/tests/gsettings.c:2662:12: branch_false: ...to here
glib-2.87.0/gio/tests/gsettings.c:2662:12: throw: if ‘g_strv_contains’ throws an exception...
glib-2.87.0/gio/tests/gsettings.c:2662:12: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 2660|         if (str == NULL)
# 2661|           break;
# 2662|->       if (!g_strv_contains (strv, str))
# 2663|           {
# 2664|             res = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
glib-2.87.0/gio/tests/gsubprocess-testprog.c:148:7: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
glib-2.87.0/gio/tests/gsubprocess-testprog.c:138:15: branch_true: following ‘true’ branch (when ‘i < argc’)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:140:26: branch_true: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:141:17: acquire_memory: allocated here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:145:7: branch_true: following ‘true’ branch (when ‘f’ is non-NULL)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:147:23: branch_true: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:148:7: throw: if ‘g_assertion_message_expr’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:148:7: danger: ‘f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  146|         
#  147|         bytes_written = fwrite (buf, 1, sizeof (buf), f);
#  148|->       g_assert (bytes_written == sizeof (buf));
#  149|         
#  150|         if (fclose (f) == -1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
glib-2.87.0/gio/tests/gsubprocess-testprog.c:189:7: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
glib-2.87.0/gio/tests/gsubprocess-testprog.c:166:6: branch_false: following ‘false’ branch (when ‘argc == 3’)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:172:8: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:173:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:179:7: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:179:7: acquire_memory: allocated here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:180:6: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:186:16: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:187:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:189:7: branch_true: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:189:7: throw: if ‘g_log’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:189:7: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  187|     if (bytes_read != sizeof (expected_result))
#  188|       {
#  189|->       g_warning ("Read %zu bytes, but expected %zu", bytes_read, sizeof (expected_result));
#  190|         return 1;
#  191|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
glib-2.87.0/gio/tests/gsubprocess-testprog.c:196:7: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
glib-2.87.0/gio/tests/gsubprocess-testprog.c:166:6: branch_false: following ‘false’ branch (when ‘argc == 3’)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:172:8: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:173:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:179:7: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:179:7: acquire_memory: allocated here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:180:6: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:186:16: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:187:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:193:7: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:193:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:195:7: branch_true: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:196:7: throw: if ‘g_log’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:196:7: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  194|       {
#  195|         buf[sizeof (expected_result)] = '\0';
#  196|->       g_warning ("Expected \"%s\" but read  \"%s\"", expected_result, (char *)buf);
#  197|         return 1;
#  198|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
glib-2.87.0/gio/tests/gsubprocess-testprog.c:204:1: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
glib-2.87.0/gio/tests/gsubprocess-testprog.c:166:6: branch_false: following ‘false’ branch (when ‘argc == 3’)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:172:8: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:173:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:179:7: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:179:7: acquire_memory: allocated here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:180:6: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:186:16: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:187:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gsubprocess-testprog.c:189:7: branch_true: ...to here
glib-2.87.0/gio/tests/gsubprocess-testprog.c:204:1: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  202|   
#  203|     return 0;
#  204|-> }
#  205|   
#  206|   static int

Error: GCC_ANALYZER_WARNING (CWE-685): [#def178]
glib-2.87.0/gio/tests/gsubprocess.c:63:10: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
glib-2.87.0/gio/tests/gsubprocess.c:1381:1: enter_function: entry to ‘test_signal’
glib-2.87.0/gio/tests/gsubprocess.c:1389:10: call_function: calling ‘get_test_subprocess_args’ from ‘test_signal’ with 1 variadic argument
#   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-404): [#def179]
glib-2.87.0/gio/tests/gsubprocess.c:64:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/gsubprocess.c:48:1: enter_function: entry to ‘get_test_subprocess_args’
glib-2.87.0/gio/tests/gsubprocess.c:62:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/gsubprocess.c:63:10: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
glib-2.87.0/gio/tests/gsubprocess.c:64:27: call_function: inlined call to ‘g_strdup_inline’ from ‘get_test_subprocess_args’
glib-2.87.0/gio/tests/gsubprocess.c:64:5: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess.c:64:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(2)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/1)
#   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);
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
glib-2.87.0/gio/tests/gsubprocess.c:767:24: warning[-Wanalyzer-null-argument]: use of NULL ‘stdout_data’ where non-null expected
glib-2.87.0/gio/tests/gsubprocess.c:747:9: release_memory: ‘stdout_str’ is NULL
glib-2.87.0/gio/tests/gsubprocess.c:747:29: release_memory: ‘stdout_str’ is NULL
glib-2.87.0/gio/tests/gsubprocess.c:752:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/gsubprocess.c:756:12: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess.c:758:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/gsubprocess.c:761:7: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess.c:761:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gsubprocess.c:763:11: branch_true: ...to here
glib-2.87.0/gio/tests/gsubprocess.c:763:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/gsubprocess.c:765:11: branch_true: ...to here
glib-2.87.0/gio/tests/gsubprocess.c:765:11: release_memory: ‘stdout_str’ is NULL
glib-2.87.0/gio/tests/gsubprocess.c:765:11: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/gsubprocess.c:765:11: branch_false: ...to here
glib-2.87.0/gio/tests/gsubprocess.c:766:11: release_memory: ‘stdout_str’ is NULL
glib-2.87.0/gio/tests/gsubprocess.c:767:24: danger: argument 1 (‘stdout_data’) NULL where non-null expected
#  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-775): [#def181]
glib-2.87.0/gio/tests/gsubprocess.c:1563:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd2’
glib-2.87.0/gio/tests/gsubprocess.c:1562:9: acquire_resource: opened here
glib-2.87.0/gio/tests/gsubprocess.c:1563:14: throw: if ‘g_subprocess_launcher_new’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess.c:1563:14: danger: ‘fd2’ leaks here; was opened at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 1561|     fd = dup (0);
# 1562|     fd2 = dup (0);
# 1563|->   launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);
# 1564|     g_subprocess_launcher_take_fd (launcher, fd, fd2);
# 1565|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
glib-2.87.0/gio/tests/gsubprocess.c:1563:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/gsubprocess.c:1561:8: acquire_resource: opened here
glib-2.87.0/gio/tests/gsubprocess.c:1563:14: throw: if ‘g_subprocess_launcher_new’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess.c:1563:14: danger: ‘fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 1561|     fd = dup (0);
# 1562|     fd2 = dup (0);
# 1563|->   launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);
# 1564|     g_subprocess_launcher_take_fd (launcher, fd, fd2);
# 1565|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
glib-2.87.0/gio/tests/gsubprocess.c:1564:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd2’
glib-2.87.0/gio/tests/gsubprocess.c:1562:9: acquire_resource: opened here
glib-2.87.0/gio/tests/gsubprocess.c:1564:3: throw: if ‘g_subprocess_launcher_take_fd’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess.c:1564:3: danger: ‘fd2’ leaks here; was opened at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
# 1562|     fd2 = dup (0);
# 1563|     launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);
# 1564|->   g_subprocess_launcher_take_fd (launcher, fd, fd2);
# 1565|   
# 1566|     is_open = fcntl (fd, F_GETFD) != -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
glib-2.87.0/gio/tests/gsubprocess.c:1564:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/gsubprocess.c:1561:8: acquire_resource: opened here
glib-2.87.0/gio/tests/gsubprocess.c:1564:3: throw: if ‘g_subprocess_launcher_take_fd’ throws an exception...
glib-2.87.0/gio/tests/gsubprocess.c:1564:3: danger: ‘fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
# 1562|     fd2 = dup (0);
# 1563|     launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);
# 1564|->   g_subprocess_launcher_take_fd (launcher, fd, fd2);
# 1565|   
# 1566|     is_open = fcntl (fd, F_GETFD) != -1;

Error: CPPCHECK_WARNING (CWE-476): [#def185]
glib-2.87.0/gio/tests/live-g-file.c:310: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#  308|   
#  309|   	  f = g_fopen (path, "ae");
#  310|-> 	  fprintf (f, "%s\n", basename);
#  311|   	  fclose (f);
#  312|   

Error: CPPCHECK_WARNING (CWE-476): [#def186]
glib-2.87.0/gio/tests/live-g-file.c:311: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#  309|   	  f = g_fopen (path, "ae");
#  310|   	  fprintf (f, "%s\n", basename);
#  311|-> 	  fclose (f);
#  312|   
#  313|   	  g_free (dir);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def187]
glib-2.87.0/gio/tests/mimeapps.c:21:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gio/tests/mimeapps.c:15:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gio/tests/mimeapps.c:19:10: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/gio/tests/mimeapps.c:21:31: branch_false: ...to here
glib-2.87.0/gio/tests/mimeapps.c:21:11: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/gio/tests/mimeapps.c:21:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   19|         if (str == NULL)
#   20|           break;
#   21|->       if (g_strcmp0 (str, strv[count]) != 0)
#   22|           {
#   23|             res = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def188]
glib-2.87.0/gio/tests/pollable.c:200:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[0]’
glib-2.87.0/gio/tests/pollable.c:198:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:200:8: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:200:8: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:200:8: danger: ‘pipefds[0]’ leaks here
#  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: GCC_ANALYZER_WARNING (CWE-775): [#def189]
glib-2.87.0/gio/tests/pollable.c:200:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:198:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:200:8: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:200:8: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:200:8: danger: ‘pipefds[1]’ leaks here
#  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: GCC_ANALYZER_WARNING (CWE-457): [#def190]
glib-2.87.0/gio/tests/pollable.c:200:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipefds[0]’
glib-2.87.0/gio/tests/pollable.c:198:3: branch_false: following ‘false’ branch (when ‘status != 0’)...
glib-2.87.0/gio/tests/pollable.c:198:3: branch_false: ...to here
glib-2.87.0/gio/tests/pollable.c:200:8: danger: use of uninitialized value ‘pipefds[0]’ here
#  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: GCC_ANALYZER_WARNING (CWE-775): [#def191]
glib-2.87.0/gio/tests/pollable.c:201:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:198:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:200:8: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:201:9: throw: if ‘g_unix_output_stream_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:201:9: danger: ‘pipefds[1]’ leaks here
#  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|   
#  203|     test_streams (in, out);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
glib-2.87.0/gio/tests/pollable.c:295:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[0]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:295:11: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:295:11: danger: ‘pipefds[0]’ leaks here
#  293|     g_assert_cmpint (status, ==, 0);
#  294|   
#  295|->   ibase = G_INPUT_STREAM (g_unix_input_stream_new (pipefds[0], TRUE));
#  296|     converter = G_CONVERTER (g_charset_converter_new ("UTF-8", "UTF-8", &error));
#  297|     g_assert_no_error (error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
glib-2.87.0/gio/tests/pollable.c:295:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:295:11: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:295:11: danger: ‘pipefds[1]’ leaks here
#  293|     g_assert_cmpint (status, ==, 0);
#  294|   
#  295|->   ibase = G_INPUT_STREAM (g_unix_input_stream_new (pipefds[0], TRUE));
#  296|     converter = G_CONVERTER (g_charset_converter_new ("UTF-8", "UTF-8", &error));
#  297|     g_assert_no_error (error);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def194]
glib-2.87.0/gio/tests/pollable.c:295:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipefds[0]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_false: following ‘false’ branch (when ‘status != 0’)...
glib-2.87.0/gio/tests/pollable.c:293:3: branch_false: ...to here
glib-2.87.0/gio/tests/pollable.c:295:11: danger: use of uninitialized value ‘pipefds[0]’ here
#  293|     g_assert_cmpint (status, ==, 0);
#  294|   
#  295|->   ibase = G_INPUT_STREAM (g_unix_input_stream_new (pipefds[0], TRUE));
#  296|     converter = G_CONVERTER (g_charset_converter_new ("UTF-8", "UTF-8", &error));
#  297|     g_assert_no_error (error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
glib-2.87.0/gio/tests/pollable.c:296:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:296:15: throw: if ‘g_charset_converter_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:296:15: danger: ‘pipefds[1]’ leaks here
#  294|   
#  295|     ibase = G_INPUT_STREAM (g_unix_input_stream_new (pipefds[0], TRUE));
#  296|->   converter = G_CONVERTER (g_charset_converter_new ("UTF-8", "UTF-8", &error));
#  297|     g_assert_no_error (error);
#  298|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
glib-2.87.0/gio/tests/pollable.c:297:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:297:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/pollable.c:297:3: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:297:3: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:297:3: danger: ‘pipefds[1]’ leaks here
#  295|     ibase = G_INPUT_STREAM (g_unix_input_stream_new (pipefds[0], TRUE));
#  296|     converter = G_CONVERTER (g_charset_converter_new ("UTF-8", "UTF-8", &error));
#  297|->   g_assert_no_error (error);
#  298|   
#  299|     in = G_POLLABLE_INPUT_STREAM (g_converter_input_stream_new (ibase, converter));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def197]
glib-2.87.0/gio/tests/pollable.c:299:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:299:8: throw: if ‘g_converter_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:299:8: danger: ‘pipefds[1]’ leaks here
#  297|     g_assert_no_error (error);
#  298|   
#  299|->   in = G_POLLABLE_INPUT_STREAM (g_converter_input_stream_new (ibase, converter));
#  300|     g_object_unref (converter);
#  301|     g_object_unref (ibase);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
glib-2.87.0/gio/tests/pollable.c:300:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:300:3: throw: if ‘g_object_unref’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:300:3: danger: ‘pipefds[1]’ leaks here
#  298|   
#  299|     in = G_POLLABLE_INPUT_STREAM (g_converter_input_stream_new (ibase, converter));
#  300|->   g_object_unref (converter);
#  301|     g_object_unref (ibase);
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def199]
glib-2.87.0/gio/tests/pollable.c:301:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:301:3: throw: if ‘g_object_unref’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:301:3: danger: ‘pipefds[1]’ leaks here
#  299|     in = G_POLLABLE_INPUT_STREAM (g_converter_input_stream_new (ibase, converter));
#  300|     g_object_unref (converter);
#  301|->   g_object_unref (ibase);
#  302|   
#  303|     out = g_unix_output_stream_new (pipefds[1], TRUE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
glib-2.87.0/gio/tests/pollable.c:303:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefds[1]’
glib-2.87.0/gio/tests/pollable.c:293:3: branch_true: following ‘true’ branch (when ‘status == 0’)...
glib-2.87.0/gio/tests/pollable.c:295:11: branch_true: ...to here
glib-2.87.0/gio/tests/pollable.c:303:9: throw: if ‘g_unix_output_stream_new’ throws an exception...
glib-2.87.0/gio/tests/pollable.c:303:9: danger: ‘pipefds[1]’ leaks here
#  301|     g_object_unref (ibase);
#  302|   
#  303|->   out = g_unix_output_stream_new (pipefds[1], TRUE);
#  304|   
#  305|     test_streams (in, out);

Error: CPPCHECK_WARNING (CWE-457): [#def201]
glib-2.87.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-775): [#def202]
glib-2.87.0/gio/tests/socket.c:1397:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/socket.c:1384:8: acquire_resource: stream socket created here
glib-2.87.0/gio/tests/socket.c:1392:3: branch_true: following ‘true’ branch (when ‘fd != -1’)...
glib-2.87.0/gio/tests/socket.c:1396:3: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1397:7: throw: if ‘g_socket_new_from_fd’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1397:7: danger: ‘fd’ leaks here
# 1395|   
# 1396|     error = NULL;
# 1397|->   s = g_socket_new_from_fd (fd, &error);
# 1398|     g_assert_no_error (error);
# 1399|     g_assert_cmpint (g_socket_get_family (s), ==, G_SOCKET_FAMILY_UNIX);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def203]
glib-2.87.0/gio/tests/socket.c:1429:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/gio/tests/socket.c:1416:8: acquire_resource: stream socket created here
glib-2.87.0/gio/tests/socket.c:1424:3: branch_true: following ‘true’ branch (when ‘fd != -1’)...
glib-2.87.0/gio/tests/socket.c:1428:3: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1429:7: throw: if ‘g_socket_new_from_fd’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1429:7: danger: ‘fd’ leaks here
# 1427|   
# 1428|     error = NULL;
# 1429|->   s = g_socket_new_from_fd (fd, &error);
# 1430|     g_assert_no_error (error);
# 1431|     c = g_socket_connection_factory_create_connection (s);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def204]
glib-2.87.0/gio/tests/socket.c:1469:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[0]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1469:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/socket.c:1469:3: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1469:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1469:3: danger: ‘pv[0]’ leaks here
# 1467|   
# 1468|     status = socketpair (PF_UNIX, SOCK_STREAM, 0, sv);
# 1469|->   g_assert_cmpint (status, ==, 0);
# 1470|   
# 1471|     pid = fork ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def205]
glib-2.87.0/gio/tests/socket.c:1469:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[1]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1469:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/socket.c:1469:3: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1469:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1469:3: danger: ‘pv[1]’ leaks here
# 1467|   
# 1468|     status = socketpair (PF_UNIX, SOCK_STREAM, 0, sv);
# 1469|->   g_assert_cmpint (status, ==, 0);
# 1470|   
# 1471|     pid = fork ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def206]
glib-2.87.0/gio/tests/socket.c:1472:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[0]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1472:3: branch_false: following ‘false’ branch (when ‘pid < 0’)...
glib-2.87.0/gio/tests/socket.c:1472:3: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1472:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1472:3: danger: ‘pv[0]’ leaks here
# 1470|   
# 1471|     pid = fork ();
# 1472|->   g_assert_cmpint (pid, >=, 0);
# 1473|   
# 1474|     /* Child: close its copy of the write end of the pipe, receive it

Error: GCC_ANALYZER_WARNING (CWE-775): [#def207]
glib-2.87.0/gio/tests/socket.c:1472:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[1]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1472:3: branch_false: following ‘false’ branch (when ‘pid < 0’)...
glib-2.87.0/gio/tests/socket.c:1472:3: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1472:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1472:3: danger: ‘pv[1]’ leaks here
# 1470|   
# 1471|     pid = fork ();
# 1472|->   g_assert_cmpint (pid, >=, 0);
# 1473|   
# 1474|     /* Child: close its copy of the write end of the pipe, receive it

Error: GCC_ANALYZER_WARNING (CWE-775): [#def208]
glib-2.87.0/gio/tests/socket.c:1485:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[0]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1481:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/gio/tests/socket.c:1485:14: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1485:7: throw: if ‘close’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1485:7: danger: ‘pv[0]’ leaks here
# 1483|         GSocketConnection *connection;
# 1484|   
# 1485|->       close (sv[1]);
# 1486|         connection = create_connection_for_fd (sv[0]);
# 1487|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def209]
glib-2.87.0/gio/tests/socket.c:1485:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[1]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1481:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/gio/tests/socket.c:1485:14: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1485:7: throw: if ‘close’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1485:7: danger: ‘pv[1]’ leaks here
# 1483|         GSocketConnection *connection;
# 1484|   
# 1485|->       close (sv[1]);
# 1486|         connection = create_connection_for_fd (sv[0]);
# 1487|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def210]
glib-2.87.0/gio/tests/socket.c:1488:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pv[1]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/socket.c:1466:3: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1481:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/gio/tests/socket.c:1485:14: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1488:23: danger: use of uninitialized value ‘pv[1]’ here
# 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-775): [#def211]
glib-2.87.0/gio/tests/socket.c:1508:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[0]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1481:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/gio/tests/socket.c:1508:14: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1508:7: throw: if ‘close’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1508:7: danger: ‘pv[0]’ leaks here
# 1506|         GSocketConnection *connection;
# 1507|   
# 1508|->       close (sv[0]);
# 1509|         connection = create_connection_for_fd (sv[1]);
# 1510|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def212]
glib-2.87.0/gio/tests/socket.c:1508:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pv[1]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/socket.c:1468:12: branch_true: ...to here
glib-2.87.0/gio/tests/socket.c:1481:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/gio/tests/socket.c:1508:14: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1508:7: throw: if ‘close’ throws an exception...
glib-2.87.0/gio/tests/socket.c:1508:7: danger: ‘pv[1]’ leaks here
# 1506|         GSocketConnection *connection;
# 1507|   
# 1508|->       close (sv[0]);
# 1509|         connection = create_connection_for_fd (sv[1]);
# 1510|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def213]
glib-2.87.0/gio/tests/socket.c:1512:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pv[1]’
glib-2.87.0/gio/tests/socket.c:1466:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/socket.c:1466:3: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1481:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/gio/tests/socket.c:1508:14: branch_false: ...to here
glib-2.87.0/gio/tests/socket.c:1512:7: danger: use of uninitialized value ‘pv[1]’ here
# 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: CPPCHECK_WARNING (CWE-457): [#def214]
glib-2.87.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: GCC_ANALYZER_WARNING (CWE-775): [#def215]
glib-2.87.0/gio/tests/test-pipe-unix.c:73:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
glib-2.87.0/gio/tests/test-pipe-unix.c:63:6: branch_false: following ‘false’ branch (when ‘ret == 0’)...
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_true: following ‘true’ branch (when ‘is’ is non-NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:73:36: branch_true: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:73:11: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/test-pipe-unix.c:73:11: danger: ‘pipefd[0]’ leaks here
#   71|   
#   72|     if (is != NULL)
#   73|->     *is = g_unix_input_stream_new (pipefd[0], TRUE);
#   74|     else
#   75|       close (pipefd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def216]
glib-2.87.0/gio/tests/test-pipe-unix.c:73:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
glib-2.87.0/gio/tests/test-pipe-unix.c:63:6: branch_false: following ‘false’ branch (when ‘ret == 0’)...
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_true: following ‘true’ branch (when ‘is’ is non-NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:73:36: branch_true: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:73:11: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/test-pipe-unix.c:73:11: danger: ‘pipefd[1]’ leaks here
#   71|   
#   72|     if (is != NULL)
#   73|->     *is = g_unix_input_stream_new (pipefd[0], TRUE);
#   74|     else
#   75|       close (pipefd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def217]
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
glib-2.87.0/gio/tests/test-pipe-unix.c:63:6: branch_false: following ‘false’ branch (when ‘ret == 0’)...
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: following ‘false’ branch (when ‘is’ is NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: throw: if ‘close’ throws an exception...
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: danger: ‘pipefd[0]’ leaks here
#   73|       *is = g_unix_input_stream_new (pipefd[0], TRUE);
#   74|     else
#   75|->     close (pipefd[0]);
#   76|   
#   77|     if (os != NULL)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def218]
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
glib-2.87.0/gio/tests/test-pipe-unix.c:63:6: branch_false: following ‘false’ branch (when ‘ret == 0’)...
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: following ‘false’ branch (when ‘is’ is NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: throw: if ‘close’ throws an exception...
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: danger: ‘pipefd[1]’ leaks here
#   73|       *is = g_unix_input_stream_new (pipefd[0], TRUE);
#   74|     else
#   75|->     close (pipefd[0]);
#   76|   
#   77|     if (os != NULL)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def219]
glib-2.87.0/gio/tests/test-pipe-unix.c:78:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
glib-2.87.0/gio/tests/test-pipe-unix.c:63:6: branch_false: following ‘false’ branch (when ‘ret == 0’)...
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: following ‘false’ branch (when ‘is’ is NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:77:6: branch_true: following ‘true’ branch (when ‘os’ is non-NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:78:37: branch_true: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:78:11: throw: if ‘g_unix_output_stream_new’ throws an exception...
glib-2.87.0/gio/tests/test-pipe-unix.c:78:11: danger: ‘pipefd[1]’ leaks here
#   76|   
#   77|     if (os != NULL)
#   78|->     *os = g_unix_output_stream_new (pipefd[1], TRUE);
#   79|     else
#   80|       close (pipefd[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def220]
glib-2.87.0/gio/tests/test-pipe-unix.c:80:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
glib-2.87.0/gio/tests/test-pipe-unix.c:63:6: branch_false: following ‘false’ branch (when ‘ret == 0’)...
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:72:6: branch_false: following ‘false’ branch (when ‘is’ is NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:75:5: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:77:6: branch_false: following ‘false’ branch (when ‘os’ is NULL)...
glib-2.87.0/gio/tests/test-pipe-unix.c:80:5: branch_false: ...to here
glib-2.87.0/gio/tests/test-pipe-unix.c:80:5: throw: if ‘close’ throws an exception...
glib-2.87.0/gio/tests/test-pipe-unix.c:80:5: danger: ‘pipefd[1]’ leaks here
#   78|       *os = g_unix_output_stream_new (pipefd[1], TRUE);
#   79|     else
#   80|->     close (pipefd[1]);
#   81|   
#   82|     return TRUE;

Error: CPPCHECK_WARNING (CWE-476): [#def221]
glib-2.87.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): [#def222]
glib-2.87.0/gio/tests/unix-fd.c:27:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘my_fd’
glib-2.87.0/gio/tests/unix-fd.c:22:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
glib-2.87.0/gio/tests/unix-fd.c:26:15: branch_true: ...to here
glib-2.87.0/gio/tests/unix-fd.c:26:15: acquire_resource: opened here
glib-2.87.0/gio/tests/unix-fd.c:27:7: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/unix-fd.c:27:7: danger: ‘my_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   25|   
#   26|         my_fd = dup (0);
#   27|->       g_assert_cmpint (fd_list[i], ==, my_fd);
#   28|       }
#   29|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def223]
glib-2.87.0/gio/tests/unix-fd.c:31:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘my_fd’
glib-2.87.0/gio/tests/unix-fd.c:22:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
glib-2.87.0/gio/tests/unix-fd.c:26:15: branch_true: ...to here
glib-2.87.0/gio/tests/unix-fd.c:26:15: acquire_resource: opened here
glib-2.87.0/gio/tests/unix-fd.c:22:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
glib-2.87.0/gio/tests/unix-fd.c:26:15: branch_true: ...to here
glib-2.87.0/gio/tests/unix-fd.c:30:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
glib-2.87.0/gio/tests/unix-fd.c:31:21: branch_true: ...to here
glib-2.87.0/gio/tests/unix-fd.c:31:5: throw: if ‘g_close’ throws an exception...
glib-2.87.0/gio/tests/unix-fd.c:31:5: danger: ‘my_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   29|   
#   30|     for (i = 0; i < 40; i++)
#   31|->     g_close (fd_list[i], NULL);
#   32|   }
#   33|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def224]
glib-2.87.0/gio/tests/unix-fd.c:32:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘my_fd’
glib-2.87.0/gio/tests/unix-fd.c:22:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
glib-2.87.0/gio/tests/unix-fd.c:26:15: branch_true: ...to here
glib-2.87.0/gio/tests/unix-fd.c:26:15: acquire_resource: opened here
glib-2.87.0/gio/tests/unix-fd.c:22:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
glib-2.87.0/gio/tests/unix-fd.c:26:15: branch_true: ...to here
glib-2.87.0/gio/tests/unix-fd.c:30:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
glib-2.87.0/gio/tests/unix-fd.c:31:21: branch_true: ...to here
glib-2.87.0/gio/tests/unix-fd.c:32:1: danger: ‘my_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   30|     for (i = 0; i < 40; i++)
#   31|       g_close (fd_list[i], NULL);
#   32|-> }
#   33|   
#   34|   static void

Error: GCC_ANALYZER_WARNING (CWE-775): [#def225]
glib-2.87.0/gio/tests/unix-fd.c:42:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_list[0]’
glib-2.87.0/gio/tests/unix-fd.c:105:1: enter_function: entry to ‘test_scm’
glib-2.87.0/gio/tests/unix-fd.c:129:3: call_function: calling ‘create_fd_list’ from ‘test_scm’
#   40|       {
#   41|         fd_list[i] = dup (0);
#   42|->       g_assert_cmpint (fd_list[i], >, 0);
#   43|       }
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def226]
glib-2.87.0/gio/tests/unix-fd.c:42:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_list[1]’
glib-2.87.0/gio/tests/unix-fd.c:105:1: enter_function: entry to ‘test_scm’
glib-2.87.0/gio/tests/unix-fd.c:129:3: call_function: calling ‘create_fd_list’ from ‘test_scm’
#   40|       {
#   41|         fd_list[i] = dup (0);
#   42|->       g_assert_cmpint (fd_list[i], >, 0);
#   43|       }
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def227]
glib-2.87.0/gio/tests/unix-fd.c:42:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_list[2]’
glib-2.87.0/gio/tests/unix-fd.c:105:1: enter_function: entry to ‘test_scm’
glib-2.87.0/gio/tests/unix-fd.c:129:3: call_function: calling ‘create_fd_list’ from ‘test_scm’
#   40|       {
#   41|         fd_list[i] = dup (0);
#   42|->       g_assert_cmpint (fd_list[i], >, 0);
#   43|       }
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def228]
glib-2.87.0/gio/tests/unix-fd.c:42:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_list[3]’
glib-2.87.0/gio/tests/unix-fd.c:105:1: enter_function: entry to ‘test_scm’
glib-2.87.0/gio/tests/unix-fd.c:129:3: call_function: calling ‘create_fd_list’ from ‘test_scm’
#   40|       {
#   41|         fd_list[i] = dup (0);
#   42|->       g_assert_cmpint (fd_list[i], >, 0);
#   43|       }
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def229]
glib-2.87.0/gio/tests/unix-streams.c:444:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:439:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:440:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:442:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:444:8: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:444:8: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:444:8: danger: ‘fd[0]’ leaks here
#  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-775): [#def230]
glib-2.87.0/gio/tests/unix-streams.c:444:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:439:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:440:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:442:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:444:8: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:444:8: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:444:8: danger: ‘fd[1]’ leaks here
#  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): [#def231]
glib-2.87.0/gio/tests/unix-streams.c:444:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:439:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:440:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:442:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:442:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:444:8: danger: use of uninitialized value ‘fd[0]’ here
#  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-775): [#def232]
glib-2.87.0/gio/tests/unix-streams.c:445:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:439:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:440:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:442:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:444:8: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:445:8: throw: if ‘g_unix_output_stream_new’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:445:8: danger: ‘fd[1]’ leaks here
#  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|   
#  447|     data.is = G_INPUT_STREAM (is);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def233]
glib-2.87.0/gio/tests/unix-streams.c:492:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:492:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:492:3: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:492:3: danger: ‘fd[0]’ leaks here
#  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-775): [#def234]
glib-2.87.0/gio/tests/unix-streams.c:492:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:492:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:492:3: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:492:3: danger: ‘fd[1]’ leaks here
#  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): [#def235]
glib-2.87.0/gio/tests/unix-streams.c:492:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:492:3: danger: use of uninitialized value ‘fd[0]’ here
#  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-775): [#def236]
glib-2.87.0/gio/tests/unix-streams.c:493:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:492:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:493:12: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:493:12: danger: ‘fd[1]’ leaks here
#  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);
#  495|     pipe_capacity = (gsize) retval;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def237]
glib-2.87.0/gio/tests/unix-streams.c:494:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:492:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:494:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:494:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:494:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:494:3: danger: ‘fd[1]’ leaks here
#  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);
#  495|     pipe_capacity = (gsize) retval;
#  496|     g_assert_cmpint (pipe_capacity, >=, 4096);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def238]
glib-2.87.0/gio/tests/unix-streams.c:496:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:492:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:496:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:496:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:496:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:496:3: danger: ‘fd[1]’ leaks here
#  494|     g_assert_cmpint (retval, >=, 0);
#  495|     pipe_capacity = (gsize) retval;
#  496|->   g_assert_cmpint (pipe_capacity, >=, 4096);
#  497|     g_assert_cmpint (pipe_capacity % 1024, >=, 0);
#  498|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def239]
glib-2.87.0/gio/tests/unix-streams.c:499:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:492:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:499:8: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:499:8: danger: ‘fd[1]’ leaks here
#  497|     g_assert_cmpint (pipe_capacity % 1024, >=, 0);
#  498|   
#  499|->   is = G_UNIX_INPUT_STREAM (g_unix_input_stream_new (fd[0], TRUE));
#  500|     os = G_UNIX_OUTPUT_STREAM (g_unix_output_stream_new (fd[1], TRUE));
#  501|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def240]
glib-2.87.0/gio/tests/unix-streams.c:500:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:487:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:488:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:490:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:492:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:500:8: throw: if ‘g_unix_output_stream_new’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:500:8: danger: ‘fd[1]’ leaks here
#  498|   
#  499|     is = G_UNIX_INPUT_STREAM (g_unix_input_stream_new (fd[0], TRUE));
#  500|->   os = G_UNIX_OUTPUT_STREAM (g_unix_output_stream_new (fd[1], TRUE));
#  501|   
#  502|     /* Run the whole thing three times to make sure that the streams

Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
glib-2.87.0/gio/tests/unix-streams.c:575:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:575:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:575:3: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:575:3: danger: ‘fd[0]’ leaks here
#  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-775): [#def242]
glib-2.87.0/gio/tests/unix-streams.c:575:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:575:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:575:3: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:575:3: danger: ‘fd[1]’ leaks here
#  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): [#def243]
glib-2.87.0/gio/tests/unix-streams.c:575:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:575:3: danger: use of uninitialized value ‘fd[0]’ here
#  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-775): [#def244]
glib-2.87.0/gio/tests/unix-streams.c:576:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:575:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:576:12: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:576:12: danger: ‘fd[1]’ leaks here
#  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);
#  578|     pipe_capacity = (gsize) retval;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def245]
glib-2.87.0/gio/tests/unix-streams.c:577:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:575:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:577:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:577:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:577:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:577:3: danger: ‘fd[1]’ leaks here
#  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);
#  578|     pipe_capacity = (gsize) retval;
#  579|     g_assert_cmpint (pipe_capacity, >=, 4096);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def246]
glib-2.87.0/gio/tests/unix-streams.c:579:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:575:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:579:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:579:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:579:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:579:3: danger: ‘fd[1]’ leaks here
#  577|     g_assert_cmpint (retval, >=, 0);
#  578|     pipe_capacity = (gsize) retval;
#  579|->   g_assert_cmpint (pipe_capacity, >=, 4096);
#  580|     g_assert_cmpint (pipe_capacity % 1024, >=, 0);
#  581|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def247]
glib-2.87.0/gio/tests/unix-streams.c:582:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:575:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:582:8: throw: if ‘g_unix_input_stream_new’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:582:8: danger: ‘fd[1]’ leaks here
#  580|     g_assert_cmpint (pipe_capacity % 1024, >=, 0);
#  581|   
#  582|->   is = G_UNIX_INPUT_STREAM (g_unix_input_stream_new (fd[0], TRUE));
#  583|     os = G_UNIX_OUTPUT_STREAM (g_unix_output_stream_new (fd[1], TRUE));
#  584|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def248]
glib-2.87.0/gio/tests/unix-streams.c:583:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:570:15: branch_true: following ‘true’ branch (when ‘i != 1024’)...
glib-2.87.0/gio/tests/unix-streams.c:571:5: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:573:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:575:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:583:8: throw: if ‘g_unix_output_stream_new’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:583:8: danger: ‘fd[1]’ leaks here
#  581|   
#  582|     is = G_UNIX_INPUT_STREAM (g_unix_input_stream_new (fd[0], TRUE));
#  583|->   os = G_UNIX_OUTPUT_STREAM (g_unix_output_stream_new (fd[1], TRUE));
#  584|   
#  585|     /* Run the whole thing three times to make sure that the streams

Error: GCC_ANALYZER_WARNING (CWE-775): [#def249]
glib-2.87.0/gio/tests/unix-streams.c:697:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:687:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:697:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:697:3: throw: if ‘g_unix_set_fd_nonblocking’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:697:3: danger: ‘fd[0]’ leaks here
#  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-775): [#def250]
glib-2.87.0/gio/tests/unix-streams.c:697:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:687:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:697:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:697:3: throw: if ‘g_unix_set_fd_nonblocking’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:697:3: danger: ‘fd[1]’ leaks here
#  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): [#def251]
glib-2.87.0/gio/tests/unix-streams.c:697:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:687:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:687:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:697:3: danger: use of uninitialized value ‘fd[0]’ here
#  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-775): [#def252]
glib-2.87.0/gio/tests/unix-streams.c:698:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:687:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:697:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:698:3: throw: if ‘g_unix_set_fd_nonblocking’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:698:3: danger: ‘fd[1]’ leaks here
#  696|      */
#  697|     g_unix_set_fd_nonblocking (fd[0], TRUE, NULL);
#  698|->   g_unix_set_fd_nonblocking (fd[1], TRUE, NULL);
#  699|   
#  700|     g_assert_cmpint (fcntl (fd[0], F_SETPIPE_SZ, 4096, NULL), !=, 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def253]
glib-2.87.0/gio/tests/unix-streams.c:788:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:778:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:788:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:788:3: throw: if ‘g_unix_set_fd_nonblocking’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:788:3: danger: ‘fd[0]’ leaks here
#  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-775): [#def254]
glib-2.87.0/gio/tests/unix-streams.c:788:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:778:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:788:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:788:3: throw: if ‘g_unix_set_fd_nonblocking’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:788:3: danger: ‘fd[1]’ leaks here
#  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-457): [#def255]
glib-2.87.0/gio/tests/unix-streams.c:788:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd[0]’
glib-2.87.0/gio/tests/unix-streams.c:778:3: branch_false: following ‘false’ branch...
glib-2.87.0/gio/tests/unix-streams.c:778:3: branch_false: ...to here
glib-2.87.0/gio/tests/unix-streams.c:788:3: danger: use of uninitialized value ‘fd[0]’ here
#  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-775): [#def256]
glib-2.87.0/gio/tests/unix-streams.c:789:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
glib-2.87.0/gio/tests/unix-streams.c:778:3: branch_true: following ‘true’ branch...
glib-2.87.0/gio/tests/unix-streams.c:788:3: branch_true: ...to here
glib-2.87.0/gio/tests/unix-streams.c:789:3: throw: if ‘g_unix_set_fd_nonblocking’ throws an exception...
glib-2.87.0/gio/tests/unix-streams.c:789:3: danger: ‘fd[1]’ leaks here
#  787|      */
#  788|     g_unix_set_fd_nonblocking (fd[0], TRUE, NULL);
#  789|->   g_unix_set_fd_nonblocking (fd[1], TRUE, NULL);
#  790|   
#  791|     g_assert_cmpint (fcntl (fd[0], F_SETPIPE_SZ, 4096, NULL), !=, 0);

Error: CPPCHECK_WARNING (CWE-476): [#def257]
glib-2.87.0/gio/xdgmime/xdgmime.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  105|     
#  106|     list = calloc (1, sizeof (XdgDirTimeList));
#  107|->   list->checked = XDG_CHECKED_UNCHECKED;
#  108|     list->directory_name = file_name;
#  109|     list->mtime = mtime;

Error: CPPCHECK_WARNING (CWE-476): [#def258]
glib-2.87.0/gio/xdgmime/xdgmime.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  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-476): [#def259]
glib-2.87.0/gio/xdgmime/xdgmime.c:108:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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: CPPCHECK_WARNING (CWE-476): [#def260]
glib-2.87.0/gio/xdgmime/xdgmime.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  107|     list->checked = XDG_CHECKED_UNCHECKED;
#  108|     list->directory_name = file_name;
#  109|->   list->mtime = mtime;
#  110|     list->next = dir_time_list;
#  111|     dir_time_list = list;

Error: CPPCHECK_WARNING (CWE-476): [#def261]
glib-2.87.0/gio/xdgmime/xdgmime.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#  108|     list->directory_name = file_name;
#  109|     list->mtime = mtime;
#  110|->   list->next = dir_time_list;
#  111|     dir_time_list = list;
#  112|   }

Error: CPPCHECK_WARNING (CWE-476): [#def262]
glib-2.87.0/gio/xdgmime/xdgmime.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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: GCC_ANALYZER_WARNING (CWE-688): [#def263]
glib-2.87.0/gio/xdgmime/xdgmime.c:138:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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: GCC_ANALYZER_WARNING (CWE-401): [#def264]
glib-2.87.0/gio/xdgmime/xdgmime.c:141:29: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  139|     if (stat (file_name, &st) == 0)
#  140|       {
#  141|->       XdgMimeCache *cache = _xdg_mime_cache_new_from_file (file_name);
#  142|   
#  143|         if (cache != NULL)

Error: CPPCHECK_WARNING (CWE-401): [#def265]
glib-2.87.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: CPPCHECK_WARNING (CWE-476): [#def266]
glib-2.87.0/gio/xdgmime/xdgmime.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def267]
glib-2.87.0/gio/xdgmime/xdgmime.c:158:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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-401): [#def268]
glib-2.87.0/gio/xdgmime/xdgmime.c:161:7: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  159|     if (stat (file_name, &st) == 0)
#  160|       {
#  161|->       _xdg_mime_glob_read_from_file (global_hash, file_name, TRUE);
#  162|         xdg_dir_time_list_add (file_name, st.st_mtime);
#  163|       }

Error: CPPCHECK_WARNING (CWE-476): [#def269]
glib-2.87.0/gio/xdgmime/xdgmime.c:168: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def270]
glib-2.87.0/gio/xdgmime/xdgmime.c:168:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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-401): [#def271]
glib-2.87.0/gio/xdgmime/xdgmime.c:171:11: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  169|         if (stat (file_name, &st) == 0)
#  170|           {
#  171|->           _xdg_mime_glob_read_from_file (global_hash, file_name, FALSE);
#  172|             xdg_dir_time_list_add (file_name, st.st_mtime);
#  173|           }

Error: CPPCHECK_WARNING (CWE-476): [#def272]
glib-2.87.0/gio/xdgmime/xdgmime.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def273]
glib-2.87.0/gio/xdgmime/xdgmime.c:181:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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-401): [#def274]
glib-2.87.0/gio/xdgmime/xdgmime.c:184:7: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  182|     if (stat (file_name, &st) == 0)
#  183|       {
#  184|->       _xdg_mime_magic_read_from_file (global_magic, file_name);
#  185|         xdg_dir_time_list_add (file_name, st.st_mtime);
#  186|       }

Error: CPPCHECK_WARNING (CWE-476): [#def275]
glib-2.87.0/gio/xdgmime/xdgmime.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def276]
glib-2.87.0/gio/xdgmime/xdgmime.c:193:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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-401): [#def277]
glib-2.87.0/gio/xdgmime/xdgmime.c:194:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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);
#  196|   

Error: CPPCHECK_WARNING (CWE-476): [#def278]
glib-2.87.0/gio/xdgmime/xdgmime.c:198: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def279]
glib-2.87.0/gio/xdgmime/xdgmime.c:198:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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-401): [#def280]
glib-2.87.0/gio/xdgmime/xdgmime.c:199:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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);
#  201|   

Error: CPPCHECK_WARNING (CWE-476): [#def281]
glib-2.87.0/gio/xdgmime/xdgmime.c:203: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def282]
glib-2.87.0/gio/xdgmime/xdgmime.c:203:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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-401): [#def283]
glib-2.87.0/gio/xdgmime/xdgmime.c:204:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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);
#  206|   

Error: CPPCHECK_WARNING (CWE-476): [#def284]
glib-2.87.0/gio/xdgmime/xdgmime.c:208: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def285]
glib-2.87.0/gio/xdgmime/xdgmime.c:208:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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-401): [#def286]
glib-2.87.0/gio/xdgmime/xdgmime.c:209:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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);
#  211|   

Error: CPPCHECK_WARNING (CWE-476): [#def287]
glib-2.87.0/gio/xdgmime/xdgmime.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mime_subdir
#  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-688): [#def288]
glib-2.87.0/gio/xdgmime/xdgmime.c:250:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mime_subdir’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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: CPPCHECK_WARNING (CWE-476): [#def289]
glib-2.87.0/gio/xdgmime/xdgmime.c:251: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mime_subdir
#  249|         mime_subdir = malloc (strlen (xdg_data_home) + strlen ("/mime/") + 1);
#  250|         strcpy (mime_subdir, xdg_data_home);
#  251|->       strcat (mime_subdir, "/mime/");
#  252|   
#  253|         xdg_dirs[current_dir++] = mime_subdir;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def290]
glib-2.87.0/gio/xdgmime/xdgmime.c:253:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xdg_dirs’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  251|         strcat (mime_subdir, "/mime/");
#  252|   
#  253|->       xdg_dirs[current_dir++] = mime_subdir;
#  254|       }
#  255|     else if (home != NULL)

Error: CPPCHECK_WARNING (CWE-476): [#def291]
glib-2.87.0/gio/xdgmime/xdgmime.c:260: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home
#  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-688): [#def292]
glib-2.87.0/gio/xdgmime/xdgmime.c:260:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘guessed_xdg_home’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  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: CPPCHECK_WARNING (CWE-476): [#def293]
glib-2.87.0/gio/xdgmime/xdgmime.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: guessed_xdg_home
#  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|   
#  263|         xdg_dirs[current_dir++] = guessed_xdg_home;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def294]
glib-2.87.0/gio/xdgmime/xdgmime.c:263:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xdg_dirs’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  261|         strcat (guessed_xdg_home, "/.local/share/mime/");
#  262|   
#  263|->       xdg_dirs[current_dir++] = guessed_xdg_home;
#  264|       }
#  265|   

Error: CPPCHECK_WARNING (CWE-476): [#def295]
glib-2.87.0/gio/xdgmime/xdgmime.c:290: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dir
#  288|           len = end_ptr - ptr + 1;
#  289|         dir = malloc (len + strlen ("/mime/") + 1);
#  290|->       strncpy (dir, ptr, len);
#  291|         dir[len] = '\0';
#  292|         strcat (dir, "/mime/");

Error: CPPCHECK_WARNING (CWE-476): [#def296]
glib-2.87.0/gio/xdgmime/xdgmime.c:291: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dir
#  289|         dir = malloc (len + strlen ("/mime/") + 1);
#  290|         strncpy (dir, ptr, len);
#  291|->       dir[len] = '\0';
#  292|         strcat (dir, "/mime/");
#  293|   

Error: CPPCHECK_WARNING (CWE-476): [#def297]
glib-2.87.0/gio/xdgmime/xdgmime.c:292: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dir
#  290|         strncpy (dir, ptr, len);
#  291|         dir[len] = '\0';
#  292|->       strcat (dir, "/mime/");
#  293|   
#  294|         xdg_dirs[current_dir++] = dir;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def298]
glib-2.87.0/gio/xdgmime/xdgmime.c:300:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xdg_dirs’
glib-2.87.0/gio/xdgmime/xdgmime.c:494:1: enter_function: entry to ‘xdg_mime_init’
glib-2.87.0/gio/xdgmime/xdgmime.c:510:7: call_function: calling ‘xdg_run_command_on_dirs’ from ‘xdg_mime_init’
#  298|   
#  299|     /* NULL terminator */
#  300|->   xdg_dirs[current_dir] = NULL;
#  301|   
#  302|     need_reread = TRUE;

Error: CPPCHECK_WARNING (CWE-476): [#def299]
glib-2.87.0/gio/xdgmime/xdgmime.c:345: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xdg_dirs
#  343|         xdg_dirs = calloc (i + 1  /* NULL terminator */, sizeof (char*));
#  344|         for (i = 0; dirs[i] != NULL; i++)
#  345|->         xdg_dirs[i] = strdup (dirs[i]);
#  346|         xdg_dirs[i] = NULL;
#  347|       }

Error: CPPCHECK_WARNING (CWE-476): [#def300]
glib-2.87.0/gio/xdgmime/xdgmime.c:346: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xdg_dirs
#  344|         for (i = 0; dirs[i] != NULL; i++)
#  345|           xdg_dirs[i] = strdup (dirs[i]);
#  346|->       xdg_dirs[i] = NULL;
#  347|       }
#  348|   

Error: CPPCHECK_WARNING (CWE-476): [#def301]
glib-2.87.0/gio/xdgmime/xdgmime.c:405: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def302]
glib-2.87.0/gio/xdgmime/xdgmime.c:405:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:1020:1: enter_function: entry to ‘_gio_xdg_get_generic_icon’
glib-2.87.0/gio/xdgmime/xdgmime.c:1022:3: call_function: calling ‘xdg_mime_init’ from ‘_gio_xdg_get_generic_icon’
#  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: CPPCHECK_WARNING (CWE-476): [#def303]
glib-2.87.0/gio/xdgmime/xdgmime.c:420: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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): [#def304]
glib-2.87.0/gio/xdgmime/xdgmime.c:420:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:1020:1: enter_function: entry to ‘_gio_xdg_get_generic_icon’
glib-2.87.0/gio/xdgmime/xdgmime.c:1022:3: call_function: calling ‘xdg_mime_init’ from ‘_gio_xdg_get_generic_icon’
#  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: CPPCHECK_WARNING (CWE-476): [#def305]
glib-2.87.0/gio/xdgmime/xdgmime.c:431: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: file_name
#  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-688): [#def306]
glib-2.87.0/gio/xdgmime/xdgmime.c:431:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file_name’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmime.c:1020:1: enter_function: entry to ‘_gio_xdg_get_generic_icon’
glib-2.87.0/gio/xdgmime/xdgmime.c:1022:3: call_function: calling ‘xdg_mime_init’ from ‘_gio_xdg_get_generic_icon’
#  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: COMPILER_WARNING (CWE-704): [#def307]
glib-2.87.0/gio/xdgmime/xdgmime.c: scope_hint: In function ‘_gio_xdg_media_type_equal’
glib-2.87.0/gio/xdgmime/xdgmime.c:786:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  786 |   sep = strchr (mime_a, '/');
#      |       ^
#  784|     char *sep;
#  785|   
#  786|->   sep = strchr (mime_a, '/');
#  787|     
#  788|     if (sep && strncmp (mime_a, mime_b, sep - mime_a + 1) == 0)

Error: COMPILER_WARNING (CWE-704): [#def308]
glib-2.87.0/gio/xdgmime/xdgmime.c:786:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  784|     char *sep;
#  785|   
#  786|->   sep = strchr (mime_a, '/');
#  787|     
#  788|     if (sep && strncmp (mime_a, mime_b, sep - mime_a + 1) == 0)

Error: CPPCHECK_WARNING (CWE-476): [#def309]
glib-2.87.0/gio/xdgmime/xdgmime.c:922: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  920|     n = (i + 1) * sizeof (char *);
#  921|     result = (char **) malloc (n);
#  922|->   memcpy (result, parents, n);
#  923|   
#  924|     return result;

Error: CPPCHECK_WARNING (CWE-476): [#def310]
glib-2.87.0/gio/xdgmime/xdgmime.c:969: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  967|     /* Make a new list element */
#  968|     list_el = calloc (1, sizeof (XdgCallbackList));
#  969|->   list_el->callback_id = callback_id;
#  970|     list_el->callback = callback;
#  971|     list_el->data = data;

Error: CPPCHECK_WARNING (CWE-476): [#def311]
glib-2.87.0/gio/xdgmime/xdgmime.c:970: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  968|     list_el = calloc (1, sizeof (XdgCallbackList));
#  969|     list_el->callback_id = callback_id;
#  970|->   list_el->callback = callback;
#  971|     list_el->data = data;
#  972|     list_el->destroy = destroy;

Error: CPPCHECK_WARNING (CWE-476): [#def312]
glib-2.87.0/gio/xdgmime/xdgmime.c:971: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  969|     list_el->callback_id = callback_id;
#  970|     list_el->callback = callback;
#  971|->   list_el->data = data;
#  972|     list_el->destroy = destroy;
#  973|     list_el->next = callback_list;

Error: CPPCHECK_WARNING (CWE-476): [#def313]
glib-2.87.0/gio/xdgmime/xdgmime.c:972: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  970|     list_el->callback = callback;
#  971|     list_el->data = data;
#  972|->   list_el->destroy = destroy;
#  973|     list_el->next = callback_list;
#  974|     if (list_el->next)

Error: CPPCHECK_WARNING (CWE-476): [#def314]
glib-2.87.0/gio/xdgmime/xdgmime.c:973: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  971|     list_el->data = data;
#  972|     list_el->destroy = destroy;
#  973|->   list_el->next = callback_list;
#  974|     if (list_el->next)
#  975|       list_el->next->prev = list_el;

Error: CPPCHECK_WARNING (CWE-476): [#def315]
glib-2.87.0/gio/xdgmime/xdgmime.c:974: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list_el
#  972|     list_el->destroy = destroy;
#  973|     list_el->next = callback_list;
#  974|->   if (list_el->next)
#  975|       list_el->next->prev = list_el;
#  976|   

Error: CPPCHECK_WARNING (CWE-476): [#def316]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:53: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   51|     list = malloc (sizeof (XdgAliasList));
#   52|   
#   53|->   list->aliases = NULL;
#   54|     list->n_aliases = 0;
#   55|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:53:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
glib-2.87.0/gio/xdgmime/xdgmimealias.c:51:10: acquire_memory: this call could return NULL
glib-2.87.0/gio/xdgmime/xdgmimealias.c:53:3: danger: ‘list’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   51|     list = malloc (sizeof (XdgAliasList));
#   52|   
#   53|->   list->aliases = NULL;
#   54|     list->n_aliases = 0;
#   55|   

Error: CPPCHECK_WARNING (CWE-476): [#def318]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:54: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   52|   
#   53|     list->aliases = NULL;
#   54|->   list->n_aliases = 0;
#   55|   
#   56|     return list;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:134:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.aliases’
glib-2.87.0/gio/xdgmime/xdgmimealias.c:113:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:118:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:120:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:123:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:127:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:129:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:131:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:133:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:134:11: danger: ‘*list.aliases’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  132|   	{
#  133|   	  alloc <<= 1;
#  134|-> 	  list->aliases = realloc (list->aliases, 
#  135|   				   alloc * sizeof (XdgAlias));
#  136|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:134:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/gio/xdgmime/xdgmimealias.c:113:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:118:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:120:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:123:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:127:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:129:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:131:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:137:7: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:138:50: acquire_memory: allocated here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:120:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:123:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:123:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:126:13: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:127:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:129:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:131:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:133:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:134:27: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  132|   	{
#  133|   	  alloc <<= 1;
#  134|-> 	  list->aliases = realloc (list->aliases, 
#  135|   				   alloc * sizeof (XdgAlias));
#  136|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:141:3: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.aliases’
glib-2.87.0/gio/xdgmime/xdgmimealias.c:113:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:118:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:141:3: danger: ‘*list.aliases’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  139|         list->n_aliases++;
#  140|       }
#  141|->   list->aliases = realloc (list->aliases, 
#  142|   			   list->n_aliases * sizeof (XdgAlias));
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:141:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/gio/xdgmime/xdgmimealias.c:113:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:118:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:120:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:123:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:127:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:129:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:131:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:137:7: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:138:50: acquire_memory: allocated here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:120:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:142:28: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:141:19: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  139|         list->n_aliases++;
#  140|       }
#  141|->   list->aliases = realloc (list->aliases, 
#  142|   			   list->n_aliases * sizeof (XdgAlias));
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def323]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:141:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
glib-2.87.0/gio/xdgmime/xdgmimealias.c:113:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:118:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:141:19: danger: write of ‘(long unsigned int)(*list.n_aliases + 16) * 16’ bytes at offset ‘0’ exceeds the buffer
#  139|         list->n_aliases++;
#  140|       }
#  141|->   list->aliases = realloc (list->aliases, 
#  142|   			   list->n_aliases * sizeof (XdgAlias));
#  143|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def324]
glib-2.87.0/gio/xdgmime/xdgmimealias.c:147:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/gio/xdgmime/xdgmimealias.c:113:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:118:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:141:28: release_memory: using NULL here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:146:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimealias.c:147:5: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:147:12: release_memory: using NULL here
glib-2.87.0/gio/xdgmime/xdgmimealias.c:147:5: danger: argument 1 (‘*list.aliases’) NULL where non-null expected
#  145|     
#  146|     if (list->n_aliases > 1)
#  147|->     qsort (list->aliases, list->n_aliases, 
#  148|              sizeof (XdgAlias), alias_entry_cmp);
#  149|   }

Error: CPPCHECK_WARNING (CWE-476): [#def325]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  145|     
#  146|     cache = (XdgMimeCache *) malloc (sizeof (XdgMimeCache));
#  147|->   cache->minor = minor;
#  148|     cache->ref_count = 1;
#  149|     cache->buffer = buffer;

Error: CPPCHECK_WARNING (CWE-476): [#def326]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:148: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  146|     cache = (XdgMimeCache *) malloc (sizeof (XdgMimeCache));
#  147|     cache->minor = minor;
#  148|->   cache->ref_count = 1;
#  149|     cache->buffer = buffer;
#  150|     cache->size = st.st_size;

Error: CPPCHECK_WARNING (CWE-476): [#def327]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  147|     cache->minor = minor;
#  148|     cache->ref_count = 1;
#  149|->   cache->buffer = buffer;
#  150|     cache->size = st.st_size;
#  151|   

Error: CPPCHECK_WARNING (CWE-476): [#def328]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:150: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cache
#  148|     cache->ref_count = 1;
#  149|     cache->buffer = buffer;
#  150|->   cache->size = st.st_size;
#  151|   
#  152|    done:

Error: CPPCHECK_WARNING (CWE-476): [#def329]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:632: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  630|     lower = strdup (str);
#  631|     p = lower;
#  632|->   while (*p != 0)
#  633|       {
#  634|         char c = *p;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def330]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:632:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
glib-2.87.0/gio/xdgmime/xdgmimecache.c:904:1: enter_function: entry to ‘__gio_xdg_cache_get_mime_types_from_file_name’
glib-2.87.0/gio/xdgmime/xdgmimecache.c:908:10: call_function: calling ‘cache_glob_lookup_file_name’ from ‘__gio_xdg_cache_get_mime_types_from_file_name’
#  630|     lower = strdup (str);
#  631|     p = lower;
#  632|->   while (*p != 0)
#  633|       {
#  634|         char c = *p;

Error: CPPCHECK_WARNING (CWE-476): [#def331]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:1125: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 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-688): [#def332]
glib-2.87.0/gio/xdgmime/xdgmimecache.c:1125:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
glib-2.87.0/gio/xdgmime/xdgmimecache.c:1124:22: acquire_memory: this call could return NULL
glib-2.87.0/gio/xdgmime/xdgmimecache.c:1125:3: danger: argument 1 (‘result’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
# 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): [#def333]
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:120:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_element’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:563:1: enter_function: entry to ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:571:3: branch_true: following ‘true’ branch (when ‘glob_hash’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: following ‘true’ branch (when ‘glob’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:579:33: call_function: calling ‘_xdg_glob_list_append’ from ‘__gio_xdg_hash_append_glob’
#  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): [#def334]
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:184:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:563:1: enter_function: entry to ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:571:3: branch_true: following ‘true’ branch (when ‘glob_hash’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: following ‘true’ branch (when ‘glob’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: call_function: calling ‘__gio_xdg_determine_type’ from ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: return_function: returning to ‘__gio_xdg_hash_append_glob’ from ‘__gio_xdg_determine_type’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:582:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__gio_xdg_hash_append_glob’
#  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): [#def335]
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:207:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:563:1: enter_function: entry to ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:571:3: branch_true: following ‘true’ branch (when ‘glob_hash’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: following ‘true’ branch (when ‘glob’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: call_function: calling ‘__gio_xdg_determine_type’ from ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: return_function: returning to ‘__gio_xdg_hash_append_glob’ from ‘__gio_xdg_determine_type’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:582:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__gio_xdg_hash_append_glob’
#  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): [#def336]
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:226:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:563:1: enter_function: entry to ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:571:3: branch_true: following ‘true’ branch (when ‘glob_hash’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: following ‘true’ branch (when ‘glob’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: call_function: calling ‘__gio_xdg_determine_type’ from ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: return_function: returning to ‘__gio_xdg_hash_append_glob’ from ‘__gio_xdg_determine_type’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:582:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__gio_xdg_hash_append_glob’
#  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): [#def337]
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:257:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glob_hash_node’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:563:1: enter_function: entry to ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:571:3: branch_true: following ‘true’ branch (when ‘glob_hash’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:572:3: branch_true: following ‘true’ branch (when ‘glob’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: call_function: calling ‘__gio_xdg_determine_type’ from ‘__gio_xdg_hash_append_glob’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:574:10: return_function: returning to ‘__gio_xdg_hash_append_glob’ from ‘__gio_xdg_determine_type’
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:582:32: call_function: calling ‘_xdg_glob_hash_insert_text’ from ‘__gio_xdg_hash_append_glob’
#  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: CPPCHECK_WARNING (CWE-476): [#def338]
glib-2.87.0/gio/xdgmime/xdgmimeglob.c:383: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  381|     lower = strdup (str);
#  382|     p = lower;
#  383|->   while (*p != 0)
#  384|       {
#  385|         char c = *p;

Error: CPPCHECK_WARNING (CWE-476): [#def339]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:52: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   50|     list = malloc (sizeof (XdgIconList));
#   51|   
#   52|->   list->icons = NULL;
#   53|     list->n_icons = 0;
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def340]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:52:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:50:10: acquire_memory: this call could return NULL
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:52:3: danger: ‘list’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   50|     list = malloc (sizeof (XdgIconList));
#   51|   
#   52|->   list->icons = NULL;
#   53|     list->n_icons = 0;
#   54|   

Error: CPPCHECK_WARNING (CWE-476): [#def341]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:53: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   51|   
#   52|     list->icons = NULL;
#   53|->   list->n_icons = 0;
#   54|   
#   55|     return list;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:133:11: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.icons’
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:112:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:117:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:119:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:122:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:126:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:128:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:130:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:132:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:133:11: danger: ‘*list.icons’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  131|   	{
#  132|   	  alloc <<= 1;
#  133|-> 	  list->icons = realloc (list->icons, 
#  134|   				   alloc * sizeof (XdgIcon));
#  135|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:133:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:112:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:117:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:119:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:122:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:126:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:128:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:130:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:136:7: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:137:46: acquire_memory: allocated here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:119:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:122:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:122:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:125:13: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:126:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:128:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:130:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:132:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:133:25: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  131|   	{
#  132|   	  alloc <<= 1;
#  133|-> 	  list->icons = realloc (list->icons, 
#  134|   				   alloc * sizeof (XdgIcon));
#  135|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:140:3: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.icons’
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:112:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:117:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:140:3: danger: ‘*list.icons’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  138|         list->n_icons++;
#  139|       }
#  140|->   list->icons = realloc (list->icons, 
#  141|   			   list->n_icons * sizeof (XdgIcon));
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:140:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:112:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:117:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:119:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:122:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:126:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:128:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:130:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:136:7: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:137:46: acquire_memory: allocated here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:119:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:141:28: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:140:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  138|         list->n_icons++;
#  139|       }
#  140|->   list->icons = realloc (list->icons, 
#  141|   			   list->n_icons * sizeof (XdgIcon));
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def346]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:140:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:112:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:117:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:140:17: danger: write of ‘(long unsigned int)(*list.n_icons + 16) * 16’ bytes at offset ‘0’ exceeds the buffer
#  138|         list->n_icons++;
#  139|       }
#  140|->   list->icons = realloc (list->icons, 
#  141|   			   list->n_icons * sizeof (XdgIcon));
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def347]
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:146:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:112:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:117:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:140:26: release_memory: using NULL here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:145:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:146:5: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:146:12: release_memory: using NULL here
glib-2.87.0/gio/xdgmime/xdgmimeicon.c:146:5: danger: argument 1 (‘*list.icons’) NULL where non-null expected
#  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): [#def348]
glib-2.87.0/gio/xdgmime/xdgmimeint.c:153:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
glib-2.87.0/gio/xdgmime/xdgmimeint.c:147:9: acquire_memory: this call could return NULL
glib-2.87.0/gio/xdgmime/xdgmimeint.c:151:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeint.c:153:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeint.c:153:7: danger: ‘out + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def349]
glib-2.87.0/gio/xdgmime/xdgmimeint.c:156:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
glib-2.87.0/gio/xdgmime/xdgmimeint.c:147:9: acquire_memory: this call could return NULL
glib-2.87.0/gio/xdgmime/xdgmimeint.c:151:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeint.c:156:6: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeint.c:156:3: danger: ‘out + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  154|         p = _xdg_utf8_next_char (p); 
#  155|       }
#  156|->   out[i] = 0;
#  157|     *len = i;
#  158|    

Error: CPPCHECK_WARNING (CWE-401): [#def350]
glib-2.87.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: CPPCHECK_WARNING (CWE-476): [#def351]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:54: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   52|     list = malloc (sizeof (XdgParentList));
#   53|   
#   54|->   list->parents = NULL;
#   55|     list->n_mimes = 0;
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:54:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:52:10: acquire_memory: this call could return NULL
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:54:3: danger: ‘list’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   52|     list = malloc (sizeof (XdgParentList));
#   53|   
#   54|->   list->parents = NULL;
#   55|     list->n_mimes = 0;
#   56|   

Error: CPPCHECK_WARNING (CWE-476): [#def353]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:55: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: list
#   53|   
#   54|     list->parents = NULL;
#   55|->   list->n_mimes = 0;
#   56|   
#   57|     return list;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:141:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:120:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:125:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:127:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:130:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:134:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:136:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:139:19: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:141:23: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:141:23: danger: dereference of NULL ‘*list.parents + (long unsigned int)i * 24’
#  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): [#def355]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:153:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.parents’
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:120:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:125:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:127:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:130:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:134:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:136:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:148:10: branch_true: following ‘true’ branch (when ‘entry’ is NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:150:14: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:150:14: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:152:15: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:153:15: danger: ‘*list.parents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  151|   	    {
#  152|   	      alloc <<= 1;
#  153|-> 	      list->parents = realloc (list->parents, 
#  154|   				       alloc * sizeof (XdgMimeParents));
#  155|   	    }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def356]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:173:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*entry.parents + ((long unsigned int)*entry.n_parents + 18446744073709551615) * 8’
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:120:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:125:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:127:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:130:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:134:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:136:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:139:19: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:141:23: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:141:14: branch_true: following ‘true’ branch (when the strings are equal)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:148:10: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:148:10: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:162:12: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:162:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:164:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:165:28: acquire_memory: this call could return NULL
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:173:7: danger: ‘*entry.parents + ((long unsigned int)*entry.n_parents + 18446744073709551615) * 8’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  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): [#def357]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:177:3: warning[-Wanalyzer-malloc-leak]: leak of ‘*list.parents’
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:120:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:125:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:177:3: danger: ‘*list.parents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  175|       }
#  176|   
#  177|->   list->parents = realloc (list->parents, 
#  178|   			   list->n_mimes * sizeof (XdgMimeParents));
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:177:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:120:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:125:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:127:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:130:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:134:10: branch_false: following ‘false’ branch (when ‘sep’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:136:8: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:139:19: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:141:23: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:141:14: branch_true: following ‘true’ branch (when the strings are equal)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:148:10: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:148:10: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:162:12: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:162:10: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:164:11: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:165:28: acquire_memory: allocated here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:127:10: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:178:28: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:177:19: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/16)
#  175|       }
#  176|   
#  177|->   list->parents = realloc (list->parents, 
#  178|   			   list->n_mimes * sizeof (XdgMimeParents));
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def359]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:177:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:120:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:125:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:177:19: danger: write of ‘(long unsigned int)(*list.n_mimes + 16) * 24’ bytes at offset ‘0’ exceeds the buffer
#  175|       }
#  176|   
#  177|->   list->parents = realloc (list->parents, 
#  178|   			   list->n_mimes * sizeof (XdgMimeParents));
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def360]
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:183:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:120:6: branch_false: following ‘false’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:125:11: branch_false: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:177:28: release_memory: using NULL here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:182:6: branch_true: following ‘true’ branch...
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:183:5: branch_true: ...to here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:183:12: release_memory: using NULL here
glib-2.87.0/gio/xdgmime/xdgmimeparent.c:183:5: danger: argument 1 (‘*list.parents’) NULL where non-null expected
#  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: [#def361]
glib-2.87.0/girepository/cmph/bdz.c:70:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
#   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: [#def362]
glib-2.87.0/girepository/cmph/bdz.c:71:29: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
#   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): [#def363]
glib-2.87.0/girepository/cmph/bdz.c:75:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.first_edge’ where non-null expected
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#   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): [#def364]
glib-2.87.0/girepository/cmph/bdz.c:76:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.vert_degree’ where non-null expected
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#   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: CPPCHECK_WARNING (CWE-476): [#def365]
glib-2.87.0/girepository/cmph/bdz.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_edge
#  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-688): [#def366]
glib-2.87.0/girepository/cmph/bdz.c:166:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_edge’ where non-null expected
glib-2.87.0/girepository/cmph/bdz.c:165:35: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bdz.c:166:9: danger: argument 1 (‘marked_edge’) from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def367]
glib-2.87.0/girepository/cmph/bdz.c:169:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.vertices[0]’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  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): [#def368]
glib-2.87.0/girepository/cmph/bdz.c:176:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queue’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:295:9: call_function: inlined call to ‘bdz_alloc_queue’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  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-401): [#def369]
glib-2.87.0/girepository/cmph/bdz.c:302:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)*mph_60(D)->key_source.nkeys * 4)’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:295:9: call_function: inlined call to ‘bdz_alloc_queue’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:310:27: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz.c:302:13: danger: ‘malloc((long unsigned int)*mph_60(D)->key_source.nkeys * 4)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  300|   	// Mapping step
#  301|   	iterations = 1000;
#  302|-> 	if (mph->verbosity)
#  303|   	{
#  304|   		fprintf(stderr, "Entering mapping step for mph creation of %u keys with graph sized %u\n", bdz->m, bdz->n);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
glib-2.87.0/girepository/cmph/bdz.c:310:27: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:310:27: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz.c:310:27: danger: ‘graph3.edges’ leaks here; was allocated at [(4)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/3)
#  308|   		int ok;
#  309|   		DEBUGP("linear hash function \n");
#  310|-> 		bdz->hl = hash_state_new(bdz->hashfunc, 15);
#  311|   
#  312|   		ok = bdz_mapping(mph, &graph3, edges);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
glib-2.87.0/girepository/cmph/bdz.c:310:27: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:310:27: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz.c:310:27: danger: ‘graph3.first_edge’ leaks here; was allocated at [(4)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/3)
#  308|   		int ok;
#  309|   		DEBUGP("linear hash function \n");
#  310|-> 		bdz->hl = hash_state_new(bdz->hashfunc, 15);
#  311|   
#  312|   		ok = bdz_mapping(mph, &graph3, edges);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
glib-2.87.0/girepository/cmph/bdz.c:310:27: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:310:27: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz.c:310:27: danger: ‘graph3.vert_degree’ leaks here; was allocated at [(4)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/3)
#  308|   		int ok;
#  309|   		DEBUGP("linear hash function \n");
#  310|-> 		bdz->hl = hash_state_new(bdz->hashfunc, 15);
#  311|   
#  312|   		ok = bdz_mapping(mph, &graph3, edges);

Error: CPPCHECK_WARNING (CWE-476): [#def373]
glib-2.87.0/girepository/cmph/bdz.c:354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def374]
glib-2.87.0/girepository/cmph/bdz.c:356: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def375]
glib-2.87.0/girepository/cmph/bdz.c:358: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  356|   	bdzf->g = bdz->g;
#  357|   	bdz->g = NULL; //transfer memory ownership
#  358|-> 	bdzf->hl = bdz->hl;
#  359|   	bdz->hl = NULL; //transfer memory ownership
#  360|   	bdzf->ranktable = bdz->ranktable;

Error: CPPCHECK_WARNING (CWE-476): [#def376]
glib-2.87.0/girepository/cmph/bdz.c:360: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  358|   	bdzf->hl = bdz->hl;
#  359|   	bdz->hl = NULL; //transfer memory ownership
#  360|-> 	bdzf->ranktable = bdz->ranktable;
#  361|   	bdz->ranktable = NULL; //transfer memory ownership
#  362|   	bdzf->ranktablesize = bdz->ranktablesize;

Error: CPPCHECK_WARNING (CWE-476): [#def377]
glib-2.87.0/girepository/cmph/bdz.c:362: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  360|   	bdzf->ranktable = bdz->ranktable;
#  361|   	bdz->ranktable = NULL; //transfer memory ownership
#  362|-> 	bdzf->ranktablesize = bdz->ranktablesize;
#  363|   	bdzf->k = bdz->k;
#  364|   	bdzf->b = bdz->b;

Error: CPPCHECK_WARNING (CWE-476): [#def378]
glib-2.87.0/girepository/cmph/bdz.c:363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  361|   	bdz->ranktable = NULL; //transfer memory ownership
#  362|   	bdzf->ranktablesize = bdz->ranktablesize;
#  363|-> 	bdzf->k = bdz->k;
#  364|   	bdzf->b = bdz->b;
#  365|   	bdzf->n = bdz->n;

Error: CPPCHECK_WARNING (CWE-476): [#def379]
glib-2.87.0/girepository/cmph/bdz.c:364: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  362|   	bdzf->ranktablesize = bdz->ranktablesize;
#  363|   	bdzf->k = bdz->k;
#  364|-> 	bdzf->b = bdz->b;
#  365|   	bdzf->n = bdz->n;
#  366|   	bdzf->m = bdz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def380]
glib-2.87.0/girepository/cmph/bdz.c:365: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  363|   	bdzf->k = bdz->k;
#  364|   	bdzf->b = bdz->b;
#  365|-> 	bdzf->n = bdz->n;
#  366|   	bdzf->m = bdz->m;
#  367|   	bdzf->r = bdz->r;

Error: CPPCHECK_WARNING (CWE-476): [#def381]
glib-2.87.0/girepository/cmph/bdz.c:366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  364|   	bdzf->b = bdz->b;
#  365|   	bdzf->n = bdz->n;
#  366|-> 	bdzf->m = bdz->m;
#  367|   	bdzf->r = bdz->r;
#  368|   	mphf->data = bdzf;

Error: CPPCHECK_WARNING (CWE-476): [#def382]
glib-2.87.0/girepository/cmph/bdz.c:367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  365|   	bdzf->n = bdz->n;
#  366|   	bdzf->m = bdz->m;
#  367|-> 	bdzf->r = bdz->r;
#  368|   	mphf->data = bdzf;
#  369|   	mphf->size = bdz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def383]
glib-2.87.0/girepository/cmph/bdz.c:368: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  366|   	bdzf->m = bdz->m;
#  367|   	bdzf->r = bdz->r;
#  368|-> 	mphf->data = bdzf;
#  369|   	mphf->size = bdz->m;
#  370|   

Error: CPPCHECK_WARNING (CWE-476): [#def384]
glib-2.87.0/girepository/cmph/bdz.c:369: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  367|   	bdzf->r = bdz->r;
#  368|   	mphf->data = bdzf;
#  369|-> 	mphf->size = bdz->m;
#  370|   
#  371|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
glib-2.87.0/girepository/cmph/bdz.c:396:9: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  394|   	bdz_config_data_t *bdz = (bdz_config_data_t *)mph->data;
#  395|   	bdz_init_graph3(graph3, bdz->m, bdz->n);
#  396|-> 	mph->key_source->rewind(mph->key_source->data);
#  397|   	for (e = 0; e < mph->key_source->nkeys; ++e)
#  398|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
glib-2.87.0/girepository/cmph/bdz.c:396:9: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  394|   	bdz_config_data_t *bdz = (bdz_config_data_t *)mph->data;
#  395|   	bdz_init_graph3(graph3, bdz->m, bdz->n);
#  396|-> 	mph->key_source->rewind(mph->key_source->data);
#  397|   	for (e = 0; e < mph->key_source->nkeys; ++e)
#  398|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
glib-2.87.0/girepository/cmph/bdz.c:396:9: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  394|   	bdz_config_data_t *bdz = (bdz_config_data_t *)mph->data;
#  395|   	bdz_init_graph3(graph3, bdz->m, bdz->n);
#  396|-> 	mph->key_source->rewind(mph->key_source->data);
#  397|   	for (e = 0; e < mph->key_source->nkeys; ++e)
#  398|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
glib-2.87.0/girepository/cmph/bdz.c:402:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  400|   		cmph_uint32 keylen;
#  401|   		char *key = NULL;
#  402|-> 		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  403|   		hash_vector(bdz->hl, key, keylen,hl);
#  404|   		h0 = hl[0] % bdz->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
glib-2.87.0/girepository/cmph/bdz.c:402:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  400|   		cmph_uint32 keylen;
#  401|   		char *key = NULL;
#  402|-> 		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  403|   		hash_vector(bdz->hl, key, keylen,hl);
#  404|   		h0 = hl[0] % bdz->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
glib-2.87.0/girepository/cmph/bdz.c:402:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  400|   		cmph_uint32 keylen;
#  401|   		char *key = NULL;
#  402|-> 		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  403|   		hash_vector(bdz->hl, key, keylen,hl);
#  404|   		h0 = hl[0] % bdz->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
glib-2.87.0/girepository/cmph/bdz.c:403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  401|   		char *key = NULL;
#  402|   		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  403|-> 		hash_vector(bdz->hl, key, keylen,hl);
#  404|   		h0 = hl[0] % bdz->r;
#  405|   		h1 = hl[1] % bdz->r + bdz->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
glib-2.87.0/girepository/cmph/bdz.c:403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  401|   		char *key = NULL;
#  402|   		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  403|-> 		hash_vector(bdz->hl, key, keylen,hl);
#  404|   		h0 = hl[0] % bdz->r;
#  405|   		h1 = hl[1] % bdz->r + bdz->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
glib-2.87.0/girepository/cmph/bdz.c:403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  401|   		char *key = NULL;
#  402|   		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  403|-> 		hash_vector(bdz->hl, key, keylen,hl);
#  404|   		h0 = hl[0] % bdz->r;
#  405|   		h1 = hl[1] % bdz->r + bdz->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
glib-2.87.0/girepository/cmph/bdz.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  405|   		h1 = hl[1] % bdz->r + bdz->r;
#  406|   		h2 = hl[2] % bdz->r + (bdz->r << 1);
#  407|-> 		mph->key_source->dispose(mph->key_source->data, key, keylen);
#  408|   		bdz_add_edge(graph3,h0,h1,h2);
#  409|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
glib-2.87.0/girepository/cmph/bdz.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  405|   		h1 = hl[1] % bdz->r + bdz->r;
#  406|   		h2 = hl[2] % bdz->r + (bdz->r << 1);
#  407|-> 		mph->key_source->dispose(mph->key_source->data, key, keylen);
#  408|   		bdz_add_edge(graph3,h0,h1,h2);
#  409|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
glib-2.87.0/girepository/cmph/bdz.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
glib-2.87.0/girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  405|   		h1 = hl[1] % bdz->r + bdz->r;
#  406|   		h2 = hl[2] % bdz->r + (bdz->r << 1);
#  407|-> 		mph->key_source->dispose(mph->key_source->data, key, keylen);
#  408|   		bdz_add_edge(graph3,h0,h1,h2);
#  409|   	}

Error: GCC_ANALYZER_WARNING: [#def397]
glib-2.87.0/girepository/cmph/bdz.c:422:32: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  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: CPPCHECK_WARNING (CWE-476): [#def398]
glib-2.87.0/girepository/cmph/bdz.c:423: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_vertices
#  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): [#def399]
glib-2.87.0/girepository/cmph/bdz.c:423:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_vertices’ where non-null expected
glib-2.87.0/girepository/cmph/bdz.c:420:39: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bdz.c:423:9: danger: argument 1 (‘marked_vertices’) from [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def400]
glib-2.87.0/girepository/cmph/bdz.c:424:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*bdz.g’ where non-null expected
glib-2.87.0/girepository/cmph/bdz.c:422:32: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bdz.c:424:9: danger: argument 1 (‘*bdz.g’) from [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def401]
glib-2.87.0/girepository/cmph/bdz.c:468:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bdz.ranktable’
glib-2.87.0/girepository/cmph/bdz.c:466:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bdz.c:468:9: danger: ‘calloc((long unsigned int)*bdz.ranktablesize, 4)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def402]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def403]
glib-2.87.0/girepository/cmph/bdz.c:544: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  546|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def404]
glib-2.87.0/girepository/cmph/bdz.c:545: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  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);
#  546|   	free(buf);
#  547|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
glib-2.87.0/girepository/cmph/bdz.c:545:19: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/bdz.c:543:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/bdz.c:545:19: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/bdz.c:545:19: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  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);
#  546|   	free(buf);
#  547|   	

Error: CPPCHECK_WARNING (CWE-476): [#def406]
glib-2.87.0/girepository/cmph/bdz.c:553: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  551|   	nbytes = fread(&(bdz->m), sizeof(cmph_uint32), (size_t)1, f);	
#  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);

Error: CPPCHECK_WARNING (CWE-476): [#def407]
glib-2.87.0/girepository/cmph/bdz.c:554: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  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: [#def408]
glib-2.87.0/girepository/cmph/bdz.c:554:32: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  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: CPPCHECK_WARNING (CWE-476): [#def409]
glib-2.87.0/girepository/cmph/bdz.c:555: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  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|   
#  557|   	nbytes = fread(&(bdz->k), sizeof(cmph_uint32), (size_t)1, f);

Error: CPPCHECK_WARNING (CWE-476): [#def410]
glib-2.87.0/girepository/cmph/bdz.c:561: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  559|   	nbytes = fread(&(bdz->ranktablesize), sizeof(cmph_uint32), (size_t)1, f);
#  560|   
#  561|-> 	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  562|   	nbytes = fread(bdz->ranktable, sizeof(cmph_uint32)*(bdz->ranktablesize), (size_t)1, f);
#  563|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def411]
glib-2.87.0/girepository/cmph/bdz.c:562: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  560|   
#  561|   	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  562|-> 	nbytes = fread(bdz->ranktable, sizeof(cmph_uint32)*(bdz->ranktablesize), (size_t)1, f);
#  563|   	if (nbytes == 0 && ferror(f)) {
#  564|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: GCC_ANALYZER_WARNING: [#def412]
glib-2.87.0/girepository/cmph/bdz_ph.c:57:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
#   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: [#def413]
glib-2.87.0/girepository/cmph/bdz_ph.c:58:29: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
#   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): [#def414]
glib-2.87.0/girepository/cmph/bdz_ph.c:62:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.first_edge’ where non-null expected
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#   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): [#def415]
glib-2.87.0/girepository/cmph/bdz_ph.c:63:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘graph3.vert_degree’ where non-null expected
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#   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: CPPCHECK_WARNING (CWE-476): [#def416]
glib-2.87.0/girepository/cmph/bdz_ph.c:153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_edge
#  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-688): [#def417]
glib-2.87.0/girepository/cmph/bdz_ph.c:153:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_edge’ where non-null expected
glib-2.87.0/girepository/cmph/bdz_ph.c:152:35: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bdz_ph.c:153:9: danger: argument 1 (‘marked_edge’) from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def418]
glib-2.87.0/girepository/cmph/bdz_ph.c:156:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.vertices[0]’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  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): [#def419]
glib-2.87.0/girepository/cmph/bdz_ph.c:163:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queue’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:262:9: call_function: inlined call to ‘bdz_ph_alloc_queue’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  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-401): [#def420]
glib-2.87.0/girepository/cmph/bdz_ph.c:269:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)*mph_46(D)->key_source.nkeys * 4)’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:262:9: call_function: inlined call to ‘bdz_ph_alloc_queue’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz_ph.c:269:13: danger: ‘malloc((long unsigned int)*mph_46(D)->key_source.nkeys * 4)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  267|   	// Mapping step
#  268|   	iterations = 100;
#  269|-> 	if (mph->verbosity)
#  270|   	{
#  271|   		fprintf(stderr, "Entering mapping step for mph creation of %u keys with graph sized %u\n", bdz_ph->m, bdz_ph->n);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: danger: ‘graph3.edges’ leaks here; was allocated at [(4)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/3)
#  275|   		int ok;
#  276|   		DEBUGP("linear hash function \n");
#  277|-> 		bdz_ph->hl = hash_state_new(bdz_ph->hashfunc, 15);
#  278|   
#  279|   		ok = bdz_ph_mapping(mph, &graph3, edges);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: danger: ‘graph3.first_edge’ leaks here; was allocated at [(4)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/3)
#  275|   		int ok;
#  276|   		DEBUGP("linear hash function \n");
#  277|-> 		bdz_ph->hl = hash_state_new(bdz_ph->hashfunc, 15);
#  278|   
#  279|   		ok = bdz_ph_mapping(mph, &graph3, edges);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/bdz_ph.c:277:30: danger: ‘graph3.vert_degree’ leaks here; was allocated at [(4)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/3)
#  275|   		int ok;
#  276|   		DEBUGP("linear hash function \n");
#  277|-> 		bdz_ph->hl = hash_state_new(bdz_ph->hashfunc, 15);
#  278|   
#  279|   		ok = bdz_ph_mapping(mph, &graph3, edges);

Error: CPPCHECK_WARNING (CWE-476): [#def424]
glib-2.87.0/girepository/cmph/bdz_ph.c:324: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def425]
glib-2.87.0/girepository/cmph/bdz_ph.c:326: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def426]
glib-2.87.0/girepository/cmph/bdz_ph.c:328: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  326|   	bdz_phf->g = bdz_ph->g;
#  327|   	bdz_ph->g = NULL; //transfer memory ownership
#  328|-> 	bdz_phf->hl = bdz_ph->hl;
#  329|   	bdz_ph->hl = NULL; //transfer memory ownership
#  330|   	bdz_phf->n = bdz_ph->n;

Error: CPPCHECK_WARNING (CWE-476): [#def427]
glib-2.87.0/girepository/cmph/bdz_ph.c:330: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  328|   	bdz_phf->hl = bdz_ph->hl;
#  329|   	bdz_ph->hl = NULL; //transfer memory ownership
#  330|-> 	bdz_phf->n = bdz_ph->n;
#  331|   	bdz_phf->m = bdz_ph->m;
#  332|   	bdz_phf->r = bdz_ph->r;

Error: CPPCHECK_WARNING (CWE-476): [#def428]
glib-2.87.0/girepository/cmph/bdz_ph.c:331: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  329|   	bdz_ph->hl = NULL; //transfer memory ownership
#  330|   	bdz_phf->n = bdz_ph->n;
#  331|-> 	bdz_phf->m = bdz_ph->m;
#  332|   	bdz_phf->r = bdz_ph->r;
#  333|   	mphf->data = bdz_phf;

Error: CPPCHECK_WARNING (CWE-476): [#def429]
glib-2.87.0/girepository/cmph/bdz_ph.c:332: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  330|   	bdz_phf->n = bdz_ph->n;
#  331|   	bdz_phf->m = bdz_ph->m;
#  332|-> 	bdz_phf->r = bdz_ph->r;
#  333|   	mphf->data = bdz_phf;
#  334|   	mphf->size = bdz_ph->n;

Error: CPPCHECK_WARNING (CWE-476): [#def430]
glib-2.87.0/girepository/cmph/bdz_ph.c:333: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  331|   	bdz_phf->m = bdz_ph->m;
#  332|   	bdz_phf->r = bdz_ph->r;
#  333|-> 	mphf->data = bdz_phf;
#  334|   	mphf->size = bdz_ph->n;
#  335|   

Error: CPPCHECK_WARNING (CWE-476): [#def431]
glib-2.87.0/girepository/cmph/bdz_ph.c:334: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  332|   	bdz_phf->r = bdz_ph->r;
#  333|   	mphf->data = bdz_phf;
#  334|-> 	mphf->size = bdz_ph->n;
#  335|   
#  336|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
glib-2.87.0/girepository/cmph/bdz_ph.c:361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  359|   	bdz_ph_config_data_t *bdz_ph = (bdz_ph_config_data_t *)mph->data;
#  360|   	bdz_ph_init_graph3(graph3, bdz_ph->m, bdz_ph->n);
#  361|-> 	mph->key_source->rewind(mph->key_source->data);
#  362|   	for (e = 0; e < mph->key_source->nkeys; ++e)
#  363|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
glib-2.87.0/girepository/cmph/bdz_ph.c:361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  359|   	bdz_ph_config_data_t *bdz_ph = (bdz_ph_config_data_t *)mph->data;
#  360|   	bdz_ph_init_graph3(graph3, bdz_ph->m, bdz_ph->n);
#  361|-> 	mph->key_source->rewind(mph->key_source->data);
#  362|   	for (e = 0; e < mph->key_source->nkeys; ++e)
#  363|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
glib-2.87.0/girepository/cmph/bdz_ph.c:361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  359|   	bdz_ph_config_data_t *bdz_ph = (bdz_ph_config_data_t *)mph->data;
#  360|   	bdz_ph_init_graph3(graph3, bdz_ph->m, bdz_ph->n);
#  361|-> 	mph->key_source->rewind(mph->key_source->data);
#  362|   	for (e = 0; e < mph->key_source->nkeys; ++e)
#  363|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
glib-2.87.0/girepository/cmph/bdz_ph.c:367:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  365|   		cmph_uint32 keylen;
#  366|   		char *key = NULL;
#  367|-> 		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  368|   		hash_vector(bdz_ph->hl, key, keylen, hl);
#  369|   		h0 = hl[0] % bdz_ph->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
glib-2.87.0/girepository/cmph/bdz_ph.c:367:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  365|   		cmph_uint32 keylen;
#  366|   		char *key = NULL;
#  367|-> 		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  368|   		hash_vector(bdz_ph->hl, key, keylen, hl);
#  369|   		h0 = hl[0] % bdz_ph->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
glib-2.87.0/girepository/cmph/bdz_ph.c:367:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  365|   		cmph_uint32 keylen;
#  366|   		char *key = NULL;
#  367|-> 		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  368|   		hash_vector(bdz_ph->hl, key, keylen, hl);
#  369|   		h0 = hl[0] % bdz_ph->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
glib-2.87.0/girepository/cmph/bdz_ph.c:368:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  366|   		char *key = NULL;
#  367|   		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  368|-> 		hash_vector(bdz_ph->hl, key, keylen, hl);
#  369|   		h0 = hl[0] % bdz_ph->r;
#  370|   		h1 = hl[1] % bdz_ph->r + bdz_ph->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
glib-2.87.0/girepository/cmph/bdz_ph.c:368:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  366|   		char *key = NULL;
#  367|   		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  368|-> 		hash_vector(bdz_ph->hl, key, keylen, hl);
#  369|   		h0 = hl[0] % bdz_ph->r;
#  370|   		h1 = hl[1] % bdz_ph->r + bdz_ph->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
glib-2.87.0/girepository/cmph/bdz_ph.c:368:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  366|   		char *key = NULL;
#  367|   		mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  368|-> 		hash_vector(bdz_ph->hl, key, keylen, hl);
#  369|   		h0 = hl[0] % bdz_ph->r;
#  370|   		h1 = hl[1] % bdz_ph->r + bdz_ph->r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
glib-2.87.0/girepository/cmph/bdz_ph.c:372:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.edges’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  370|   		h1 = hl[1] % bdz_ph->r + bdz_ph->r;
#  371|   		h2 = hl[2] % bdz_ph->r + (bdz_ph->r << 1);
#  372|-> 		mph->key_source->dispose(mph->key_source->data, key, keylen);
#  373|   		bdz_ph_add_edge(graph3,h0,h1,h2);
#  374|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
glib-2.87.0/girepository/cmph/bdz_ph.c:372:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.first_edge’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  370|   		h1 = hl[1] % bdz_ph->r + bdz_ph->r;
#  371|   		h2 = hl[2] % bdz_ph->r + (bdz_ph->r << 1);
#  372|-> 		mph->key_source->dispose(mph->key_source->data, key, keylen);
#  373|   		bdz_ph_add_edge(graph3,h0,h1,h2);
#  374|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
glib-2.87.0/girepository/cmph/bdz_ph.c:372:17: warning[-Wanalyzer-malloc-leak]: leak of ‘graph3.vert_degree’
glib-2.87.0/girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
glib-2.87.0/girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
glib-2.87.0/girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  370|   		h1 = hl[1] % bdz_ph->r + bdz_ph->r;
#  371|   		h2 = hl[2] % bdz_ph->r + (bdz_ph->r << 1);
#  372|-> 		mph->key_source->dispose(mph->key_source->data, key, keylen);
#  373|   		bdz_ph_add_edge(graph3,h0,h1,h2);
#  374|   	}

Error: GCC_ANALYZER_WARNING: [#def444]
glib-2.87.0/girepository/cmph/bdz_ph.c:387:35: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  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: CPPCHECK_WARNING (CWE-476): [#def445]
glib-2.87.0/girepository/cmph/bdz_ph.c:388: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_vertices
#  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 (CWE-688): [#def446]
glib-2.87.0/girepository/cmph/bdz_ph.c:388:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘marked_vertices’ where non-null expected
glib-2.87.0/girepository/cmph/bdz_ph.c:385:39: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bdz_ph.c:388:9: danger: argument 1 (‘marked_vertices’) from [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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: [#def447]
glib-2.87.0/girepository/cmph/bdz_ph.c:432:44: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  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: CPPCHECK_WARNING (CWE-476): [#def448]
glib-2.87.0/girepository/cmph/bdz_ph.c:438: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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-476): [#def449]
glib-2.87.0/girepository/cmph/bdz_ph.c:438:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_g’
glib-2.87.0/girepository/cmph/bdz_ph.c:432:44: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bdz_ph.c:435:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bdz_ph.c:437:13: branch_true: ...to here
glib-2.87.0/girepository/cmph/bdz_ph.c:438:13: danger: ‘new_g + (sizetype)idx’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def450]
glib-2.87.0/girepository/cmph/bdz_ph.c:441: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_g
#  439|               value = GETVALUE(bdz_ph->g, i);
#  440|               byte = (cmph_uint8) (byte + value*pow3_table[i%5U]);
#  441|->             new_g[idx] = byte;
#  442|           }
#  443|   	free(bdz_ph->g);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def451]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def452]
glib-2.87.0/girepository/cmph/bdz_ph.c:499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  501|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def453]
glib-2.87.0/girepository/cmph/bdz_ph.c:500: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  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);
#  501|   	free(buf);
#  502|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
glib-2.87.0/girepository/cmph/bdz_ph.c:500:22: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/bdz_ph.c:498:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/bdz_ph.c:500:22: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/bdz_ph.c:500:22: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  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);
#  501|   	free(buf);
#  502|   	

Error: CPPCHECK_WARNING (CWE-476): [#def455]
glib-2.87.0/girepository/cmph/bdz_ph.c:508: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  506|   	nbytes = fread(&(bdz_ph->m), sizeof(cmph_uint32), (size_t)1, f);	
#  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);

Error: CPPCHECK_WARNING (CWE-476): [#def456]
glib-2.87.0/girepository/cmph/bdz_ph.c:509: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  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: [#def457]
glib-2.87.0/girepository/cmph/bdz_ph.c:509:35: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  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: CPPCHECK_WARNING (CWE-476): [#def458]
glib-2.87.0/girepository/cmph/bdz_ph.c:510: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  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|   
#  512|   	if (nbytes == 0 && ferror(f)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def459]
glib-2.87.0/girepository/cmph/bitbool.h:121:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
glib-2.87.0/girepository/cmph/compressed_rank.c:37:6: enter_function: entry to ‘compressed_rank_generate’
glib-2.87.0/girepository/cmph/compressed_rank.c:50:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_rank.c:53:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:55:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:55:17: call_function: calling ‘set_bits_value’ from ‘compressed_rank_generate’
#  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): [#def460]
glib-2.87.0/girepository/cmph/bitbool.h:126:44: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
glib-2.87.0/girepository/cmph/compressed_rank.c:37:6: enter_function: entry to ‘compressed_rank_generate’
glib-2.87.0/girepository/cmph/compressed_rank.c:53:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:55:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:55:17: call_function: calling ‘set_bits_value’ from ‘compressed_rank_generate’
#  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): [#def461]
glib-2.87.0/girepository/cmph/bitbool.h:127:43: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
glib-2.87.0/girepository/cmph/compressed_rank.c:37:6: enter_function: entry to ‘compressed_rank_generate’
glib-2.87.0/girepository/cmph/compressed_rank.c:53:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:55:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:55:17: call_function: calling ‘set_bits_value’ from ‘compressed_rank_generate’
#  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-126): [#def462]
glib-2.87.0/girepository/cmph/bitbool.h:154:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
glib-2.87.0/girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:58:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:60:32: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:69:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:71:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  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-476): [#def463]
glib-2.87.0/girepository/cmph/bitbool.h:154:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
glib-2.87.0/girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:69:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:73:52: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:73:43: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  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-457): [#def464]
glib-2.87.0/girepository/cmph/bitbool.h:154:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
glib-2.87.0/girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:58:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:60:32: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:69:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:71:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  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): [#def465]
glib-2.87.0/girepository/cmph/bitbool.h:158:44: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
glib-2.87.0/girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_false: following ‘false’ branch (when ‘i >= n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:69:12: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  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): [#def466]
glib-2.87.0/girepository/cmph/bitbool.h:159:43: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
glib-2.87.0/girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_false: following ‘false’ branch (when ‘i >= n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:69:12: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  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-476): [#def467]
glib-2.87.0/girepository/cmph/bmz.c:79:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bmz.hashes + (long unsigned int)i * 8’
glib-2.87.0/girepository/cmph/bmz.c:78:40: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bmz.c:79:20: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/girepository/cmph/bmz.c:79:32: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:79:32: danger: ‘*bmz.hashes + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   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: CPPCHECK_WARNING (CWE-476): [#def468]
glib-2.87.0/girepository/cmph/bmz.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visited
#  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: CPPCHECK_WARNING (CWE-476): [#def469]
glib-2.87.0/girepository/cmph/bmz.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: used_edges
#  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-476): [#def470]
glib-2.87.0/girepository/cmph/bmz.c:174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  172|   	}
#  173|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  174|-> 	mphf->algo = mph->algo;
#  175|   	bmzf = (bmz_data_t *)malloc(sizeof(bmz_data_t));
#  176|   	bmzf->g = bmz->g;

Error: CPPCHECK_WARNING (CWE-476): [#def471]
glib-2.87.0/girepository/cmph/bmz.c:176: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  174|   	mphf->algo = mph->algo;
#  175|   	bmzf = (bmz_data_t *)malloc(sizeof(bmz_data_t));
#  176|-> 	bmzf->g = bmz->g;
#  177|   	bmz->g = NULL; //transfer memory ownership
#  178|   	bmzf->hashes = bmz->hashes;

Error: CPPCHECK_WARNING (CWE-476): [#def472]
glib-2.87.0/girepository/cmph/bmz.c:178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  176|   	bmzf->g = bmz->g;
#  177|   	bmz->g = NULL; //transfer memory ownership
#  178|-> 	bmzf->hashes = bmz->hashes;
#  179|   	bmz->hashes = NULL; //transfer memory ownership
#  180|   	bmzf->n = bmz->n;

Error: CPPCHECK_WARNING (CWE-476): [#def473]
glib-2.87.0/girepository/cmph/bmz.c:180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  178|   	bmzf->hashes = bmz->hashes;
#  179|   	bmz->hashes = NULL; //transfer memory ownership
#  180|-> 	bmzf->n = bmz->n;
#  181|   	bmzf->m = bmz->m;
#  182|   	mphf->data = bmzf;

Error: CPPCHECK_WARNING (CWE-476): [#def474]
glib-2.87.0/girepository/cmph/bmz.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  179|   	bmz->hashes = NULL; //transfer memory ownership
#  180|   	bmzf->n = bmz->n;
#  181|-> 	bmzf->m = bmz->m;
#  182|   	mphf->data = bmzf;
#  183|   	mphf->size = bmz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def475]
glib-2.87.0/girepository/cmph/bmz.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  180|   	bmzf->n = bmz->n;
#  181|   	bmzf->m = bmz->m;
#  182|-> 	mphf->data = bmzf;
#  183|   	mphf->size = bmz->m;
#  184|   

Error: CPPCHECK_WARNING (CWE-476): [#def476]
glib-2.87.0/girepository/cmph/bmz.c:183: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  181|   	bmzf->m = bmz->m;
#  182|   	mphf->data = bmzf;
#  183|-> 	mphf->size = bmz->m;
#  184|   
#  185|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
glib-2.87.0/girepository/cmph/bmz.c:298:47: warning[-Wanalyzer-malloc-leak]: leak of ‘unused_g_values’
glib-2.87.0/girepository/cmph/bmz.c:277:15: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:279:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:300:47: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:302:53: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:304:59: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz.c:310:61: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:317:43: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:319:51: branch_true: following ‘true’ branch (when ‘unused_g_values_capacity == nunused_g_values’)...
glib-2.87.0/girepository/cmph/bmz.c:321:115: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:327:44: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:327:72: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:298:47: throw: if ‘graph_neighbors_it’ throws an exception...
glib-2.87.0/girepository/cmph/bmz.c:298:47: danger: ‘unused_g_values’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  296|   						next_g_index = UINT_MAX;
#  297|   					}
#  298|-> 					it1 = graph_neighbors_it(bmz->graph, u);
#  299|   					collision = 0;
#  300|   					while((lav = graph_next_neighbor(bmz->graph, &it1)) != GRAPH_NO_NEIGHBOR)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
glib-2.87.0/girepository/cmph/bmz.c:300:54: warning[-Wanalyzer-malloc-leak]: leak of ‘unused_g_values’
glib-2.87.0/girepository/cmph/bmz.c:277:15: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:279:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:300:47: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:302:53: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:304:59: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz.c:310:61: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:317:43: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:319:51: branch_true: following ‘true’ branch (when ‘unused_g_values_capacity == nunused_g_values’)...
glib-2.87.0/girepository/cmph/bmz.c:321:115: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:327:44: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:327:72: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:300:54: throw: if ‘graph_next_neighbor’ throws an exception...
glib-2.87.0/girepository/cmph/bmz.c:300:54: danger: ‘unused_g_values’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  298|   					it1 = graph_neighbors_it(bmz->graph, u);
#  299|   					collision = 0;
#  300|-> 					while((lav = graph_next_neighbor(bmz->graph, &it1)) != GRAPH_NO_NEIGHBOR)
#  301|   					{
#  302|     					        if (graph_node_is_critical(bmz->graph, lav) && GETBIT(visited,lav))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
glib-2.87.0/girepository/cmph/bmz.c:302:53: warning[-Wanalyzer-malloc-leak]: leak of ‘unused_g_values’
glib-2.87.0/girepository/cmph/bmz.c:277:15: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:279:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:304:59: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz.c:310:61: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:317:43: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:319:51: branch_true: following ‘true’ branch (when ‘unused_g_values_capacity == nunused_g_values’)...
glib-2.87.0/girepository/cmph/bmz.c:321:115: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:327:44: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:327:72: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:300:47: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:302:53: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:302:53: throw: if ‘graph_node_is_critical’ throws an exception...
glib-2.87.0/girepository/cmph/bmz.c:302:53: danger: ‘unused_g_values’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  300|   					while((lav = graph_next_neighbor(bmz->graph, &it1)) != GRAPH_NO_NEIGHBOR)
#  301|   					{
#  302|->   					        if (graph_node_is_critical(bmz->graph, lav) && GETBIT(visited,lav))
#  303|   						{
#  304|      						        if(next_g + bmz->g[lav] >= bmz->m)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
glib-2.87.0/girepository/cmph/bmz.c:306:65: warning[-Wanalyzer-malloc-leak]: leak of ‘unused_g_values’
glib-2.87.0/girepository/cmph/bmz.c:277:15: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:279:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:304:59: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz.c:310:61: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:317:43: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:319:51: branch_true: following ‘true’ branch (when ‘unused_g_values_capacity == nunused_g_values’)...
glib-2.87.0/girepository/cmph/bmz.c:321:115: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:327:44: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:327:72: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:300:47: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:302:53: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:306:65: throw: if ‘vqueue_destroy’ throws an exception...
glib-2.87.0/girepository/cmph/bmz.c:306:65: danger: ‘unused_g_values’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  304|      						        if(next_g + bmz->g[lav] >= bmz->m)
#  305|   							{
#  306|-> 							        vqueue_destroy(q);
#  307|   								free(unused_g_values);
#  308|   								return 1; // restart mapping step.

Error: CPPCHECK_WARNING (CWE-401): [#def481]
glib-2.87.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): [#def482]
glib-2.87.0/girepository/cmph/bmz.c:324:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unused_g_values’
glib-2.87.0/girepository/cmph/bmz.c:277:15: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:279:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz.c:295:58: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:300:47: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:302:53: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:304:59: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz.c:310:61: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:317:43: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:319:51: branch_true: following ‘true’ branch (when ‘unused_g_values_capacity == nunused_g_values’)...
glib-2.87.0/girepository/cmph/bmz.c:321:115: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:324:49: danger: dereference of NULL ‘unused_g_values + (long unsigned int)nunused_g_values * 4’
#  322|   						        unused_g_values_capacity += BUFSIZ;  							
#  323|   						} 
#  324|-> 						unused_g_values[nunused_g_values++] = next_g;							
#  325|   
#  326|   					}

Error: CPPCHECK_WARNING (CWE-476): [#def483]
glib-2.87.0/girepository/cmph/bmz.c:500: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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-476): [#def484]
glib-2.87.0/girepository/cmph/bmz.c:500:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmz’
glib-2.87.0/girepository/cmph/bmz.c:495:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bmz.c:500:9: danger: ‘bmz’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def485]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def486]
glib-2.87.0/girepository/cmph/bmz.c:501: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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);
#  503|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-823): [#def487]
glib-2.87.0/girepository/cmph/bmz.c:501:9: 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): [#def488]
glib-2.87.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
glib-2.87.0/girepository/cmph/bmz.c:503:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:506:26: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:508:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  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: CPPCHECK_WARNING (CWE-476): [#def489]
glib-2.87.0/girepository/cmph/bmz.c:509: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  511|   		bmz->hashes[i] = state;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
glib-2.87.0/girepository/cmph/bmz.c:510:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/bmz.c:503:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz.c:506:26: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz.c:508:31: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/bmz.c:510:25: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/bmz.c:510:25: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  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);
#  511|   		bmz->hashes[i] = state;
#  512|   		free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def491]
glib-2.87.0/girepository/cmph/bmz.c:511: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  509|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  510|   		state = hash_state_load(buf, buflen);
#  511|-> 		bmz->hashes[i] = state;
#  512|   		free(buf);
#  513|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
glib-2.87.0/girepository/cmph/bmz.c:516:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/girepository/cmph/bmz.c:500:40: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/bmz.c:503:21: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz.c:516:24: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz.c:516:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def493]
glib-2.87.0/girepository/cmph/bmz.c:519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  517|   	nbytes = fread(&(bmz->m), sizeof(cmph_uint32), (size_t)1, f);	
#  518|   
#  519|-> 	bmz->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*bmz->n);
#  520|   	nbytes = fread(bmz->g, bmz->n*sizeof(cmph_uint32), (size_t)1, f);
#  521|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def494]
glib-2.87.0/girepository/cmph/bmz.c:520: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  518|   
#  519|   	bmz->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*bmz->n);
#  520|-> 	nbytes = fread(bmz->g, bmz->n*sizeof(cmph_uint32), (size_t)1, f);
#  521|   	if (nbytes == 0 && ferror(f)) {
#  522|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def495]
glib-2.87.0/girepository/cmph/bmz8.c:83:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bmz8.hashes + (long unsigned int)i * 8’
glib-2.87.0/girepository/cmph/bmz8.c:69:12: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:74:12: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:82:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bmz8.c:83:20: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/girepository/cmph/bmz8.c:83:32: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:83:32: danger: ‘*bmz8.hashes + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   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: CPPCHECK_WARNING (CWE-476): [#def496]
glib-2.87.0/girepository/cmph/bmz8.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visited
#  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: CPPCHECK_WARNING (CWE-476): [#def497]
glib-2.87.0/girepository/cmph/bmz8.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: used_edges
#  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-476): [#def498]
glib-2.87.0/girepository/cmph/bmz8.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  180|   	}
#  181|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  182|-> 	mphf->algo = mph->algo;
#  183|   	bmz8f = (bmz8_data_t *)malloc(sizeof(bmz8_data_t));
#  184|   	bmz8f->g = bmz8->g;

Error: CPPCHECK_WARNING (CWE-476): [#def499]
glib-2.87.0/girepository/cmph/bmz8.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  182|   	mphf->algo = mph->algo;
#  183|   	bmz8f = (bmz8_data_t *)malloc(sizeof(bmz8_data_t));
#  184|-> 	bmz8f->g = bmz8->g;
#  185|   	bmz8->g = NULL; //transfer memory ownership
#  186|   	bmz8f->hashes = bmz8->hashes;

Error: CPPCHECK_WARNING (CWE-476): [#def500]
glib-2.87.0/girepository/cmph/bmz8.c:186: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  184|   	bmz8f->g = bmz8->g;
#  185|   	bmz8->g = NULL; //transfer memory ownership
#  186|-> 	bmz8f->hashes = bmz8->hashes;
#  187|   	bmz8->hashes = NULL; //transfer memory ownership
#  188|   	bmz8f->n = bmz8->n;

Error: CPPCHECK_WARNING (CWE-476): [#def501]
glib-2.87.0/girepository/cmph/bmz8.c:188: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  186|   	bmz8f->hashes = bmz8->hashes;
#  187|   	bmz8->hashes = NULL; //transfer memory ownership
#  188|-> 	bmz8f->n = bmz8->n;
#  189|   	bmz8f->m = bmz8->m;
#  190|   	mphf->data = bmz8f;

Error: CPPCHECK_WARNING (CWE-476): [#def502]
glib-2.87.0/girepository/cmph/bmz8.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  187|   	bmz8->hashes = NULL; //transfer memory ownership
#  188|   	bmz8f->n = bmz8->n;
#  189|-> 	bmz8f->m = bmz8->m;
#  190|   	mphf->data = bmz8f;
#  191|   	mphf->size = bmz8->m;

Error: CPPCHECK_WARNING (CWE-476): [#def503]
glib-2.87.0/girepository/cmph/bmz8.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  188|   	bmz8f->n = bmz8->n;
#  189|   	bmz8f->m = bmz8->m;
#  190|-> 	mphf->data = bmz8f;
#  191|   	mphf->size = bmz8->m;
#  192|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def504]
glib-2.87.0/girepository/cmph/bmz8.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  189|   	bmz8f->m = bmz8->m;
#  190|   	mphf->data = bmz8f;
#  191|-> 	mphf->size = bmz8->m;
#  192|   	DEBUGP("Successfully generated minimal perfect hash\n");
#  193|   	if (mph->verbosity)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
glib-2.87.0/girepository/cmph/bmz8.c:307:47: warning[-Wanalyzer-malloc-leak]: leak of ‘unused_g_values’
glib-2.87.0/girepository/cmph/bmz8.c:286:15: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:288:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:296:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz8.c:298:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:298:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz8.c:304:71: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:309:47: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:311:53: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:313:59: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:319:61: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:326:43: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:328:51: branch_true: following ‘true’ branch (when ‘nunused_g_values == 0’)...
glib-2.87.0/girepository/cmph/bmz8.c:330:88: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:336:44: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:336:72: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:296:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz8.c:298:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:298:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz8.c:304:71: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:307:47: throw: if ‘graph_neighbors_it’ throws an exception...
glib-2.87.0/girepository/cmph/bmz8.c:307:47: danger: ‘unused_g_values’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  305|   						next_g_index = 255;//UINT_MAX;
#  306|   					}
#  307|-> 					it1 = graph_neighbors_it(bmz8->graph, u);
#  308|   					collision = 0;
#  309|   					while((lav = graph_next_neighbor(bmz8->graph, &it1)) != GRAPH_NO_NEIGHBOR)

Error: CPPCHECK_WARNING (CWE-401): [#def506]
glib-2.87.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): [#def507]
glib-2.87.0/girepository/cmph/bmz8.c:333:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unused_g_values’
glib-2.87.0/girepository/cmph/bmz8.c:286:15: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:288:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:296:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
glib-2.87.0/girepository/cmph/bmz8.c:298:44: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:298:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
glib-2.87.0/girepository/cmph/bmz8.c:304:71: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:309:47: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:311:53: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:313:59: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:319:61: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:326:43: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:328:51: branch_true: following ‘true’ branch (when ‘nunused_g_values == 0’)...
glib-2.87.0/girepository/cmph/bmz8.c:330:88: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:333:49: danger: dereference of NULL ‘unused_g_values + (sizetype)nunused_g_values’
#  331|   						        unused_g_values_capacity += (cmph_uint8)BUFSIZ;  							
#  332|   						} 
#  333|-> 						unused_g_values[nunused_g_values++] = next_g;							
#  334|   
#  335|   					}

Error: CPPCHECK_WARNING (CWE-476): [#def508]
glib-2.87.0/girepository/cmph/bmz8.c:510: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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-476): [#def509]
glib-2.87.0/girepository/cmph/bmz8.c:510:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmz8’
glib-2.87.0/girepository/cmph/bmz8.c:505:44: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/bmz8.c:510:9: danger: ‘bmz8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def510]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def511]
glib-2.87.0/girepository/cmph/bmz8.c:511: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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);
#  513|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-823): [#def512]
glib-2.87.0/girepository/cmph/bmz8.c:511:9: 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): [#def513]
glib-2.87.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
glib-2.87.0/girepository/cmph/bmz8.c:513:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:516:26: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:518:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  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: CPPCHECK_WARNING (CWE-476): [#def514]
glib-2.87.0/girepository/cmph/bmz8.c:519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  521|   		bmz8->hashes[i] = state;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
glib-2.87.0/girepository/cmph/bmz8.c:520:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/bmz8.c:513:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:516:26: branch_true: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:518:31: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/bmz8.c:520:25: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/bmz8.c:520:25: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  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);
#  521|   		bmz8->hashes[i] = state;
#  522|   		free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def516]
glib-2.87.0/girepository/cmph/bmz8.c:521: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  519|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  520|   		state = hash_state_load(buf, buflen);
#  521|-> 		bmz8->hashes[i] = state;
#  522|   		free(buf);
#  523|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
glib-2.87.0/girepository/cmph/bmz8.c:526:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/girepository/cmph/bmz8.c:510:41: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/bmz8.c:513:21: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/bmz8.c:526:24: branch_false: ...to here
glib-2.87.0/girepository/cmph/bmz8.c:526:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def518]
glib-2.87.0/girepository/cmph/bmz8.c:529: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  527|   	nbytes = fread(&(bmz8->m), sizeof(cmph_uint8), (size_t)1, f);	
#  528|   
#  529|-> 	bmz8->g = (cmph_uint8 *)malloc(sizeof(cmph_uint8)*bmz8->n);
#  530|   	nbytes = fread(bmz8->g, bmz8->n*sizeof(cmph_uint8), (size_t)1, f);
#  531|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def519]
glib-2.87.0/girepository/cmph/bmz8.c:530: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  528|   
#  529|   	bmz8->g = (cmph_uint8 *)malloc(sizeof(cmph_uint8)*bmz8->n);
#  530|-> 	nbytes = fread(bmz8->g, bmz8->n*sizeof(cmph_uint8), (size_t)1, f);
#  531|   	if (nbytes == 0 && ferror(f)) {
#  532|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def520]
glib-2.87.0/girepository/cmph/brz.c:34: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   32|   	brz_config_data_t *brz = NULL; 	
#   33|   	brz = (brz_config_data_t *)malloc(sizeof(brz_config_data_t));
#   34|-> 	brz->algo = CMPH_FCH;
#   35|   	brz->b = 128;
#   36|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;

Error: CPPCHECK_WARNING (CWE-476): [#def521]
glib-2.87.0/girepository/cmph/brz.c:35: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   33|   	brz = (brz_config_data_t *)malloc(sizeof(brz_config_data_t));
#   34|   	brz->algo = CMPH_FCH;
#   35|-> 	brz->b = 128;
#   36|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   37|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;

Error: CPPCHECK_WARNING (CWE-476): [#def522]
glib-2.87.0/girepository/cmph/brz.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   34|   	brz->algo = CMPH_FCH;
#   35|   	brz->b = 128;
#   36|-> 	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   37|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   38|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;

Error: CPPCHECK_WARNING (CWE-476): [#def523]
glib-2.87.0/girepository/cmph/brz.c:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   35|   	brz->b = 128;
#   36|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   37|-> 	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   38|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   39|   	brz->size   = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def524]
glib-2.87.0/girepository/cmph/brz.c:38: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   36|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   37|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   38|-> 	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   39|   	brz->size   = NULL;
#   40|   	brz->offset = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def525]
glib-2.87.0/girepository/cmph/brz.c:39: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   37|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   38|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   39|-> 	brz->size   = NULL;
#   40|   	brz->offset = NULL;
#   41|   	brz->g      = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def526]
glib-2.87.0/girepository/cmph/brz.c:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   38|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   39|   	brz->size   = NULL;
#   40|-> 	brz->offset = NULL;
#   41|   	brz->g      = NULL;
#   42|   	brz->h1 = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def527]
glib-2.87.0/girepository/cmph/brz.c:41: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   39|   	brz->size   = NULL;
#   40|   	brz->offset = NULL;
#   41|-> 	brz->g      = NULL;
#   42|   	brz->h1 = NULL;
#   43|   	brz->h2 = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def528]
glib-2.87.0/girepository/cmph/brz.c:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   40|   	brz->offset = NULL;
#   41|   	brz->g      = NULL;
#   42|-> 	brz->h1 = NULL;
#   43|   	brz->h2 = NULL;
#   44|   	brz->h0 = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def529]
glib-2.87.0/girepository/cmph/brz.c:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   41|   	brz->g      = NULL;
#   42|   	brz->h1 = NULL;
#   43|-> 	brz->h2 = NULL;
#   44|   	brz->h0 = NULL;
#   45|   	brz->memory_availability = 1024*1024;

Error: CPPCHECK_WARNING (CWE-476): [#def530]
glib-2.87.0/girepository/cmph/brz.c:44: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   42|   	brz->h1 = NULL;
#   43|   	brz->h2 = NULL;
#   44|-> 	brz->h0 = NULL;
#   45|   	brz->memory_availability = 1024*1024;
#   46|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));

Error: CPPCHECK_WARNING (CWE-476): [#def531]
glib-2.87.0/girepository/cmph/brz.c:45: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   43|   	brz->h2 = NULL;
#   44|   	brz->h0 = NULL;
#   45|-> 	brz->memory_availability = 1024*1024;
#   46|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   47|   	brz->mphf_fd = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def532]
glib-2.87.0/girepository/cmph/brz.c:46: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   44|   	brz->h0 = NULL;
#   45|   	brz->memory_availability = 1024*1024;
#   46|-> 	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   47|   	brz->mphf_fd = NULL;
#   48|   	strcpy((char *)(brz->tmp_dir), "/var/tmp/"); 

Error: CPPCHECK_WARNING (CWE-476): [#def533]
glib-2.87.0/girepository/cmph/brz.c:47: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   45|   	brz->memory_availability = 1024*1024;
#   46|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   47|-> 	brz->mphf_fd = NULL;
#   48|   	strcpy((char *)(brz->tmp_dir), "/var/tmp/"); 
#   49|   	assert(brz);

Error: CPPCHECK_WARNING (CWE-476): [#def534]
glib-2.87.0/girepository/cmph/brz.c:48: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   46|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   47|   	brz->mphf_fd = NULL;
#   48|-> 	strcpy((char *)(brz->tmp_dir), "/var/tmp/"); 
#   49|   	assert(brz);
#   50|   	return brz;

Error: CPPCHECK_WARNING (CWE-476): [#def535]
glib-2.87.0/girepository/cmph/brz.c:197: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  195|   	// Generating a mphf
#  196|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  197|-> 	mphf->algo = mph->algo;
#  198|   	brzf = (brz_data_t *)malloc(sizeof(brz_data_t));
#  199|   	brzf->g = brz->g;

Error: CPPCHECK_WARNING (CWE-476): [#def536]
glib-2.87.0/girepository/cmph/brz.c:199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  197|   	mphf->algo = mph->algo;
#  198|   	brzf = (brz_data_t *)malloc(sizeof(brz_data_t));
#  199|-> 	brzf->g = brz->g;
#  200|   	brz->g = NULL; //transfer memory ownership
#  201|   	brzf->h1 = brz->h1;

Error: CPPCHECK_WARNING (CWE-476): [#def537]
glib-2.87.0/girepository/cmph/brz.c:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  199|   	brzf->g = brz->g;
#  200|   	brz->g = NULL; //transfer memory ownership
#  201|-> 	brzf->h1 = brz->h1;
#  202|   	brz->h1 = NULL; //transfer memory ownership
#  203|   	brzf->h2 = brz->h2;

Error: CPPCHECK_WARNING (CWE-476): [#def538]
glib-2.87.0/girepository/cmph/brz.c:203: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  201|   	brzf->h1 = brz->h1;
#  202|   	brz->h1 = NULL; //transfer memory ownership
#  203|-> 	brzf->h2 = brz->h2;
#  204|   	brz->h2 = NULL; //transfer memory ownership
#  205|   	brzf->h0 = brz->h0;

Error: CPPCHECK_WARNING (CWE-476): [#def539]
glib-2.87.0/girepository/cmph/brz.c:205: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  203|   	brzf->h2 = brz->h2;
#  204|   	brz->h2 = NULL; //transfer memory ownership
#  205|-> 	brzf->h0 = brz->h0;
#  206|   	brz->h0 = NULL; //transfer memory ownership
#  207|   	brzf->size = brz->size;

Error: CPPCHECK_WARNING (CWE-476): [#def540]
glib-2.87.0/girepository/cmph/brz.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  205|   	brzf->h0 = brz->h0;
#  206|   	brz->h0 = NULL; //transfer memory ownership
#  207|-> 	brzf->size = brz->size;
#  208|   	brz->size = NULL; //transfer memory ownership
#  209|   	brzf->offset = brz->offset;

Error: CPPCHECK_WARNING (CWE-476): [#def541]
glib-2.87.0/girepository/cmph/brz.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  207|   	brzf->size = brz->size;
#  208|   	brz->size = NULL; //transfer memory ownership
#  209|-> 	brzf->offset = brz->offset;
#  210|   	brz->offset = NULL; //transfer memory ownership
#  211|   	brzf->k = brz->k;

Error: CPPCHECK_WARNING (CWE-476): [#def542]
glib-2.87.0/girepository/cmph/brz.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  209|   	brzf->offset = brz->offset;
#  210|   	brz->offset = NULL; //transfer memory ownership
#  211|-> 	brzf->k = brz->k;
#  212|   	brzf->c = brz->c;
#  213|   	brzf->m = brz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def543]
glib-2.87.0/girepository/cmph/brz.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  210|   	brz->offset = NULL; //transfer memory ownership
#  211|   	brzf->k = brz->k;
#  212|-> 	brzf->c = brz->c;
#  213|   	brzf->m = brz->m;
#  214|   	brzf->algo = brz->algo;

Error: CPPCHECK_WARNING (CWE-476): [#def544]
glib-2.87.0/girepository/cmph/brz.c:213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  211|   	brzf->k = brz->k;
#  212|   	brzf->c = brz->c;
#  213|-> 	brzf->m = brz->m;
#  214|   	brzf->algo = brz->algo;
#  215|   	mphf->data = brzf;

Error: CPPCHECK_WARNING (CWE-476): [#def545]
glib-2.87.0/girepository/cmph/brz.c:214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  212|   	brzf->c = brz->c;
#  213|   	brzf->m = brz->m;
#  214|-> 	brzf->algo = brz->algo;
#  215|   	mphf->data = brzf;
#  216|   	mphf->size = brz->m;	

Error: CPPCHECK_WARNING (CWE-476): [#def546]
glib-2.87.0/girepository/cmph/brz.c:215: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  213|   	brzf->m = brz->m;
#  214|   	brzf->algo = brz->algo;
#  215|-> 	mphf->data = brzf;
#  216|   	mphf->size = brz->m;	
#  217|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def547]
glib-2.87.0/girepository/cmph/brz.c:216: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  214|   	brzf->algo = brz->algo;
#  215|   	mphf->data = brzf;
#  216|-> 	mphf->size = brz->m;	
#  217|   	DEBUGP("Successfully generated minimal perfect hash\n");
#  218|   	if (mph->verbosity)

Error: CPPCHECK_WARNING (CWE-476): [#def548]
glib-2.87.0/girepository/cmph/brz.c:281: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  279|   				memcpy(&keylen1, buffer + memory_usage, sizeof(keylen1));
#  280|   				h0 = hash(brz->h0, (char *)(buffer + memory_usage + sizeof(keylen1)), keylen1) % brz->k;
#  281|-> 				keys_index[buckets_size[h0]] = memory_usage;
#  282|   				buckets_size[h0]++;
#  283|   				memory_usage +=  keylen1 + (cmph_uint32)sizeof(keylen1);

Error: CPPCHECK_WARNING (CWE-476): [#def549]
glib-2.87.0/girepository/cmph/brz.c:292: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def550]
glib-2.87.0/girepository/cmph/brz.c:293: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  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: CPPCHECK_WARNING (CWE-476): [#def551]
glib-2.87.0/girepository/cmph/brz.c:293: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  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: CPPCHECK_WARNING (CWE-476): [#def552]
glib-2.87.0/girepository/cmph/brz.c:300: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  298|   			nflushes++;
#  299|   			free(keys_index);
#  300|-> 			fclose(tmp_fd);
#  301|   		}
#  302|   		memcpy(buffer + memory_usage, &keylen, sizeof(keylen));

Error: CPPCHECK_WARNING (CWE-476): [#def553]
glib-2.87.0/girepository/cmph/brz.c:343: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  341|   			memcpy(&keylen1, buffer + memory_usage, sizeof(keylen1));
#  342|   			h0 = hash(brz->h0, (char *)(buffer + memory_usage + sizeof(keylen1)), keylen1) % brz->k;
#  343|-> 			keys_index[buckets_size[h0]] = memory_usage;
#  344|   			buckets_size[h0]++;
#  345|   			memory_usage +=  keylen1 + (cmph_uint32)sizeof(keylen1);

Error: CPPCHECK_WARNING (CWE-476): [#def554]
glib-2.87.0/girepository/cmph/brz.c:354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def555]
glib-2.87.0/girepository/cmph/brz.c:355: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  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: CPPCHECK_WARNING (CWE-476): [#def556]
glib-2.87.0/girepository/cmph/brz.c:355: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  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: CPPCHECK_WARNING (CWE-476): [#def557]
glib-2.87.0/girepository/cmph/brz.c:362: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  360|   		nflushes++;
#  361|   		free(keys_index);
#  362|-> 		fclose(tmp_fd);
#  363|   	}
#  364|   

Error: CPPCHECK_WARNING (CWE-476): [#def558]
glib-2.87.0/girepository/cmph/brz.c:400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer_h0
#  398|   		key = (char *)buffer_manager_read_key(buff_manager, i, &keylen);
#  399|   		h0 = hash(brz->h0, key+sizeof(keylen), keylen) % brz->k;
#  400|-> 		buffer_h0[i] = h0;
#  401|                   buffer_merge[i] = (cmph_uint8 *)key;
#  402|                   key = NULL; //transfer memory ownership                 

Error: CPPCHECK_WARNING (CWE-476): [#def559]
glib-2.87.0/girepository/cmph/brz.c:401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer_merge
#  399|   		h0 = hash(brz->h0, key+sizeof(keylen), keylen) % brz->k;
#  400|   		buffer_h0[i] = h0;
#  401|->                 buffer_merge[i] = (cmph_uint8 *)key;
#  402|                   key = NULL; //transfer memory ownership                 
#  403|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def560]
glib-2.87.0/girepository/cmph/brz.c:411: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def561]
glib-2.87.0/girepository/cmph/brz.c:515: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  513|   	for(i = 1; i < n; i++)
#  514|   	{
#  515|-> 		if(vector[i] < vector[min_index]) min_index = i;
#  516|   	}
#  517|   	return min_index;

Error: CPPCHECK_WARNING (CWE-476): [#def562]
glib-2.87.0/girepository/cmph/brz.c:539: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-682): [#def563]
glib-2.87.0/girepository/cmph/brz.c:540: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  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));
#  542|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	

Error: CPPCHECK_WARNING (CWE-682): [#def564]
glib-2.87.0/girepository/cmph/brz.c:541: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  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));
#  542|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	
#  543|   	for (i = 0; i < n; i++) memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2+i,(fchf->g + i), (size_t)1);

Error: CPPCHECK_WARNING (CWE-682): [#def565]
glib-2.87.0/girepository/cmph/brz.c:542: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  540|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  541|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  542|-> 	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	
#  543|   	for (i = 0; i < n; i++) memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2+i,(fchf->g + i), (size_t)1);
#  544|   	free(bufh1);

Error: CPPCHECK_WARNING (CWE-682): [#def566]
glib-2.87.0/girepository/cmph/brz.c:543: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  541|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  542|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	
#  543|-> 	for (i = 0; i < n; i++) memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2+i,(fchf->g + i), (size_t)1);
#  544|   	free(bufh1);
#  545|   	free(bufh2);

Error: CPPCHECK_WARNING (CWE-476): [#def567]
glib-2.87.0/girepository/cmph/brz.c:560: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-682): [#def568]
glib-2.87.0/girepository/cmph/brz.c:561: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  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));
#  563|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);

Error: CPPCHECK_WARNING (CWE-682): [#def569]
glib-2.87.0/girepository/cmph/brz.c:562: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  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));
#  563|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);
#  564|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2,bmzf->g, (size_t)n);

Error: CPPCHECK_WARNING (CWE-682): [#def570]
glib-2.87.0/girepository/cmph/brz.c:563: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  561|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  562|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  563|-> 	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);
#  564|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2,bmzf->g, (size_t)n);
#  565|   	free(bufh1);

Error: CPPCHECK_WARNING (CWE-682): [#def571]
glib-2.87.0/girepository/cmph/brz.c:564: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  562|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  563|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);
#  564|-> 	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2,bmzf->g, (size_t)n);
#  565|   	free(bufh1);
#  566|   	free(bufh2);

Error: CPPCHECK_WARNING (CWE-476): [#def572]
glib-2.87.0/girepository/cmph/brz.c:608: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def573]
glib-2.87.0/girepository/cmph/brz.c:609: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  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);
#  611|   	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);

Error: CPPCHECK_WARNING (CWE-476): [#def574]
glib-2.87.0/girepository/cmph/brz.c:610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  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);
#  611|   	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  612|   	brz->g  = (cmph_uint8 **)  calloc((size_t)brz->k, sizeof(cmph_uint8 *));

Error: CPPCHECK_WARNING (CWE-476): [#def575]
glib-2.87.0/girepository/cmph/brz.c:611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  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);
#  611|-> 	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  612|   	brz->g  = (cmph_uint8 **)  calloc((size_t)brz->k, sizeof(cmph_uint8 *));
#  613|   	DEBUGP("Reading c = %f   k = %u   algo = %u \n", brz->c, brz->k, brz->algo);

Error: CPPCHECK_WARNING (CWE-476): [#def576]
glib-2.87.0/girepository/cmph/brz.c:612: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  610|   	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  611|   	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  612|-> 	brz->g  = (cmph_uint8 **)  calloc((size_t)brz->k, sizeof(cmph_uint8 *));
#  613|   	DEBUGP("Reading c = %f   k = %u   algo = %u \n", brz->c, brz->k, brz->algo);
#  614|   	//loading h_i1, h_i2 and g_i.

Error: CPPCHECK_WARNING (CWE-476): [#def577]
glib-2.87.0/girepository/cmph/brz.c:615: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  613|   	DEBUGP("Reading c = %f   k = %u   algo = %u \n", brz->c, brz->k, brz->algo);
#  614|   	//loading h_i1, h_i2 and g_i.
#  615|-> 	for(i = 0; i < brz->k; i++)
#  616|   	{
#  617|   		// h1

Error: CPPCHECK_WARNING (CWE-476): [#def578]
glib-2.87.0/girepository/cmph/brz.c:621: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  623|   		free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def579]
glib-2.87.0/girepository/cmph/brz.c:622: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  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);
#  623|   		free(buf);
#  624|   		//h2

Error: CPPCHECK_WARNING (CWE-476): [#def580]
glib-2.87.0/girepository/cmph/brz.c:628: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  630|   		free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def581]
glib-2.87.0/girepository/cmph/brz.c:629: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  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);
#  630|   		free(buf);
#  631|   		switch(brz->algo)

Error: CPPCHECK_WARNING (CWE-476): [#def582]
glib-2.87.0/girepository/cmph/brz.c:631: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  629|   		brz->h2[i] = hash_state_load(buf, buflen);
#  630|   		free(buf);
#  631|-> 		switch(brz->algo)
#  632|   		{
#  633|   			case CMPH_FCH:

Error: CPPCHECK_WARNING (CWE-476): [#def583]
glib-2.87.0/girepository/cmph/brz.c:649: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  651|   	free(buf);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def584]
glib-2.87.0/girepository/cmph/buffer_entry.c:72:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*buffer_entry.buff’ where non-null expected
glib-2.87.0/girepository/cmph/buffer_entry.c:55:14: enter_function: entry to ‘buffer_entry_read_key’
glib-2.87.0/girepository/cmph/buffer_entry.c:65:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/buffer_entry.c:67:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_entry.c:69:20: branch_false: following ‘false’ branch (when ‘copied_bytes == 0’)...
glib-2.87.0/girepository/cmph/buffer_entry.c:70:17: branch_false: ...to here
glib-2.87.0/girepository/cmph/buffer_entry.c:70:17: call_function: calling ‘buffer_entry_load’ from ‘buffer_entry_read_key’
glib-2.87.0/girepository/cmph/buffer_entry.c:70:17: return_function: returning to ‘buffer_entry_read_key’ from ‘buffer_entry_load’
glib-2.87.0/girepository/cmph/buffer_entry.c:72:9: danger: argument 2 (‘*buffer_entry.buff + (sizetype)*buffer_entry.pos’) from [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7) could be NULL where non-null expected
#   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: CPPCHECK_WARNING (CWE-476): [#def585]
glib-2.87.0/girepository/cmph/buffer_entry.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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-476): [#def586]
glib-2.87.0/girepository/cmph/buffer_entry.c:78:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
glib-2.87.0/girepository/cmph/buffer_entry.c:77:29: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/buffer_entry.c:78:9: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   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): [#def587]
glib-2.87.0/girepository/cmph/buffer_entry.c:87:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*buffer_entry.buff’ where non-null expected
glib-2.87.0/girepository/cmph/buffer_entry.c:55:14: enter_function: entry to ‘buffer_entry_read_key’
glib-2.87.0/girepository/cmph/buffer_entry.c:79:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/buffer_entry.c:80:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_entry.c:82:20: branch_false: following ‘false’ branch (when ‘copied_bytes == 0’)...
glib-2.87.0/girepository/cmph/buffer_entry.c:85:17: branch_false: ...to here
glib-2.87.0/girepository/cmph/buffer_entry.c:85:17: call_function: calling ‘buffer_entry_load’ from ‘buffer_entry_read_key’
glib-2.87.0/girepository/cmph/buffer_entry.c:85:17: return_function: returning to ‘buffer_entry_read_key’ from ‘buffer_entry_load’
glib-2.87.0/girepository/cmph/buffer_entry.c:87:9: danger: argument 2 (‘*buffer_entry.buff + (sizetype)*buffer_entry.pos’) from [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7) could be NULL where non-null expected
#   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-401): [#def588]
glib-2.87.0/girepository/cmph/buffer_manager.c:25:30: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)nentries, 8)’
glib-2.87.0/girepository/cmph/buffer_manager.c:19:9: branch_true: following ‘true’ branch (when ‘buff_manager’ is non-NULL)...
glib-2.87.0/girepository/cmph/buffer_manager.c:20:9: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:21:59: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/buffer_manager.c:26:20: branch_true: following ‘true’ branch (when ‘i < nentries’)...
glib-2.87.0/girepository/cmph/buffer_manager.c:28:45: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:28:51: throw: if ‘buffer_entry_new’ throws an exception...
glib-2.87.0/girepository/cmph/buffer_manager.c:25:30: danger: ‘calloc((long unsigned int)nentries, 8)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   23|   	buff_manager->pos_avail_list = -1;
#   24|   	buff_manager->nentries = nentries;
#   25|-> 	memory_avail_entry = buff_manager->memory_avail/buff_manager->nentries + 1;
#   26|   	for(i = 0; i < buff_manager->nentries; i++)
#   27|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def589]
glib-2.87.0/girepository/cmph/buffer_manager.c:28:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)nentries, 8)’
glib-2.87.0/girepository/cmph/buffer_manager.c:19:9: branch_true: following ‘true’ branch (when ‘buff_manager’ is non-NULL)...
glib-2.87.0/girepository/cmph/buffer_manager.c:20:9: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:21:59: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/buffer_manager.c:26:20: branch_true: following ‘true’ branch (when ‘i < nentries’)...
glib-2.87.0/girepository/cmph/buffer_manager.c:28:45: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:28:17: danger: ‘calloc((long unsigned int)nentries, 8) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   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-401): [#def590]
glib-2.87.0/girepository/cmph/buffer_manager.c:28:51: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/girepository/cmph/buffer_manager.c:19:9: branch_true: following ‘true’ branch (when ‘buff_manager’ is non-NULL)...
glib-2.87.0/girepository/cmph/buffer_manager.c:20:9: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:22:58: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/buffer_manager.c:26:20: branch_true: following ‘true’ branch (when ‘i < nentries’)...
glib-2.87.0/girepository/cmph/buffer_manager.c:28:45: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:28:51: throw: if ‘buffer_entry_new’ throws an exception...
glib-2.87.0/girepository/cmph/buffer_manager.c:28:51: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   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-401): [#def591]
glib-2.87.0/girepository/cmph/buffer_manager.c:28:51: warning[-Wanalyzer-malloc-leak]: leak of ‘buff_manager’
glib-2.87.0/girepository/cmph/buffer_manager.c:18:62: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/buffer_manager.c:19:9: branch_true: following ‘true’ branch (when ‘buff_manager’ is non-NULL)...
glib-2.87.0/girepository/cmph/buffer_manager.c:20:9: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:26:20: branch_true: following ‘true’ branch (when ‘i < nentries’)...
glib-2.87.0/girepository/cmph/buffer_manager.c:28:45: branch_true: ...to here
glib-2.87.0/girepository/cmph/buffer_manager.c:28:51: throw: if ‘buffer_entry_new’ throws an exception...
glib-2.87.0/girepository/cmph/buffer_manager.c:28:51: danger: ‘buff_manager’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   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-401): [#def592]
glib-2.87.0/girepository/cmph/chd.c:25:23: warning[-Wanalyzer-malloc-leak]: leak of ‘chd’
glib-2.87.0/girepository/cmph/chd.c:21:36: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd.c:22:9: branch_true: following ‘true’ branch (when ‘chd’ is non-NULL)...
glib-2.87.0/girepository/cmph/chd.c:25:23: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd.c:25:23: throw: if ‘cmph_config_new’ throws an exception...
glib-2.87.0/girepository/cmph/chd.c:25:23: danger: ‘chd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   23|   	memset(chd, 0, sizeof(chd_config_data_t));
#   24|   
#   25|-> 	chd->chd_ph = cmph_config_new(key_source);
#   26|   	cmph_config_set_algo(chd->chd_ph, CMPH_CHD_PH);
#   27|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
glib-2.87.0/girepository/cmph/chd.c:26:9: warning[-Wanalyzer-malloc-leak]: leak of ‘chd’
glib-2.87.0/girepository/cmph/chd.c:21:36: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd.c:22:9: branch_true: following ‘true’ branch (when ‘chd’ is non-NULL)...
glib-2.87.0/girepository/cmph/chd.c:25:23: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd.c:26:9: throw: if ‘cmph_config_set_algo’ throws an exception...
glib-2.87.0/girepository/cmph/chd.c:26:9: danger: ‘chd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   24|   
#   25|   	chd->chd_ph = cmph_config_new(key_source);
#   26|-> 	cmph_config_set_algo(chd->chd_ph, CMPH_CHD_PH);
#   27|   
#   28|   	return chd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
glib-2.87.0/girepository/cmph/chd.c:111:9: warning[-Wanalyzer-malloc-leak]: leak of ‘packed_chd_phf’
glib-2.87.0/girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd.c:104:31: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd.c:108:26: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd.c:111:9: throw: if ‘cmph_pack’ throws an exception...
glib-2.87.0/girepository/cmph/chd.c:111:9: danger: ‘packed_chd_phf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  109|   
#  110|   	/* Pack the mphf. */
#  111|-> 	cmph_pack(chd_phf, packed_chd_phf);
#  112|   
#  113|   	cmph_destroy(chd_phf);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def595]
glib-2.87.0/girepository/cmph/chd.c:133:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘vals_table’
glib-2.87.0/girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd.c:104:31: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd.c:126:37: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chd.c:129:29: branch_true: following ‘true’ branch (when ‘i < nbins’)...
glib-2.87.0/girepository/cmph/chd.c:131:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd.c:131:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd.c:133:36: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd.c:133:25: danger: ‘vals_table + (long unsigned int)idx * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  131|   		if(!GETBIT32(occup_table, i))
#  132|   		{
#  133|-> 			vals_table[idx++] = i;
#  134|   		}
#  135|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
glib-2.87.0/girepository/cmph/chd.c:137:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vals_table’
glib-2.87.0/girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd.c:104:31: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd.c:126:37: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd.c:137:9: throw: if ‘compressed_rank_generate’ throws an exception...
glib-2.87.0/girepository/cmph/chd.c:137:9: danger: ‘vals_table’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  135|   	}
#  136|   	
#  137|-> 	compressed_rank_generate(&cr, vals_table, nvals);
#  138|   	free(vals_table);
#  139|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
glib-2.87.0/girepository/cmph/chd.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of ‘packed_cr’
glib-2.87.0/girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd.c:104:31: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd.c:141:36: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd.c:142:9: throw: if ‘compressed_rank_pack’ throws an exception...
glib-2.87.0/girepository/cmph/chd.c:142:9: danger: ‘packed_cr’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  140|   	packed_cr_size = compressed_rank_packed_size(&cr);
#  141|   	packed_cr = (cmph_uint8 *) calloc(packed_cr_size, sizeof(cmph_uint8));
#  142|-> 	compressed_rank_pack(&cr, packed_cr);
#  143|   	compressed_rank_destroy(&cr);
#  144|   

Error: CPPCHECK_WARNING (CWE-476): [#def598]
glib-2.87.0/girepository/cmph/chd.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def599]
glib-2.87.0/girepository/cmph/chd.c:146:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
glib-2.87.0/girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd.c:104:31: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd.c:145:26: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chd.c:146:9: danger: ‘mphf’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  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: CPPCHECK_WARNING (CWE-476): [#def600]
glib-2.87.0/girepository/cmph/chd.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def601]
glib-2.87.0/girepository/cmph/chd.c:149:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chdf’
glib-2.87.0/girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd.c:104:31: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd.c:147:30: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chd.c:149:9: danger: ‘chdf’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  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: CPPCHECK_WARNING (CWE-476): [#def602]
glib-2.87.0/girepository/cmph/chd.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chdf
#  150|   	packed_cr = NULL; //transfer memory ownership
#  151|   
#  152|-> 	chdf->packed_chd_phf = packed_chd_phf;
#  153|   	packed_chd_phf = NULL; //transfer memory ownership
#  154|   	

Error: CPPCHECK_WARNING (CWE-476): [#def603]
glib-2.87.0/girepository/cmph/chd.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chdf
#  153|   	packed_chd_phf = NULL; //transfer memory ownership
#  154|   	
#  155|-> 	chdf->packed_chd_phf_size = packed_chd_phf_size;
#  156|   	chdf->packed_cr_size = packed_cr_size;
#  157|   	

Error: CPPCHECK_WARNING (CWE-476): [#def604]
glib-2.87.0/girepository/cmph/chd.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chdf
#  154|   	
#  155|   	chdf->packed_chd_phf_size = packed_chd_phf_size;
#  156|-> 	chdf->packed_cr_size = packed_cr_size;
#  157|   	
#  158|   	mphf->data = chdf;

Error: CPPCHECK_WARNING (CWE-476): [#def605]
glib-2.87.0/girepository/cmph/chd.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  156|   	chdf->packed_cr_size = packed_cr_size;
#  157|   	
#  158|-> 	mphf->data = chdf;
#  159|   	mphf->size = nkeys;
#  160|   

Error: CPPCHECK_WARNING (CWE-476): [#def606]
glib-2.87.0/girepository/cmph/chd.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  157|   	
#  158|   	mphf->data = chdf;
#  159|-> 	mphf->size = nkeys;
#  160|   
#  161|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def607]
glib-2.87.0/girepository/cmph/chd.c:186: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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-476): [#def608]
glib-2.87.0/girepository/cmph/chd.c:186:61: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chd’
glib-2.87.0/girepository/cmph/chd.c:179:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chd.c:186:61: danger: ‘chd’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def609]
glib-2.87.0/girepository/cmph/chd.c:187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd
#  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|   
#  189|   	nbytes = fread(&chd->packed_cr_size, sizeof(cmph_uint32), (size_t)1, fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
glib-2.87.0/girepository/cmph/chd.c:189:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/girepository/cmph/chd.c:186:46: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd.c:189:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def611]
glib-2.87.0/girepository/cmph/chd.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd
#  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);
#  192|   	nbytes = fread(chd->packed_cr, chd->packed_cr_size, (size_t)1, fd);
#  193|   	if (nbytes == 0 && ferror(fd)) {

Error: CPPCHECK_WARNING (CWE-476): [#def612]
glib-2.87.0/girepository/cmph/chd.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd
#  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);
#  192|-> 	nbytes = fread(chd->packed_cr, chd->packed_cr_size, (size_t)1, fd);
#  193|   	if (nbytes == 0 && ferror(fd)) {
#  194|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def613]
glib-2.87.0/girepository/cmph/chd_ph.c:87:55: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tmp_map_item’
glib-2.87.0/girepository/cmph/chd_ph.c:219:12: enter_function: entry to ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:227:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: call_function: calling ‘chd_ph_bucket_clean’ from ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: return_function: returning to ‘chd_ph_mapping’ from ‘chd_ph_bucket_clean’
glib-2.87.0/girepository/cmph/chd_ph.c:240:28: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:263:17: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:264:28: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:269:25: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:270:28: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:273:29: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:273:29: call_function: calling ‘chd_ph_bucket_insert’ from ‘chd_ph_mapping’
#   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): [#def614]
glib-2.87.0/girepository/cmph/chd_ph.c:87:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*tmp_map_item.bucket_num’
glib-2.87.0/girepository/cmph/chd_ph.c:219:12: enter_function: entry to ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: call_function: calling ‘chd_ph_bucket_clean’ from ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: return_function: returning to ‘chd_ph_mapping’ from ‘chd_ph_bucket_clean’
glib-2.87.0/girepository/cmph/chd_ph.c:240:28: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:263:17: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:264:28: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:269:25: branch_false: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:270:28: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:273:29: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:273:29: call_function: calling ‘chd_ph_bucket_insert’ from ‘chd_ph_mapping’
#   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: CPPCHECK_WARNING (CWE-476): [#def615]
glib-2.87.0/girepository/cmph/chd_ph.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: probe_counts
#  131|   	for(i = 0; i < n; i++)
#  132|   	{
#  133|-> 		probe_counts[disp_table[i]]++;
#  134|   	};
#  135|   	

Error: CPPCHECK_WARNING (CWE-476): [#def616]
glib-2.87.0/girepository/cmph/chd_ph.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: probe_counts
#  136|   	for(i = 0; i < max_probes; i++)
#  137|   	{
#  138|-> 		if(probe_counts[i] > 0)
#  139|   			entropy -= probe_counts[i]*log((double)probe_counts[i]/(double)n)/log(2);
#  140|   	};

Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
glib-2.87.0/girepository/cmph/chd_ph.c:233:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buckets’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:693:19: call_function: inlined call to ‘chd_ph_bucket_new’ from ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  231|   	{
#  232|   		mapping_iterations--;
#  233|-> 		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|   		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def618]
glib-2.87.0/girepository/cmph/chd_ph.c:233:33: warning[-Wanalyzer-malloc-leak]: leak of ‘disp_table’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:703:38: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  231|   	{
#  232|   		mapping_iterations--;
#  233|-> 		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|   		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def619]
glib-2.87.0/girepository/cmph/chd_ph.c:233:33: warning[-Wanalyzer-malloc-leak]: leak of ‘items’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:694:37: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  231|   	{
#  232|   		mapping_iterations--;
#  233|-> 		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|   		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def620]
glib-2.87.0/girepository/cmph/chd_ph.c:233:33: warning[-Wanalyzer-malloc-leak]: leak of ‘map_items’
glib-2.87.0/girepository/cmph/chd_ph.c:227:41: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:233:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:233:33: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:233:33: throw: if ‘hash_state_destroy’ throws an exception...
glib-2.87.0/girepository/cmph/chd_ph.c:233:33: danger: ‘map_items’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  231|   	{
#  232|   		mapping_iterations--;
#  233|-> 		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|   		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
glib-2.87.0/girepository/cmph/chd_ph.c:234:30: warning[-Wanalyzer-malloc-leak]: leak of ‘buckets’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:693:19: call_function: inlined call to ‘chd_ph_bucket_new’ from ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  232|   		mapping_iterations--;
#  233|   		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|-> 		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   
#  236|   		chd_ph_bucket_clean(buckets, chd_ph->nbuckets);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
glib-2.87.0/girepository/cmph/chd_ph.c:234:30: warning[-Wanalyzer-malloc-leak]: leak of ‘disp_table’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:703:38: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  232|   		mapping_iterations--;
#  233|   		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|-> 		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   
#  236|   		chd_ph_bucket_clean(buckets, chd_ph->nbuckets);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
glib-2.87.0/girepository/cmph/chd_ph.c:234:30: warning[-Wanalyzer-malloc-leak]: leak of ‘items’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:694:37: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  232|   		mapping_iterations--;
#  233|   		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|-> 		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   
#  236|   		chd_ph_bucket_clean(buckets, chd_ph->nbuckets);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
glib-2.87.0/girepository/cmph/chd_ph.c:234:30: warning[-Wanalyzer-malloc-leak]: leak of ‘map_items’
glib-2.87.0/girepository/cmph/chd_ph.c:227:41: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:234:30: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/chd_ph.c:234:30: danger: ‘map_items’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  232|   		mapping_iterations--;
#  233|   		if (chd_ph->hl) hash_state_destroy(chd_ph->hl);
#  234|-> 		chd_ph->hl = hash_state_new(chd_ph->hashfunc, chd_ph->m); 
#  235|   
#  236|   		chd_ph_bucket_clean(buckets, chd_ph->nbuckets);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
glib-2.87.0/girepository/cmph/chd_ph.c:238:17: warning[-Wanalyzer-malloc-leak]: leak of ‘disp_table’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:703:38: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  236|   		chd_ph_bucket_clean(buckets, chd_ph->nbuckets);
#  237|   
#  238|-> 		mph->key_source->rewind(mph->key_source->data);  
#  239|   
#  240|   		for(i = 0; i < chd_ph->m; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
glib-2.87.0/girepository/cmph/chd_ph.c:238:17: warning[-Wanalyzer-malloc-leak]: leak of ‘map_items’
glib-2.87.0/girepository/cmph/chd_ph.c:219:12: enter_function: entry to ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:227:41: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: call_function: calling ‘chd_ph_bucket_clean’ from ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: return_function: returning to ‘chd_ph_mapping’ from ‘chd_ph_bucket_clean’
glib-2.87.0/girepository/cmph/chd_ph.c:238:17: throw: if the called function throws an exception...
glib-2.87.0/girepository/cmph/chd_ph.c:238:17: danger: ‘map_items’ leaks here; was allocated at [(2)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/1)
#  236|   		chd_ph_bucket_clean(buckets, chd_ph->nbuckets);
#  237|   
#  238|-> 		mph->key_source->rewind(mph->key_source->data);  
#  239|   
#  240|   		for(i = 0; i < chd_ph->m; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
glib-2.87.0/girepository/cmph/chd_ph.c:242:25: warning[-Wanalyzer-malloc-leak]: leak of ‘disp_table’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:703:38: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  240|   		for(i = 0; i < chd_ph->m; i++)
#  241|   		{
#  242|-> 			mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  243|   			hash_vector(chd_ph->hl, key, keylen, hl);
#  244|   			

Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
glib-2.87.0/girepository/cmph/chd_ph.c:242:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map_items’
glib-2.87.0/girepository/cmph/chd_ph.c:219:12: enter_function: entry to ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:227:41: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: call_function: calling ‘chd_ph_bucket_clean’ from ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: return_function: returning to ‘chd_ph_mapping’ from ‘chd_ph_bucket_clean’
glib-2.87.0/girepository/cmph/chd_ph.c:240:28: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:242:25: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:242:25: throw: if the called function throws an exception...
glib-2.87.0/girepository/cmph/chd_ph.c:242:25: danger: ‘map_items’ leaks here; was allocated at [(2)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/1)
#  240|   		for(i = 0; i < chd_ph->m; i++)
#  241|   		{
#  242|-> 			mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  243|   			hash_vector(chd_ph->hl, key, keylen, hl);
#  244|   			

Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
glib-2.87.0/girepository/cmph/chd_ph.c:243:25: warning[-Wanalyzer-malloc-leak]: leak of ‘disp_table’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:703:38: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  241|   		{
#  242|   			mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  243|-> 			hash_vector(chd_ph->hl, key, keylen, hl);
#  244|   			
#  245|   			map_item = (map_items + i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
glib-2.87.0/girepository/cmph/chd_ph.c:243:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map_items’
glib-2.87.0/girepository/cmph/chd_ph.c:219:12: enter_function: entry to ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:227:41: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: call_function: calling ‘chd_ph_bucket_clean’ from ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: return_function: returning to ‘chd_ph_mapping’ from ‘chd_ph_bucket_clean’
glib-2.87.0/girepository/cmph/chd_ph.c:240:28: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:242:25: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:243:25: throw: if ‘hash_vector’ throws an exception...
glib-2.87.0/girepository/cmph/chd_ph.c:243:25: danger: ‘map_items’ leaks here; was allocated at [(2)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/1)
#  241|   		{
#  242|   			mph->key_source->read(mph->key_source->data, &key, &keylen);		
#  243|-> 			hash_vector(chd_ph->hl, key, keylen, hl);
#  244|   			
#  245|   			map_item = (map_items + i);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def631]
glib-2.87.0/girepository/cmph/chd_ph.c:248:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map_item’
glib-2.87.0/girepository/cmph/chd_ph.c:219:12: enter_function: entry to ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:227:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: call_function: calling ‘chd_ph_bucket_clean’ from ‘chd_ph_mapping’
glib-2.87.0/girepository/cmph/chd_ph.c:236:17: return_function: returning to ‘chd_ph_mapping’ from ‘chd_ph_bucket_clean’
glib-2.87.0/girepository/cmph/chd_ph.c:240:28: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:242:25: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:248:25: danger: ‘map_item’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/1)
#  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-401): [#def632]
glib-2.87.0/girepository/cmph/chd_ph.c:251:25: warning[-Wanalyzer-malloc-leak]: leak of ‘disp_table’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:703:38: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  249|   			map_item->h = hl[2] % (chd_ph->n - 1) + 1;
#  250|   			map_item->bucket_num=g;
#  251|-> 			mph->key_source->dispose(mph->key_source->data, key, keylen);		
#  252|   // 			if(buckets[g].size == (chd_ph->keys_per_bucket << 2))
#  253|   // 			{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
glib-2.87.0/girepository/cmph/chd_ph.c:251:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map_items’
glib-2.87.0/girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
glib-2.87.0/girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
glib-2.87.0/girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  249|   			map_item->h = hl[2] % (chd_ph->n - 1) + 1;
#  250|   			map_item->bucket_num=g;
#  251|-> 			mph->key_source->dispose(mph->key_source->data, key, keylen);		
#  252|   // 			if(buckets[g].size == (chd_ph->keys_per_bucket << 2))
#  253|   // 			{

Error: CPPCHECK_WARNING (CWE-476): [#def634]
glib-2.87.0/girepository/cmph/chd_ph.c:312: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sorted_lists
#  310|   		if(bucket_size == 0)
#  311|   			continue;
#  312|-> 		sorted_lists[bucket_size].size++;
#  313|   	};
#  314|   	sorted_lists[1].buckets_list = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def635]
glib-2.87.0/girepository/cmph/chd_ph.c:314: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def636]
glib-2.87.0/girepository/cmph/chd_ph.c:314:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sorted_lists’
glib-2.87.0/girepository/cmph/chd_ph.c:297:72: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chd_ph.c:314:9: danger: ‘sorted_lists’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def637]
glib-2.87.0/girepository/cmph/chd_ph.c:335: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_buckets
#  333|   		};
#  334|   		position = sorted_lists[bucket_size].buckets_list + sorted_lists[bucket_size].size;
#  335|-> 		output_buckets[position].bucket_id = i;
#  336|   		output_buckets[position].items_list = input_buckets[i].items_list;
#  337|   		sorted_lists[bucket_size].size++;

Error: CPPCHECK_WARNING (CWE-476): [#def638]
glib-2.87.0/girepository/cmph/chd_ph.c:336: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_buckets
#  334|   		position = sorted_lists[bucket_size].buckets_list + sorted_lists[bucket_size].size;
#  335|   		output_buckets[position].bucket_id = i;
#  336|-> 		output_buckets[position].items_list = input_buckets[i].items_list;
#  337|   		sorted_lists[bucket_size].size++;
#  338|   	};

Error: CPPCHECK_WARNING (CWE-476): [#def639]
glib-2.87.0/girepository/cmph/chd_ph.c:358: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_items
#  356|   			for(j = 0; j < bucket_size; j++)
#  357|   			{
#  358|-> 				output_items[position].f = input_items[position2].f;
#  359|   				output_items[position].h = input_items[position2].h;
#  360|   				position++;

Error: CPPCHECK_WARNING (CWE-476): [#def640]
glib-2.87.0/girepository/cmph/chd_ph.c:359: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_items
#  357|   			{
#  358|   				output_items[position].f = input_items[position2].f;
#  359|-> 				output_items[position].h = input_items[position2].h;
#  360|   				position++;
#  361|   				position2++;

Error: CPPCHECK_WARNING (CWE-476): [#def641]
glib-2.87.0/girepository/cmph/chd_ph.c:808: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def642]
glib-2.87.0/girepository/cmph/chd_ph.c:811: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def643]
glib-2.87.0/girepository/cmph/chd_ph.c:813: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_phf
#  811|   	chd_phf->cs = chd_ph->cs;
#  812|   	chd_ph->cs = NULL; //transfer memory ownership
#  813|-> 	chd_phf->hl = chd_ph->hl;
#  814|   	chd_ph->hl = NULL; //transfer memory ownership
#  815|   	chd_phf->n = chd_ph->n;

Error: CPPCHECK_WARNING (CWE-476): [#def644]
glib-2.87.0/girepository/cmph/chd_ph.c:815: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_phf
#  813|   	chd_phf->hl = chd_ph->hl;
#  814|   	chd_ph->hl = NULL; //transfer memory ownership
#  815|-> 	chd_phf->n = chd_ph->n;
#  816|   	chd_phf->nbuckets = chd_ph->nbuckets;
#  817|   	

Error: CPPCHECK_WARNING (CWE-476): [#def645]
glib-2.87.0/girepository/cmph/chd_ph.c:816: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_phf
#  814|   	chd_ph->hl = NULL; //transfer memory ownership
#  815|   	chd_phf->n = chd_ph->n;
#  816|-> 	chd_phf->nbuckets = chd_ph->nbuckets;
#  817|   	
#  818|   	mphf->data = chd_phf;

Error: CPPCHECK_WARNING (CWE-476): [#def646]
glib-2.87.0/girepository/cmph/chd_ph.c:818: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  816|   	chd_phf->nbuckets = chd_ph->nbuckets;
#  817|   	
#  818|-> 	mphf->data = chd_phf;
#  819|   	mphf->size = chd_ph->n;
#  820|   

Error: CPPCHECK_WARNING (CWE-476): [#def647]
glib-2.87.0/girepository/cmph/chd_ph.c:819: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  817|   	
#  818|   	mphf->data = chd_phf;
#  819|-> 	mphf->size = chd_ph->n;
#  820|   
#  821|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: GCC_ANALYZER_WARNING (CWE-789): [#def648]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def649]
glib-2.87.0/girepository/cmph/chd_ph.c:851: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  853|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def650]
glib-2.87.0/girepository/cmph/chd_ph.c:852: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_ph
#  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);
#  853|   	free(buf);
#  854|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def651]
glib-2.87.0/girepository/cmph/chd_ph.c:852:22: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/chd_ph.c:850:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:852:22: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/chd_ph.c:852:22: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  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);
#  853|   	free(buf);
#  854|   	

Error: GCC_ANALYZER_WARNING (CWE-789): [#def652]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def653]
glib-2.87.0/girepository/cmph/chd_ph.c:858: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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)); 
#  860|   	compressed_seq_load(chd_ph->cs, buf, buflen);

Error: CPPCHECK_WARNING (CWE-476): [#def654]
glib-2.87.0/girepository/cmph/chd_ph.c:859: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_ph
#  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)); 
#  860|   	compressed_seq_load(chd_ph->cs, buf, buflen);
#  861|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def655]
glib-2.87.0/girepository/cmph/chd_ph.c:860: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_ph
#  858|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  859|   	chd_ph->cs = (compressed_seq_t *) calloc(1, sizeof(compressed_seq_t)); 
#  860|-> 	compressed_seq_load(chd_ph->cs, buf, buflen);
#  861|   	free(buf);
#  862|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
glib-2.87.0/girepository/cmph/chd_ph.c:860:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/chd_ph.c:850:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:857:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chd_ph.c:860:9: throw: if ‘compressed_seq_load’ throws an exception...
glib-2.87.0/girepository/cmph/chd_ph.c:860:9: danger: ‘buf’ leaks here; was allocated at [(2)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/1)
#  858|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  859|   	chd_ph->cs = (compressed_seq_t *) calloc(1, sizeof(compressed_seq_t)); 
#  860|-> 	compressed_seq_load(chd_ph->cs, buf, buflen);
#  861|   	free(buf);
#  862|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def657]
glib-2.87.0/girepository/cmph/chm.c:71:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*chm.hashes + (long unsigned int)i * 8’
glib-2.87.0/girepository/cmph/chm.c:70:40: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chm.c:71:20: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/girepository/cmph/chm.c:71:32: branch_true: ...to here
glib-2.87.0/girepository/cmph/chm.c:71:32: danger: ‘*chm.hashes + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   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: CPPCHECK_WARNING (CWE-476): [#def658]
glib-2.87.0/girepository/cmph/chm.c:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visited
#  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: CPPCHECK_WARNING (CWE-476): [#def659]
glib-2.87.0/girepository/cmph/chm.c:129: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  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: CPPCHECK_WARNING (CWE-476): [#def660]
glib-2.87.0/girepository/cmph/chm.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def661]
glib-2.87.0/girepository/cmph/chm.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chmf
#  131|   	chmf->g = chm->g;
#  132|   	chm->g = NULL; //transfer memory ownership
#  133|-> 	chmf->hashes = chm->hashes;
#  134|   	chm->hashes = NULL; //transfer memory ownership
#  135|   	chmf->n = chm->n;

Error: CPPCHECK_WARNING (CWE-476): [#def662]
glib-2.87.0/girepository/cmph/chm.c:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chmf
#  133|   	chmf->hashes = chm->hashes;
#  134|   	chm->hashes = NULL; //transfer memory ownership
#  135|-> 	chmf->n = chm->n;
#  136|   	chmf->m = chm->m;
#  137|   	mphf->data = chmf;

Error: CPPCHECK_WARNING (CWE-476): [#def663]
glib-2.87.0/girepository/cmph/chm.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chmf
#  134|   	chm->hashes = NULL; //transfer memory ownership
#  135|   	chmf->n = chm->n;
#  136|-> 	chmf->m = chm->m;
#  137|   	mphf->data = chmf;
#  138|   	mphf->size = chm->m;

Error: CPPCHECK_WARNING (CWE-476): [#def664]
glib-2.87.0/girepository/cmph/chm.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  135|   	chmf->n = chm->n;
#  136|   	chmf->m = chm->m;
#  137|-> 	mphf->data = chmf;
#  138|   	mphf->size = chm->m;
#  139|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def665]
glib-2.87.0/girepository/cmph/chm.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  136|   	chmf->m = chm->m;
#  137|   	mphf->data = chmf;
#  138|-> 	mphf->size = chm->m;
#  139|   	DEBUGP("Successfully generated minimal perfect hash\n");
#  140|   	if (mph->verbosity)

Error: CPPCHECK_WARNING (CWE-476): [#def666]
glib-2.87.0/girepository/cmph/chm.c:252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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-476): [#def667]
glib-2.87.0/girepository/cmph/chm.c:252:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chm’
glib-2.87.0/girepository/cmph/chm.c:247:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/chm.c:252:9: danger: ‘chm’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def668]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def669]
glib-2.87.0/girepository/cmph/chm.c:253: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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);
#  255|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-823): [#def670]
glib-2.87.0/girepository/cmph/chm.c:253:9: 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): [#def671]
glib-2.87.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
glib-2.87.0/girepository/cmph/chm.c:255:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chm.c:258:26: branch_true: ...to here
glib-2.87.0/girepository/cmph/chm.c:260:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  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: CPPCHECK_WARNING (CWE-476): [#def672]
glib-2.87.0/girepository/cmph/chm.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  263|   		chm->hashes[i] = state;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
glib-2.87.0/girepository/cmph/chm.c:262:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/chm.c:255:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/chm.c:258:26: branch_true: ...to here
glib-2.87.0/girepository/cmph/chm.c:260:31: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chm.c:262:25: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/chm.c:262:25: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  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);
#  263|   		chm->hashes[i] = state;
#  264|   		free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def674]
glib-2.87.0/girepository/cmph/chm.c:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  261|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  262|   		state = hash_state_load(buf, buflen);
#  263|-> 		chm->hashes[i] = state;
#  264|   		free(buf);
#  265|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
glib-2.87.0/girepository/cmph/chm.c:268:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
glib-2.87.0/girepository/cmph/chm.c:252:40: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/chm.c:255:21: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/chm.c:268:24: branch_false: ...to here
glib-2.87.0/girepository/cmph/chm.c:268:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def676]
glib-2.87.0/girepository/cmph/chm.c:271: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  269|   	nbytes = fread(&(chm->m), sizeof(cmph_uint32), (size_t)1, f);	
#  270|   
#  271|-> 	chm->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*chm->n);
#  272|   	nbytes = fread(chm->g, chm->n*sizeof(cmph_uint32), (size_t)1, f);
#  273|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def677]
glib-2.87.0/girepository/cmph/chm.c:272: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  270|   
#  271|   	chm->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*chm->n);
#  272|-> 	nbytes = fread(chm->g, chm->n*sizeof(cmph_uint32), (size_t)1, f);
#  273|   	if (nbytes == 0 && ferror(f)) {
#  274|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def678]
glib-2.87.0/girepository/cmph/cmph.c:89:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*key’ where non-null expected
glib-2.87.0/girepository/cmph/cmph.c:88:24: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/cmph.c:89:9: danger: argument 1 (‘malloc(size)’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#   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): [#def679]
glib-2.87.0/girepository/cmph/cmph.c:103:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*key’ where non-null expected
glib-2.87.0/girepository/cmph/cmph.c:102:20: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/cmph.c:103:5: danger: argument 1 (‘malloc(size)’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def680]
glib-2.87.0/girepository/cmph/cmph.c:116:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*key’ where non-null expected
glib-2.87.0/girepository/cmph/cmph.c:115:24: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/cmph.c:116:9: danger: argument 1 (‘malloc(size + 1)’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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-401): [#def681]
glib-2.87.0/girepository/cmph/cmph.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘key_source’
glib-2.87.0/girepository/cmph/cmph.c:167:20: enter_function: entry to ‘cmph_io_nlfile_adapter’
glib-2.87.0/girepository/cmph/cmph.c:169:57: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/cmph.c:170:3: branch_true: following ‘true’ branch (when ‘key_source’ is non-NULL)...
glib-2.87.0/girepository/cmph/cmph.c:171:3: branch_true: ...to here
glib-2.87.0/girepository/cmph/cmph.c:172:23: call_function: calling ‘count_nlfile_keys’ from ‘cmph_io_nlfile_adapter’
#  152|   {
#  153|   	cmph_uint32 count = 0;
#  154|-> 	rewind(fd);
#  155|   	while(1)
#  156|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
glib-2.87.0/girepository/cmph/cmph.c:163:9: warning[-Wanalyzer-malloc-leak]: leak of ‘key_source’
glib-2.87.0/girepository/cmph/cmph.c:167:20: enter_function: entry to ‘cmph_io_nlfile_adapter’
glib-2.87.0/girepository/cmph/cmph.c:169:57: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/cmph.c:170:3: branch_true: following ‘true’ branch (when ‘key_source’ is non-NULL)...
glib-2.87.0/girepository/cmph/cmph.c:171:3: branch_true: ...to here
glib-2.87.0/girepository/cmph/cmph.c:172:23: call_function: calling ‘count_nlfile_keys’ from ‘cmph_io_nlfile_adapter’
#  161|   		++count;
#  162|   	}
#  163|-> 	rewind(fd);
#  164|   	return count;
#  165|   }

Error: CPPCHECK_WARNING (CWE-476): [#def683]
glib-2.87.0/girepository/cmph/cmph_structs.c:12: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mph
#   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-688): [#def684]
glib-2.87.0/girepository/cmph/cmph_structs.c:12:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mph’ where non-null expected
glib-2.87.0/girepository/cmph/cmph_structs.c:11:47: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/cmph_structs.c:12:9: danger: argument 1 (‘mph’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#   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: CPPCHECK_WARNING (CWE-476): [#def685]
glib-2.87.0/girepository/cmph/cmph_structs.c:65: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def686]
glib-2.87.0/girepository/cmph/cmph_structs.c:65:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
glib-2.87.0/girepository/cmph/cmph_structs.c:48:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/cmph_structs.c:49:21: branch_false: ...to here
glib-2.87.0/girepository/cmph/cmph_structs.c:52:20: branch_true: following ‘true’ branch (when ‘i != 9’)...
glib-2.87.0/girepository/cmph/cmph_structs.c:54:21: branch_true: ...to here
glib-2.87.0/girepository/cmph/cmph_structs.c:59:12: branch_false: following ‘false’ branch (when ‘algo != 9’)...
glib-2.87.0/girepository/cmph/cmph_structs.c:64:26: branch_false: ...to here
glib-2.87.0/girepository/cmph/cmph_structs.c:64:26: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/cmph_structs.c:65:9: danger: ‘mphf’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   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: CPPCHECK_WARNING (CWE-476): [#def687]
glib-2.87.0/girepository/cmph/cmph_structs.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#   65|   	mphf->algo = algo;
#   66|   	nbytes = fread(&(mphf->size), sizeof(mphf->size), (size_t)1, f);
#   67|-> 	mphf->data = NULL;
#   68|   	DEBUGP("Algorithm is %s and mphf is sized %u\n", cmph_names[algo],  mphf->size);
#   69|           if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def688]
glib-2.87.0/girepository/cmph/compressed_rank.c:64: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: select_vec
#   62|   			j++;
#   63|   		}
#   64|-> 		select_vec[i - 1] = j;
#   65|   	};
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def689]
glib-2.87.0/girepository/cmph/compressed_rank.c:64:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘select_vec’
glib-2.87.0/girepository/cmph/compressed_rank.c:49:38: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_rank.c:53:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:53:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:58:27: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:58:27: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:60:23: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:64:28: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:64:17: danger: ‘select_vec + (long unsigned int)(i + 4294967295) * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   62|   			j++;
#   63|   		}
#   64|-> 		select_vec[i - 1] = j;
#   65|   	};
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
glib-2.87.0/girepository/cmph/compressed_rank.c:70:9: warning[-Wanalyzer-malloc-leak]: leak of ‘select_vec’
glib-2.87.0/girepository/cmph/compressed_rank.c:49:38: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/compressed_rank.c:53:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:53:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:58:27: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:70:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:70:9: throw: if ‘select_generate’ throws an exception...
glib-2.87.0/girepository/cmph/compressed_rank.c:70:9: danger: ‘select_vec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   68|   	// FABIANO: before it was (cr->total_length >> cr->rem_r) + 1. But I wiped out the + 1 because
#   69|   	// I changed the select structure to work up to m, instead of up to m - 1.
#   70|-> 	select_generate(&cr->sel, select_vec, cr->max_val >> cr->rem_r, cr->n);
#   71|   
#   72|   	free(select_vec);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
glib-2.87.0/girepository/cmph/compressed_rank.c:162:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/compressed_rank.c:253:6: enter_function: entry to ‘compressed_rank_pack’
glib-2.87.0/girepository/cmph/compressed_rank.c:255:12: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:257:23: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:259:17: call_function: calling ‘compressed_rank_dump’ from ‘compressed_rank_pack’
#  160|   
#  161|   	// dumping sel
#  162|-> 	select_dump(&cr->sel, &buf_sel, &buflen_sel);
#  163|   	memcpy(*buf + pos, &buflen_sel, sizeof(cmph_uint32));
#  164|   	pos += (cmph_uint32)sizeof(cmph_uint32);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def692]
glib-2.87.0/girepository/cmph/compressed_rank.c:238:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cr.vals_rems’ where non-null expected
glib-2.87.0/girepository/cmph/compressed_rank.c:236:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_rank.c:238:9: danger: argument 1 (‘calloc((long unsigned int)vals_rems_size, 4)’) from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def693]
glib-2.87.0/girepository/cmph/compressed_rank.c:260:17: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
glib-2.87.0/girepository/cmph/compressed_rank.c:253:6: enter_function: entry to ‘compressed_rank_pack’
glib-2.87.0/girepository/cmph/compressed_rank.c:255:12: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_rank.c:257:23: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_rank.c:259:17: call_function: calling ‘compressed_rank_dump’ from ‘compressed_rank_pack’
glib-2.87.0/girepository/cmph/compressed_rank.c:259:17: return_function: returning to ‘compressed_rank_pack’ from ‘compressed_rank_dump’
glib-2.87.0/girepository/cmph/compressed_rank.c:260:17: danger: argument 2 (‘buf’) NULL where non-null expected
#  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): [#def694]
glib-2.87.0/girepository/cmph/compressed_seq.c:60:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lengths’
glib-2.87.0/girepository/cmph/compressed_seq.c:49:57: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:58:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:60:32: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:60:25: danger: ‘lengths + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   58|   		if(vals_table[i] == 0)
#   59|   		{
#   60|-> 			lengths[i] = 0;
#   61|   		}
#   62|   		else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def695]
glib-2.87.0/girepository/cmph/compressed_seq.c:64:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lengths’
glib-2.87.0/girepository/cmph/compressed_seq.c:49:57: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:58:19: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:64:38: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:64:25: danger: ‘lengths + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   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-401): [#def696]
glib-2.87.0/girepository/cmph/compressed_seq.c:109:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lengths’
glib-2.87.0/girepository/cmph/compressed_seq.c:49:57: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:69:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:73:52: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:87:11: branch_true: following ‘true’ branch (when ‘res == 0’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:89:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:102:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:104:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:102:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:109:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:109:9: throw: if ‘select_init’ throws an exception...
glib-2.87.0/girepository/cmph/compressed_seq.c:109:9: danger: ‘lengths’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  107|   	};
#  108|   	
#  109|-> 	select_init(&cs->sel);
#  110|   	 
#  111|   	// FABIANO: before it was (cs->total_length >> cs->rem_r) + 1. But I wiped out the + 1 because

Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
glib-2.87.0/girepository/cmph/compressed_seq.c:113:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lengths’
glib-2.87.0/girepository/cmph/compressed_seq.c:49:57: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:69:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:73:52: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:78:19: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:87:11: branch_true: following ‘true’ branch (when ‘res == 0’)...
glib-2.87.0/girepository/cmph/compressed_seq.c:89:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:102:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:104:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:102:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:109:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:113:9: throw: if ‘select_generate’ throws an exception...
glib-2.87.0/girepository/cmph/compressed_seq.c:113:9: danger: ‘lengths’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  111|   	// FABIANO: before it was (cs->total_length >> cs->rem_r) + 1. But I wiped out the + 1 because
#  112|   	// I changed the select structure to work up to m, instead of up to m - 1.
#  113|-> 	select_generate(&cs->sel, lengths, cs->n, (cs->total_length >> cs->rem_r));
#  114|   	
#  115|   	free(lengths);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def698]
glib-2.87.0/girepository/cmph/compressed_seq.c:202:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/compressed_seq.c:317:6: enter_function: entry to ‘compressed_seq_pack’
glib-2.87.0/girepository/cmph/compressed_seq.c:319:12: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:321:23: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:323:17: call_function: calling ‘compressed_seq_dump’ from ‘compressed_seq_pack’
#  200|   	
#  201|   	// dumping sel
#  202|-> 	select_dump(&cs->sel, &buf_sel, &buflen_sel);
#  203|   	memcpy(*buf + pos, &buflen_sel, sizeof(cmph_uint32));
#  204|   	pos += (cmph_uint32)sizeof(cmph_uint32);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def699]
glib-2.87.0/girepository/cmph/compressed_seq.c:287:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cs.length_rems’ where non-null expected
glib-2.87.0/girepository/cmph/compressed_seq.c:285:43: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_seq.c:287:9: danger: argument 1 (‘calloc((long unsigned int)length_rems_size, 4)’) from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def700]
glib-2.87.0/girepository/cmph/compressed_seq.c:305:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*cs.store_table’ where non-null expected
glib-2.87.0/girepository/cmph/compressed_seq.c:303:43: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/compressed_seq.c:305:9: danger: argument 1 (‘calloc((long unsigned int)store_table_size, 4)’) from [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def701]
glib-2.87.0/girepository/cmph/compressed_seq.c:324:17: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
glib-2.87.0/girepository/cmph/compressed_seq.c:317:6: enter_function: entry to ‘compressed_seq_pack’
glib-2.87.0/girepository/cmph/compressed_seq.c:319:12: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/compressed_seq.c:321:23: branch_true: ...to here
glib-2.87.0/girepository/cmph/compressed_seq.c:323:17: call_function: calling ‘compressed_seq_dump’ from ‘compressed_seq_pack’
glib-2.87.0/girepository/cmph/compressed_seq.c:323:17: return_function: returning to ‘compressed_seq_pack’ from ‘compressed_seq_dump’
glib-2.87.0/girepository/cmph/compressed_seq.c:324:17: danger: argument 2 (‘buf’) NULL where non-null expected
#  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-401): [#def702]
glib-2.87.0/girepository/cmph/fch.c:127:32: warning[-Wanalyzer-malloc-leak]: leak of ‘hashtable’
glib-2.87.0/girepository/cmph/fch.c:126:48: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:127:32: throw: if ‘fch_buckets_get_nbuckets’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:127:32: danger: ‘hashtable’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  125|   	//cmph_uint32 max_size = fch_buckets_get_max_size(buckets);
#  126|   	cmph_uint8 * hashtable = (cmph_uint8 *)calloc((size_t)fch->m, sizeof(cmph_uint8));
#  127|-> 	cmph_uint32 nbuckets = fch_buckets_get_nbuckets(buckets);
#  128|   	cmph_uint32 i = 0, index = 0, j =0;
#  129|   	for (i = 0; i < nbuckets; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
glib-2.87.0/girepository/cmph/fch.c:127:32: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  125|   	//cmph_uint32 max_size = fch_buckets_get_max_size(buckets);
#  126|   	cmph_uint8 * hashtable = (cmph_uint8 *)calloc((size_t)fch->m, sizeof(cmph_uint8));
#  127|-> 	cmph_uint32 nbuckets = fch_buckets_get_nbuckets(buckets);
#  128|   	cmph_uint32 i = 0, index = 0, j =0;
#  129|   	for (i = 0; i < nbuckets; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
glib-2.87.0/girepository/cmph/fch.c:127:32: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  125|   	//cmph_uint32 max_size = fch_buckets_get_max_size(buckets);
#  126|   	cmph_uint8 * hashtable = (cmph_uint8 *)calloc((size_t)fch->m, sizeof(cmph_uint8));
#  127|-> 	cmph_uint32 nbuckets = fch_buckets_get_nbuckets(buckets);
#  128|   	cmph_uint32 i = 0, index = 0, j =0;
#  129|   	for (i = 0; i < nbuckets; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
glib-2.87.0/girepository/cmph/fch.c:131:37: warning[-Wanalyzer-malloc-leak]: leak of ‘hashtable’
glib-2.87.0/girepository/cmph/fch.c:126:48: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:129:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:131:81: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:131:37: throw: if ‘fch_buckets_get_size’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:131:37: danger: ‘hashtable’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  129|   	for (i = 0; i < nbuckets; i++)
#  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);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
glib-2.87.0/girepository/cmph/fch.c:131:37: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  129|   	for (i = 0; i < nbuckets; i++)
#  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);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
glib-2.87.0/girepository/cmph/fch.c:131:37: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  129|   	for (i = 0; i < nbuckets; i++)
#  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);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def708]
glib-2.87.0/girepository/cmph/fch.c:132:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘hashtable’ where non-null expected
glib-2.87.0/girepository/cmph/fch.c:126:48: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/fch.c:129:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:131:81: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:132:17: danger: argument 1 (‘hashtable’) from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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-401): [#def709]
glib-2.87.0/girepository/cmph/fch.c:136:38: warning[-Wanalyzer-malloc-leak]: leak of ‘hashtable’
glib-2.87.0/girepository/cmph/fch.c:126:48: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:129:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:131:81: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:136:38: throw: if ‘fch_buckets_get_key’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:136:38: danger: ‘hashtable’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  134|   		for (j = 0; j < nkeys; j++)
#  135|   		{
#  136|-> 			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|   			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|   			index = hash(fch->h2, key, keylen) % fch->m;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def710]
glib-2.87.0/girepository/cmph/fch.c:136:38: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  134|   		for (j = 0; j < nkeys; j++)
#  135|   		{
#  136|-> 			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|   			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|   			index = hash(fch->h2, key, keylen) % fch->m;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def711]
glib-2.87.0/girepository/cmph/fch.c:136:38: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  134|   		for (j = 0; j < nkeys; j++)
#  135|   		{
#  136|-> 			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|   			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|   			index = hash(fch->h2, key, keylen) % fch->m;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def712]
glib-2.87.0/girepository/cmph/fch.c:137:46: warning[-Wanalyzer-malloc-leak]: leak of ‘hashtable’
glib-2.87.0/girepository/cmph/fch.c:126:48: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:129:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:131:81: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:137:46: throw: if ‘fch_buckets_get_keylength’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:137:46: danger: ‘hashtable’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  135|   		{
#  136|   			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|-> 			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|   			index = hash(fch->h2, key, keylen) % fch->m;
#  139|   			if(hashtable[index]) { // collision detected

Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
glib-2.87.0/girepository/cmph/fch.c:137:46: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  135|   		{
#  136|   			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|-> 			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|   			index = hash(fch->h2, key, keylen) % fch->m;
#  139|   			if(hashtable[index]) { // collision detected

Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
glib-2.87.0/girepository/cmph/fch.c:137:46: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  135|   		{
#  136|   			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|-> 			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|   			index = hash(fch->h2, key, keylen) % fch->m;
#  139|   			if(hashtable[index]) { // collision detected

Error: GCC_ANALYZER_WARNING (CWE-401): [#def715]
glib-2.87.0/girepository/cmph/fch.c:138:33: warning[-Wanalyzer-malloc-leak]: leak of ‘hashtable’
glib-2.87.0/girepository/cmph/fch.c:126:48: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:129:21: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:131:81: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:138:33: throw: if ‘hash’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:138:33: danger: ‘hashtable’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  136|   			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|   			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|-> 			index = hash(fch->h2, key, keylen) % fch->m;
#  139|   			if(hashtable[index]) { // collision detected
#  140|   				free(hashtable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
glib-2.87.0/girepository/cmph/fch.c:138:33: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  136|   			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|   			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|-> 			index = hash(fch->h2, key, keylen) % fch->m;
#  139|   			if(hashtable[index]) { // collision detected
#  140|   				free(hashtable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
glib-2.87.0/girepository/cmph/fch.c:138:33: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:187:27: call_function: calling ‘check_for_collisions_h2’ from ‘searching’
#  136|   			char * key = fch_buckets_get_key(buckets, sorted_indexes[i], j);
#  137|   			cmph_uint32 keylen = fch_buckets_get_keylength(buckets, sorted_indexes[i], j);
#  138|-> 			index = hash(fch->h2, key, keylen) % fch->m;
#  139|   			if(hashtable[index]) { // collision detected
#  140|   				free(hashtable);

Error: CPPCHECK_WARNING (CWE-476): [#def718]
glib-2.87.0/girepository/cmph/fch.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  153|     for (i = 0; i < n; i++) {
#  154|       j = (cmph_uint32) rand() % n;
#  155|->     b = vector[i];
#  156|       vector[i] = vector[j];
#  157|       vector[j] = b;

Error: CPPCHECK_WARNING (CWE-476): [#def719]
glib-2.87.0/girepository/cmph/fch.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  154|       j = (cmph_uint32) rand() % n;
#  155|       b = vector[i];
#  156|->     vector[i] = vector[j];
#  157|       vector[j] = b;
#  158|     }

Error: CPPCHECK_WARNING (CWE-476): [#def720]
glib-2.87.0/girepository/cmph/fch.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  155|       b = vector[i];
#  156|       vector[i] = vector[j];
#  157|->     vector[j] = b;
#  158|     }
#  159|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
glib-2.87.0/girepository/cmph/fch.c:168:48: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:168:48: throw: if ‘fch_buckets_get_nbuckets’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:168:48: danger: ‘map_table’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  166|   	cmph_uint32 searching_iterations     = 0;
#  167|   	cmph_uint8 restart                   = 0;
#  168|-> 	cmph_uint32 nbuckets                 = fch_buckets_get_nbuckets(buckets);
#  169|   	cmph_uint32 i, j, z, counter = 0, filled_count = 0;
#  170|   	if (fch->g) free (fch->g);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
glib-2.87.0/girepository/cmph/fch.c:168:48: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:168:48: throw: if ‘fch_buckets_get_nbuckets’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:168:48: danger: ‘random_table’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  166|   	cmph_uint32 searching_iterations     = 0;
#  167|   	cmph_uint8 restart                   = 0;
#  168|-> 	cmph_uint32 nbuckets                 = fch_buckets_get_nbuckets(buckets);
#  169|   	cmph_uint32 i, j, z, counter = 0, filled_count = 0;
#  170|   	if (fch->g) free (fch->g);

Error: CPPCHECK_WARNING (CWE-476): [#def723]
glib-2.87.0/girepository/cmph/fch.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def724]
glib-2.87.0/girepository/cmph/fch.c:177:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:177:29: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:177:17: danger: ‘random_table + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  175|   	for(i = 0; i < fch->m; i++)
#  176|   	{
#  177|-> 		random_table[i] = i;
#  178|   	}
#  179|   	permut(random_table, fch->m);

Error: CPPCHECK_WARNING (CWE-476): [#def725]
glib-2.87.0/girepository/cmph/fch.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: map_table
#  180|   	for(i = 0; i < fch->m; i++)
#  181|   	{
#  182|-> 		map_table[random_table[i]] = i;
#  183|   	}
#  184|   	do {   

Error: CPPCHECK_WARNING (CWE-476): [#def726]
glib-2.87.0/girepository/cmph/fch.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def727]
glib-2.87.0/girepository/cmph/fch.c:182:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:182:39: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:182:27: danger: ‘random_table + (long unsigned int)i * 4’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/1)
#  180|   	for(i = 0; i < fch->m; i++)
#  181|   	{
#  182|-> 		map_table[random_table[i]] = i;
#  183|   	}
#  184|   	do {   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
glib-2.87.0/girepository/cmph/fch.c:185:30: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:185:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:185:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:185:30: throw: if ‘hash_state_destroy’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:185:30: danger: ‘map_table’ leaks here; was allocated at [(2)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/1)
#  183|   	}
#  184|   	do {   
#  185|-> 		if (fch->h2) hash_state_destroy(fch->h2);
#  186|   		fch->h2 = hash_state_new(fch->hashfuncs[1], fch->m);  
#  187|   		restart = check_for_collisions_h2(fch, buckets, sorted_indexes);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
glib-2.87.0/girepository/cmph/fch.c:185:30: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:185:20: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/fch.c:185:30: branch_true: ...to here
glib-2.87.0/girepository/cmph/fch.c:185:30: throw: if ‘hash_state_destroy’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:185:30: danger: ‘random_table’ leaks here; was allocated at [(2)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/1)
#  183|   	}
#  184|   	do {   
#  185|-> 		if (fch->h2) hash_state_destroy(fch->h2);
#  186|   		fch->h2 = hash_state_new(fch->hashfuncs[1], fch->m);  
#  187|   		restart = check_for_collisions_h2(fch, buckets, sorted_indexes);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
glib-2.87.0/girepository/cmph/fch.c:186:27: warning[-Wanalyzer-malloc-leak]: leak of ‘map_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:164:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:185:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:186:27: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:186:27: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:186:27: danger: ‘map_table’ leaks here; was allocated at [(2)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/1)
#  184|   	do {   
#  185|   		if (fch->h2) hash_state_destroy(fch->h2);
#  186|-> 		fch->h2 = hash_state_new(fch->hashfuncs[1], fch->m);  
#  187|   		restart = check_for_collisions_h2(fch, buckets, sorted_indexes);
#  188|   		filled_count = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
glib-2.87.0/girepository/cmph/fch.c:186:27: warning[-Wanalyzer-malloc-leak]: leak of ‘random_table’
glib-2.87.0/girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
glib-2.87.0/girepository/cmph/fch.c:163:54: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:179:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
glib-2.87.0/girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:180:20: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:185:20: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/fch.c:186:27: branch_false: ...to here
glib-2.87.0/girepository/cmph/fch.c:186:27: throw: if ‘hash_state_new’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:186:27: danger: ‘random_table’ leaks here; was allocated at [(2)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/1)
#  184|   	do {   
#  185|   		if (fch->h2) hash_state_destroy(fch->h2);
#  186|-> 		fch->h2 = hash_state_new(fch->hashfuncs[1], fch->m);  
#  187|   		restart = check_for_collisions_h2(fch, buckets, sorted_indexes);
#  188|   		filled_count = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def732]
glib-2.87.0/girepository/cmph/fch.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  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: CPPCHECK_WARNING (CWE-476): [#def733]
glib-2.87.0/girepository/cmph/fch.c:296: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  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: CPPCHECK_WARNING (CWE-476): [#def734]
glib-2.87.0/girepository/cmph/fch.c:298: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  296|   	fchf->g = fch->g;
#  297|   	fch->g = NULL; //transfer memory ownership
#  298|-> 	fchf->h1 = fch->h1;
#  299|   	fch->h1 = NULL; //transfer memory ownership
#  300|   	fchf->h2 = fch->h2;

Error: CPPCHECK_WARNING (CWE-476): [#def735]
glib-2.87.0/girepository/cmph/fch.c:300: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  298|   	fchf->h1 = fch->h1;
#  299|   	fch->h1 = NULL; //transfer memory ownership
#  300|-> 	fchf->h2 = fch->h2;
#  301|   	fch->h2 = NULL; //transfer memory ownership
#  302|   	fchf->p2 = fch->p2;

Error: CPPCHECK_WARNING (CWE-476): [#def736]
glib-2.87.0/girepository/cmph/fch.c:302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  300|   	fchf->h2 = fch->h2;
#  301|   	fch->h2 = NULL; //transfer memory ownership
#  302|-> 	fchf->p2 = fch->p2;
#  303|   	fchf->p1 = fch->p1;
#  304|   	fchf->b = fch->b;

Error: CPPCHECK_WARNING (CWE-476): [#def737]
glib-2.87.0/girepository/cmph/fch.c:303: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  301|   	fch->h2 = NULL; //transfer memory ownership
#  302|   	fchf->p2 = fch->p2;
#  303|-> 	fchf->p1 = fch->p1;
#  304|   	fchf->b = fch->b;
#  305|   	fchf->c = fch->c;

Error: CPPCHECK_WARNING (CWE-476): [#def738]
glib-2.87.0/girepository/cmph/fch.c:304: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  302|   	fchf->p2 = fch->p2;
#  303|   	fchf->p1 = fch->p1;
#  304|-> 	fchf->b = fch->b;
#  305|   	fchf->c = fch->c;
#  306|   	fchf->m = fch->m;

Error: CPPCHECK_WARNING (CWE-476): [#def739]
glib-2.87.0/girepository/cmph/fch.c:305: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  303|   	fchf->p1 = fch->p1;
#  304|   	fchf->b = fch->b;
#  305|-> 	fchf->c = fch->c;
#  306|   	fchf->m = fch->m;
#  307|   	mphf->data = fchf;

Error: CPPCHECK_WARNING (CWE-476): [#def740]
glib-2.87.0/girepository/cmph/fch.c:306: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  304|   	fchf->b = fch->b;
#  305|   	fchf->c = fch->c;
#  306|-> 	fchf->m = fch->m;
#  307|   	mphf->data = fchf;
#  308|   	mphf->size = fch->m;

Error: CPPCHECK_WARNING (CWE-476): [#def741]
glib-2.87.0/girepository/cmph/fch.c:307: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  305|   	fchf->c = fch->c;
#  306|   	fchf->m = fch->m;
#  307|-> 	mphf->data = fchf;
#  308|   	mphf->size = fch->m;
#  309|   	//DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def742]
glib-2.87.0/girepository/cmph/fch.c:308: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  306|   	fchf->m = fch->m;
#  307|   	mphf->data = fchf;
#  308|-> 	mphf->size = fch->m;
#  309|   	//DEBUGP("Successfully generated minimal perfect hash\n");
#  310|   	if (mph->verbosity)

Error: CPPCHECK_WARNING (CWE-476): [#def743]
glib-2.87.0/girepository/cmph/fch.c:373: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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-476): [#def744]
glib-2.87.0/girepository/cmph/fch.c:373:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fch’
glib-2.87.0/girepository/cmph/fch.c:365:41: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/fch.c:373:9: danger: ‘fch’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def745]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def746]
glib-2.87.0/girepository/cmph/fch.c:377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  379|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def747]
glib-2.87.0/girepository/cmph/fch.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  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);
#  379|   	free(buf);
#  380|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def748]
glib-2.87.0/girepository/cmph/fch.c:378:19: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/fch.c:376:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:378:19: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:378:19: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  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);
#  379|   	free(buf);
#  380|   	

Error: CPPCHECK_WARNING (CWE-476): [#def749]
glib-2.87.0/girepository/cmph/fch.c:384: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  382|   	mphf->data = fch;
#  383|   	//DEBUGP("Reading h2\n");
#  384|-> 	fch->h2 = NULL;
#  385|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  386|   	//DEBUGP("Hash state of h2 has %u bytes\n", buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def750]
glib-2.87.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
#  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: CPPCHECK_WARNING (CWE-476): [#def751]
glib-2.87.0/girepository/cmph/fch.c:388: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  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);
#  390|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def752]
glib-2.87.0/girepository/cmph/fch.c:389: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  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);
#  390|   	free(buf);
#  391|   	

Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
glib-2.87.0/girepository/cmph/fch.c:389:19: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
glib-2.87.0/girepository/cmph/fch.c:376:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:387:23: acquire_memory: allocated here
glib-2.87.0/girepository/cmph/fch.c:389:19: throw: if ‘hash_state_load’ throws an exception...
glib-2.87.0/girepository/cmph/fch.c:389:19: danger: ‘buf’ leaks here; was allocated at [(2)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/1)
#  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);
#  390|   	free(buf);
#  391|   	

Error: CPPCHECK_WARNING (CWE-476): [#def754]
glib-2.87.0/girepository/cmph/fch.c:400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  398|   	nbytes = fread(&(fch->p2), sizeof(double), (size_t)1, f);
#  399|   
#  400|-> 	fch->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*fch->b);
#  401|   	nbytes = fread(fch->g, fch->b*sizeof(cmph_uint32), (size_t)1, f);
#  402|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def755]
glib-2.87.0/girepository/cmph/fch.c:401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  399|   
#  400|   	fch->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*fch->b);
#  401|-> 	nbytes = fread(fch->g, fch->b*sizeof(cmph_uint32), (size_t)1, f);
#  402|   	if (nbytes == 0 && ferror(f)) {
#  403|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def756]
glib-2.87.0/girepository/cmph/fch_buckets.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  179|   	
#  180|   	// collect how many buckets for each size.
#  181|-> 	for(i = 0; i < buckets->nbuckets; i++) nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  182|   	
#  183|   	// calculating offset considering a decreasing order of buckets size.

Error: CPPCHECK_WARNING (CWE-476): [#def757]
glib-2.87.0/girepository/cmph/fch_buckets.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  182|   	
#  183|   	// calculating offset considering a decreasing order of buckets size.
#  184|-> 	value = nbuckets_size[buckets->max_size];
#  185|   	nbuckets_size[buckets->max_size] = sum;
#  186|   	for(i = (int)buckets->max_size - 1; i >= 0; i--)

Error: CPPCHECK_WARNING (CWE-476): [#def758]
glib-2.87.0/girepository/cmph/fch_buckets.c:185: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  183|   	// calculating offset considering a decreasing order of buckets size.
#  184|   	value = nbuckets_size[buckets->max_size];
#  185|-> 	nbuckets_size[buckets->max_size] = sum;
#  186|   	for(i = (int)buckets->max_size - 1; i >= 0; i--)
#  187|   	{

Error: CPPCHECK_WARNING (CWE-476): [#def759]
glib-2.87.0/girepository/cmph/fch_buckets.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  187|   	{
#  188|   		sum += value;
#  189|-> 		value = nbuckets_size[i];
#  190|   		nbuckets_size[i] = sum;
#  191|   		

Error: CPPCHECK_WARNING (CWE-476): [#def760]
glib-2.87.0/girepository/cmph/fch_buckets.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  188|   		sum += value;
#  189|   		value = nbuckets_size[i];
#  190|-> 		nbuckets_size[i] = sum;
#  191|   		
#  192|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def761]
glib-2.87.0/girepository/cmph/fch_buckets.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  193|   	for(i = 0; i < buckets->nbuckets; i++) 
#  194|   	{
#  195|-> 		sorted_indexes[nbuckets_size[fch_bucket_size(buckets->values + i)]] = (cmph_uint32)i;
#  196|   		nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  197|   	}	

Error: CPPCHECK_WARNING (CWE-476): [#def762]
glib-2.87.0/girepository/cmph/fch_buckets.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sorted_indexes
#  193|   	for(i = 0; i < buckets->nbuckets; i++) 
#  194|   	{
#  195|-> 		sorted_indexes[nbuckets_size[fch_bucket_size(buckets->values + i)]] = (cmph_uint32)i;
#  196|   		nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  197|   	}	

Error: CPPCHECK_WARNING (CWE-476): [#def763]
glib-2.87.0/girepository/cmph/fch_buckets.c:196: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  194|   	{
#  195|   		sorted_indexes[nbuckets_size[fch_bucket_size(buckets->values + i)]] = (cmph_uint32)i;
#  196|-> 		nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  197|   	}	
#  198|   	free(nbuckets_size);

Error: CPPCHECK_WARNING (CWE-476): [#def764]
glib-2.87.0/girepository/cmph/graph.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: deleted
#  210|   	{
#  211|   		DEBUGP("Deleting edge %u (%u->%u)\n", e, g->edges[abs_edge(e, 0)], g->edges[abs_edge(e, 1)]);
#  212|-> 		SETBIT(deleted, abs_edge(e, 0));
#  213|   		
#  214|   		v2 = g->edges[abs_edge(e, 0)];

Error: CPPCHECK_WARNING (CWE-476): [#def765]
glib-2.87.0/girepository/cmph/graph.c:234: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: deleted
#  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): [#def766]
glib-2.87.0/girepository/cmph/graph.c:234:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘deleted’ where non-null expected
glib-2.87.0/girepository/cmph/graph.c:232:45: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/graph.c:234:9: danger: argument 1 (‘deleted’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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: CPPCHECK_WARNING (CWE-476): [#def767]
glib-2.87.0/girepository/cmph/graph.c:265: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: deleted
#  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): [#def768]
glib-2.87.0/girepository/cmph/graph.c:265:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘deleted’ where non-null expected
glib-2.87.0/girepository/cmph/graph.c:263:45: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/graph.c:265:9: danger: argument 1 (‘deleted’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def769]
glib-2.87.0/girepository/cmph/graph.c:269:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*g.critical_nodes’ where non-null expected
glib-2.87.0/girepository/cmph/graph.c:267:43: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/graph.c:269:9: danger: argument 1 (‘malloc(((long unsigned int)*g.nnodes >> 3) + 1)’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def770]
glib-2.87.0/girepository/cmph/hash.c:68:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*buf’ where non-null expected
glib-2.87.0/girepository/cmph/hash.c:58:9: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/hash.c:60:17: branch_true: ...to here
glib-2.87.0/girepository/cmph/hash.c:62:28: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/hash.c:67:54: branch_false: ...to here
glib-2.87.0/girepository/cmph/hash.c:67:24: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/hash.c:68:9: danger: argument 1 (‘malloc(strlen(cmph_hash_names[<unknown>]) + (long unsigned int)*buflen + 1)’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#   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: CPPCHECK_WARNING (CWE-476): [#def771]
glib-2.87.0/girepository/cmph/jenkins_hash.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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: CPPCHECK_WARNING (CWE-476): [#def772]
glib-2.87.0/girepository/cmph/jenkins_hash.c:237: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def773]
glib-2.87.0/girepository/cmph/jenkins_hash.c:237:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dest_state’
glib-2.87.0/girepository/cmph/jenkins_hash.c:236:58: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/jenkins_hash.c:237:9: danger: ‘dest_state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def774]
glib-2.87.0/girepository/cmph/jenkins_hash.c:238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dest_state
#  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;
#  240|   }

Error: CPPCHECK_WARNING (CWE-476): [#def775]
glib-2.87.0/girepository/cmph/jenkins_hash.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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): [#def776]
glib-2.87.0/girepository/cmph/jenkins_hash.c:245:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
glib-2.87.0/girepository/cmph/jenkins_hash.c:244:53: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/jenkins_hash.c:245:9: danger: ‘state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  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: CPPCHECK_WARNING (CWE-476): [#def777]
glib-2.87.0/girepository/cmph/jenkins_hash.c:246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
#  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);
#  248|   	return state;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def778]
glib-2.87.0/girepository/cmph/select.c:84:55: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
glib-2.87.0/girepository/cmph/select.c:94:6: enter_function: entry to ‘select_generate’
glib-2.87.0/girepository/cmph/select.c:114:40: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/select.c:143:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/select.c:157:9: branch_true: ...to here
glib-2.87.0/girepository/cmph/select.c:158:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/select.c:164:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/select.c:164:9: call_function: calling ‘select_generate_sel_table’ from ‘select_generate’
#   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): [#def779]
glib-2.87.0/girepository/cmph/select.c:88:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*sel.select_table’
glib-2.87.0/girepository/cmph/select.c:94:6: enter_function: entry to ‘select_generate’
glib-2.87.0/girepository/cmph/select.c:120:44: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/select.c:143:19: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/select.c:157:9: branch_true: ...to here
glib-2.87.0/girepository/cmph/select.c:158:11: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/cmph/select.c:164:9: branch_false: ...to here
glib-2.87.0/girepository/cmph/select.c:164:9: call_function: calling ‘select_generate_sel_table’ from ‘select_generate’
#   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): [#def780]
glib-2.87.0/girepository/cmph/select.c:278:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*sel.bits_vec’ where non-null expected
glib-2.87.0/girepository/cmph/select.c:270:40: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/select.c:278:9: danger: argument 1 (‘*sel.bits_vec’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def781]
glib-2.87.0/girepository/cmph/select.c:280:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*sel.select_table’ where non-null expected
glib-2.87.0/girepository/cmph/select.c:276:44: acquire_memory: this call could return NULL
glib-2.87.0/girepository/cmph/select.c:280:9: danger: argument 1 (‘*sel.select_table’) from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  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): [#def782]
glib-2.87.0/girepository/cmph/select.c:298:17: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
glib-2.87.0/girepository/cmph/select.c:291:6: enter_function: entry to ‘select_pack’
glib-2.87.0/girepository/cmph/select.c:293:12: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/cmph/select.c:295:23: branch_true: ...to here
glib-2.87.0/girepository/cmph/select.c:297:17: call_function: calling ‘select_dump’ from ‘select_pack’
glib-2.87.0/girepository/cmph/select.c:297:17: return_function: returning to ‘select_pack’ from ‘select_dump’
glib-2.87.0/girepository/cmph/select.c:298:17: danger: argument 2 (‘buf’) NULL where non-null expected
#  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): [#def783]
glib-2.87.0/girepository/compiler/compiler.c:103:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:103:23: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:103:23: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  101|     if (written < typelib->len)
#  102|       {
#  103|->       char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
#  104|         g_fprintf (stderr, "%s\n", message);
#  105|         g_free (message);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
glib-2.87.0/girepository/compiler/compiler.c:103:23: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:103:23: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:103:23: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  101|     if (written < typelib->len)
#  102|       {
#  103|->       char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
#  104|         g_fprintf (stderr, "%s\n", message);
#  105|         g_free (message);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def785]
glib-2.87.0/girepository/compiler/compiler.c:104:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:104:7: throw: if ‘g_fprintf’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:104:7: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  102|       {
#  103|         char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
#  104|->       g_fprintf (stderr, "%s\n", message);
#  105|         g_free (message);
#  106|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
glib-2.87.0/girepository/compiler/compiler.c:104:7: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:104:7: throw: if ‘g_fprintf’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:104:7: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  102|       {
#  103|         char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
#  104|->       g_fprintf (stderr, "%s\n", message);
#  105|         g_free (message);
#  106|         goto out;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def787]
glib-2.87.0/girepository/compiler/compiler.c:105:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:105:7: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:105:7: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:105:7: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:105:7: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  103|         char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
#  104|         g_fprintf (stderr, "%s\n", message);
#  105|->       g_free (message);
#  106|         goto out;
#  107|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
glib-2.87.0/girepository/compiler/compiler.c:105:7: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:105:7: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:105:7: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:105:7: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:105:7: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  103|         char *message = g_strdup_printf (_("Error: Could not write the whole output: %s"), g_strerror (errno));
#  104|         g_fprintf (stderr, "%s\n", message);
#  105|->       g_free (message);
#  106|         goto out;
#  107|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def789]
glib-2.87.0/girepository/compiler/compiler.c:126:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:126:3: branch_true: following ‘true’ branch (when ‘file_obj’ is non-NULL)...
glib-2.87.0/girepository/compiler/compiler.c:126:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:126:3: throw: if ‘g_object_unref’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:126:3: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  124|     success = TRUE;
#  125|   out:
#  126|->   g_clear_object (&file_obj);
#  127|     g_clear_object (&tmp_file_obj);
#  128|     g_free (filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
glib-2.87.0/girepository/compiler/compiler.c:126:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:126:3: branch_true: following ‘true’ branch (when ‘file_obj’ is non-NULL)...
glib-2.87.0/girepository/compiler/compiler.c:126:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:126:3: throw: if ‘g_object_unref’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:126:3: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  124|     success = TRUE;
#  125|   out:
#  126|->   g_clear_object (&file_obj);
#  127|     g_clear_object (&tmp_file_obj);
#  128|     g_free (filename);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def791]
glib-2.87.0/girepository/compiler/compiler.c:127:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:127:3: branch_true: following ‘true’ branch (when ‘tmp_file_obj’ is non-NULL)...
glib-2.87.0/girepository/compiler/compiler.c:127:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:127:3: throw: if ‘g_object_unref’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:127:3: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  125|   out:
#  126|     g_clear_object (&file_obj);
#  127|->   g_clear_object (&tmp_file_obj);
#  128|     g_free (filename);
#  129|     g_free (tmp_filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def792]
glib-2.87.0/girepository/compiler/compiler.c:127:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:127:3: branch_true: following ‘true’ branch (when ‘tmp_file_obj’ is non-NULL)...
glib-2.87.0/girepository/compiler/compiler.c:127:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:127:3: throw: if ‘g_object_unref’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:127:3: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  125|   out:
#  126|     g_clear_object (&file_obj);
#  127|->   g_clear_object (&tmp_file_obj);
#  128|     g_free (filename);
#  129|     g_free (tmp_filename);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def793]
glib-2.87.0/girepository/compiler/compiler.c:128:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:128:3: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:128:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:128:3: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:128:3: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  126|     g_clear_object (&file_obj);
#  127|     g_clear_object (&tmp_file_obj);
#  128|->   g_free (filename);
#  129|     g_free (tmp_filename);
#  130|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
glib-2.87.0/girepository/compiler/compiler.c:128:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:128:3: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:128:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:128:3: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:128:3: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  126|     g_clear_object (&file_obj);
#  127|     g_clear_object (&tmp_file_obj);
#  128|->   g_free (filename);
#  129|     g_free (tmp_filename);
#  130|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def795]
glib-2.87.0/girepository/compiler/compiler.c:129:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:129:3: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:129:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:129:3: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:129:3: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  127|     g_clear_object (&tmp_file_obj);
#  128|     g_free (filename);
#  129|->   g_free (tmp_filename);
#  130|   
#  131|     return success;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
glib-2.87.0/girepository/compiler/compiler.c:129:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:129:3: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:129:3: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:129:3: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/compiler/compiler.c:129:3: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  127|     g_clear_object (&tmp_file_obj);
#  128|     g_free (filename);
#  129|->   g_free (tmp_filename);
#  130|   
#  131|     return success;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def797]
glib-2.87.0/girepository/compiler/compiler.c:131:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_resource: opened here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:131:10: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  129|     g_free (tmp_filename);
#  130|   
#  131|->   return success;
#  132|   }
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def798]
glib-2.87.0/girepository/compiler/compiler.c:131:10: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
glib-2.87.0/girepository/compiler/compiler.c:65:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:78:10: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:89:27: acquire_memory: allocated here
glib-2.87.0/girepository/compiler/compiler.c:91:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/compiler/compiler.c:100:13: branch_false: ...to here
glib-2.87.0/girepository/compiler/compiler.c:101:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/compiler/compiler.c:103:102: branch_true: ...to here
glib-2.87.0/girepository/compiler/compiler.c:131:10: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  129|     g_free (tmp_filename);
#  130|   
#  131|->   return success;
#  132|   }
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def799]
glib-2.87.0/girepository/gdump.c:61:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#   59|     if (ret < count)
#   60|       {
#   61|->       g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
#   62|                      "Failed to write to file");
#   63|         return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def800]
glib-2.87.0/girepository/gdump.c:61:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#   59|     if (ret < count)
#   60|       {
#   61|->       g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
#   62|                      "Failed to write to file");
#   63|         return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
glib-2.87.0/girepository/gdump.c:61:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#   59|     if (ret < count)
#   60|       {
#   61|->       g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
#   62|                      "Failed to write to file");
#   63|         return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
glib-2.87.0/girepository/gdump.c:61:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#   59|     if (ret < count)
#   60|       {
#   61|->       g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
#   62|                      "Failed to write to file");
#   63|         return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def803]
glib-2.87.0/girepository/gdump.c:131:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/girepository/gdump.c:129:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/girepository/gdump.c:131:9: throw: if ‘g_markup_vprintf_escaped’ throws an exception...
glib-2.87.0/girepository/gdump.c:131:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  129|     va_start (args, fmt);
#  130|   
#  131|->   str = g_markup_vprintf_escaped (fmt, args);
#  132|     if (!write_all (out, str, strlen (str), &written, &error))
#  133|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def804]
glib-2.87.0/girepository/gdump.c:149:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#  147|     if (!write_all (out, str, strlen (str), &written, &error))
#  148|       {
#  149|->       g_critical ("failed to write to iochannel: %s", error->message);
#  150|         g_clear_error (&error);
#  151|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def805]
glib-2.87.0/girepository/gdump.c:149:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#  147|     if (!write_all (out, str, strlen (str), &written, &error))
#  148|       {
#  149|->       g_critical ("failed to write to iochannel: %s", error->message);
#  150|         g_clear_error (&error);
#  151|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
glib-2.87.0/girepository/gdump.c:149:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#  147|     if (!write_all (out, str, strlen (str), &written, &error))
#  148|       {
#  149|->       g_critical ("failed to write to iochannel: %s", error->message);
#  150|         g_clear_error (&error);
#  151|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
glib-2.87.0/girepository/gdump.c:149:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
#  147|     if (!write_all (out, str, strlen (str), &written, &error))
#  148|       {
#  149|->       g_critical ("failed to write to iochannel: %s", error->message);
#  150|         g_clear_error (&error);
#  151|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def808]
glib-2.87.0/girepository/gdump.c:676:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:675:25: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:676:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/girepository/gdump.c:676:7: danger: ‘fopen(input_filename, "rbe")’ leaks here; was opened at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  674|       {
#  675|         int saved_errno = errno;
#  676|->       g_set_error (error, G_FILE_ERROR, (int) g_file_error_from_errno (saved_errno),
#  677|                      "Failed to open ‘%s’: %s", output_filename, g_strerror (saved_errno));
#  678|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
glib-2.87.0/girepository/gdump.c:676:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:675:25: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:676:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/girepository/gdump.c:676:7: danger: ‘fopen(input_filename, "rbe")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  674|       {
#  675|         int saved_errno = errno;
#  676|->       g_set_error (error, G_FILE_ERROR, (int) g_file_error_from_errno (saved_errno),
#  677|                      "Failed to open ‘%s’: %s", output_filename, g_strerror (saved_errno));
#  678|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def810]
glib-2.87.0/girepository/gdump.c:676:47: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:675:25: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:676:47: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/girepository/gdump.c:676:47: danger: ‘fopen(input_filename, "rbe")’ leaks here; was opened at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  674|       {
#  675|         int saved_errno = errno;
#  676|->       g_set_error (error, G_FILE_ERROR, (int) g_file_error_from_errno (saved_errno),
#  677|                      "Failed to open ‘%s’: %s", output_filename, g_strerror (saved_errno));
#  678|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def811]
glib-2.87.0/girepository/gdump.c:676:47: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:675:25: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:676:47: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/girepository/gdump.c:676:47: danger: ‘fopen(input_filename, "rbe")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  674|       {
#  675|         int saved_errno = errno;
#  676|->       g_set_error (error, G_FILE_ERROR, (int) g_file_error_from_errno (saved_errno),
#  677|                      "Failed to open ‘%s’: %s", output_filename, g_strerror (saved_errno));
#  678|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def812]
glib-2.87.0/girepository/gdump.c:688:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:688:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/girepository/gdump.c:688:18: danger: ‘fopen(input_filename, "rbe")’ leaks here; was opened at [(4)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/3)
#  686|     goutput_write (output, "<dump>\n");
#  687|   
#  688|->   output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|     while (!reached_eof)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def813]
glib-2.87.0/girepository/gdump.c:688:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:688:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/girepository/gdump.c:688:18: danger: ‘fopen(output_filename, "wbe")’ leaks here; was opened at [(6)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/5)
#  686|     goutput_write (output, "<dump>\n");
#  687|   
#  688|->   output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|     while (!reached_eof)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
glib-2.87.0/girepository/gdump.c:688:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:688:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/girepository/gdump.c:688:18: danger: ‘fopen(input_filename, "rbe")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/3)
#  686|     goutput_write (output, "<dump>\n");
#  687|   
#  688|->   output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|     while (!reached_eof)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
glib-2.87.0/girepository/gdump.c:688:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:688:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/girepository/gdump.c:688:18: danger: ‘fopen(output_filename, "wbe")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/5)
#  686|     goutput_write (output, "<dump>\n");
#  687|   
#  688|->   output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|     while (!reached_eof)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def816]
glib-2.87.0/girepository/gdump.c:690:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:690:10: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:693:20: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:693:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’
#  688|     output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|->   while (!reached_eof)
#  691|       {
#  692|         size_t len;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def817]
glib-2.87.0/girepository/gdump.c:690:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_resource: opened here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:690:10: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:693:20: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:693:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’
#  688|     output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|->   while (!reached_eof)
#  691|       {
#  692|         size_t len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def818]
glib-2.87.0/girepository/gdump.c:690:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:660:11: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:690:10: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:693:20: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:693:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’
#  688|     output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|->   while (!reached_eof)
#  691|       {
#  692|         size_t len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def819]
glib-2.87.0/girepository/gdump.c:690:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’
glib-2.87.0/girepository/gdump.c:637:1: enter_function: entry to ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:650:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:660:11: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:661:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:672:12: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:672:12: acquire_memory: allocated here
glib-2.87.0/girepository/gdump.c:673:6: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/gdump.c:685:3: branch_false: ...to here
glib-2.87.0/girepository/gdump.c:685:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:685:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:686:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’
glib-2.87.0/girepository/gdump.c:686:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’
glib-2.87.0/girepository/gdump.c:690:10: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/gdump.c:693:20: branch_true: ...to here
glib-2.87.0/girepository/gdump.c:693:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’
#  688|     output_types = g_hash_table_new (NULL, NULL);
#  689|   
#  690|->   while (!reached_eof)
#  691|       {
#  692|         size_t len;

Error: CPPCHECK_WARNING (CWE-457): [#def820]
glib-2.87.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: GCC_ANALYZER_WARNING (CWE-404): [#def821]
glib-2.87.0/girepository/girmodule.c:122:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/girepository/girmodule.c:120:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/girepository/girmodule.c:122:15: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/girepository/girmodule.c:122:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  120|     va_start (args, msg);
#  121|   
#  122|->   formatted = g_strdup_vprintf (msg, args);
#  123|   
#  124|     context = g_string_new ("");

Error: COMPILER_WARNING (CWE-476): [#def822]
glib-2.87.0/girepository/girparser.c:684:11: warning[-Wnull-dereference]: potential null pointer dereference
#  684 |       if (*str == '<')
#      |           ^~~~
#  682|         g_assert (str != NULL);
#  683|   
#  684|->       if (*str == '<')
#  685|           {
#  686|             char *tmp, *end;

Error: COMPILER_WARNING (CWE-704): [#def823]
glib-2.87.0/girepository/girparser.c: scope_hint: In function ‘parse_type_internal’
glib-2.87.0/girepository/girparser.c:689:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  689 |           end = strchr (str, '>');
#      |               ^
#  687|             (str)++;
#  688|   
#  689|->           end = strchr (str, '>');
#  690|             if (end == NULL)
#  691|               {

Error: COMPILER_WARNING (CWE-704): [#def824]
glib-2.87.0/girepository/girparser.c:689:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  687|             (str)++;
#  688|   
#  689|->           end = strchr (str, '>');
#  690|             if (end == NULL)
#  691|               {

Error: CPPCHECK_WARNING (CWE-457): [#def825]
glib-2.87.0/girepository/girparser.c:1727: error[legacyUninitvar]: Uninitialized variable: target_state
# 1725|       g_assert_not_reached ();
# 1726|   
# 1727|->   if (!introspectable_prelude (context, attribute_names, attribute_values, ctx, target_state))
# 1728|       return TRUE;
# 1729|   

Error: COMPILER_WARNING (CWE-704): [#def826]
glib-2.87.0/girepository/girparser.c: scope_hint: In function ‘parse_value’
glib-2.87.0/girepository/girparser.c:1787:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1787 |   shift_op = strstr (str, "<<");
#      |            ^
# 1785|   
# 1786|     /* FIXME just a quick hack */
# 1787|->   shift_op = strstr (str, "<<");
# 1788|   
# 1789|     if (shift_op)

Error: COMPILER_WARNING (CWE-704): [#def827]
glib-2.87.0/girepository/girparser.c:1787:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1785|   
# 1786|     /* FIXME just a quick hack */
# 1787|->   shift_op = strstr (str, "<<");
# 1788|   
# 1789|     if (shift_op)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def828]
glib-2.87.0/girepository/girwriter.c:81:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/girepository/girwriter.c:80:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/girepository/girwriter.c:81:7: throw: if ‘g_markup_vprintf_escaped’ throws an exception...
glib-2.87.0/girepository/girwriter.c:81:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   79|   
#   80|     va_start (ap, fmt);
#   81|->   s = g_markup_vprintf_escaped (fmt, ap);
#   82|     fputs (s, xml->file);
#   83|     g_free (s);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def829]
glib-2.87.0/girepository/girwriter.c:139:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘ofile’
glib-2.87.0/girepository/girwriter.c:1349:1: enter_function: entry to ‘gi_ir_writer_write’
glib-2.87.0/girepository/girwriter.c:1361:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
glib-2.87.0/girepository/girwriter.c:1367:10: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1371:15: acquire_resource: opened here
glib-2.87.0/girepository/girwriter.c:1373:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/girwriter.c:1382:7: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1385:9: call_function: inlined call to ‘xml_open’ from ‘gi_ir_writer_write’
#  137|     Xml *xml;
#  138|   
#  139|->   xml = g_slice_new (Xml);
#  140|     xml->file = file;
#  141|     xml->stack = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
glib-2.87.0/girepository/girwriter.c:139:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ofile’
glib-2.87.0/girepository/girwriter.c:1349:1: enter_function: entry to ‘gi_ir_writer_write’
glib-2.87.0/girepository/girwriter.c:1361:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
glib-2.87.0/girepository/girwriter.c:1367:10: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1371:15: acquire_memory: allocated here
glib-2.87.0/girepository/girwriter.c:1373:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/girwriter.c:1382:7: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1385:9: call_function: inlined call to ‘xml_open’ from ‘gi_ir_writer_write’
#  137|     Xml *xml;
#  138|   
#  139|->   xml = g_slice_new (Xml);
#  140|     xml->file = file;
#  141|     xml->stack = NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def831]
glib-2.87.0/girepository/girwriter.c:1382:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "we")’
glib-2.87.0/girepository/girwriter.c:1361:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
glib-2.87.0/girepository/girwriter.c:1367:10: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1371:15: acquire_resource: opened here
glib-2.87.0/girepository/girwriter.c:1373:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/girwriter.c:1382:7: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1382:7: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/girwriter.c:1382:7: branch_true: ...to here
glib-2.87.0/girepository/girwriter.c:1382:7: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/girwriter.c:1382:7: danger: ‘fopen(filename, "we")’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 1380|           }
# 1381|   
# 1382|->       g_free (full_filename);
# 1383|       }
# 1384|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
glib-2.87.0/girepository/girwriter.c:1382:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "we")’
glib-2.87.0/girepository/girwriter.c:1361:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
glib-2.87.0/girepository/girwriter.c:1367:10: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1371:15: acquire_memory: allocated here
glib-2.87.0/girepository/girwriter.c:1373:10: branch_false: following ‘false’ branch...
glib-2.87.0/girepository/girwriter.c:1382:7: branch_false: ...to here
glib-2.87.0/girepository/girwriter.c:1382:7: branch_true: following ‘true’ branch...
glib-2.87.0/girepository/girwriter.c:1382:7: branch_true: ...to here
glib-2.87.0/girepository/girwriter.c:1382:7: throw: if ‘g_free_sized’ throws an exception...
glib-2.87.0/girepository/girwriter.c:1382:7: danger: ‘fopen(filename, "we")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 1380|           }
# 1381|   
# 1382|->       g_free (full_filename);
# 1383|       }
# 1384|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def833]
glib-2.87.0/glib/deprecated/gcompletion.c:255:9: warning[-Wanalyzer-null-argument]: use of NULL ‘*cmp.prefix’ where non-null expected
glib-2.87.0/glib/deprecated/gcompletion.c:352:1: enter_function: entry to ‘g_completion_complete’
glib-2.87.0/glib/deprecated/gcompletion.c:360:3: branch_true: following ‘true’ branch (when ‘cmp’ is non-NULL)...
glib-2.87.0/glib/deprecated/gcompletion.c:361:3: branch_true: ...to here
glib-2.87.0/glib/deprecated/gcompletion.c:361:3: branch_true: following ‘true’ branch (when ‘prefix’ is non-NULL)...
glib-2.87.0/glib/deprecated/gcompletion.c:363:9: branch_true: ...to here
glib-2.87.0/glib/deprecated/gcompletion.c:401:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/deprecated/gcompletion.c:403:7: branch_true: ...to here
glib-2.87.0/glib/deprecated/gcompletion.c:404:7: release_memory: ‘*cmp.prefix’ is NULL
glib-2.87.0/glib/deprecated/gcompletion.c:406:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/deprecated/gcompletion.c:408:3: branch_false: ...to here
glib-2.87.0/glib/deprecated/gcompletion.c:408:3: call_function: calling ‘completion_check_cache’ from ‘g_completion_complete’
#  253|       }
#  254|     
#  255|->   len = strlen(cmp->prefix);
#  256|     list = cmp->cache;
#  257|     s = cmp->func ? cmp->func (list->data) : (gchar*) list->data;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def834]
glib-2.87.0/glib/gbacktrace.c:345:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
#  343|   checked_write (int fd, gconstpointer buf, gsize n)
#  344|   {
#  345|->   gssize written = write (fd, buf, n);
#  346|   
#  347|     if (written == -1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def835]
glib-2.87.0/glib/gbacktrace.c:345:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
#  343|   checked_write (int fd, gconstpointer buf, gsize n)
#  344|   {
#  345|->   gssize written = write (fd, buf, n);
#  346|   
#  347|     if (written == -1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def836]
glib-2.87.0/glib/gbacktrace.c:354:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
#  352|         get_strerror (error_str, sizeof (error_str) - 1);
#  353|         snprintf (msg, sizeof (msg) - 1, "Unable to write to fd %d: %s", fd, error_str);
#  354|->       perror (msg);
#  355|         _exit (0);
#  356|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def837]
glib-2.87.0/glib/gbacktrace.c:354:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
#  352|         get_strerror (error_str, sizeof (error_str) - 1);
#  353|         snprintf (msg, sizeof (msg) - 1, "Unable to write to fd %d: %s", fd, error_str);
#  354|->       perror (msg);
#  355|         _exit (0);
#  356|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def838]
glib-2.87.0/glib/gbacktrace.c:373:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
#  371|         get_strerror (error_str, sizeof (error_str) - 1);
#  372|         snprintf (msg, sizeof (msg) - 1, "Unable to duplicate fd %d: %s", fd, error_str);
#  373|->       perror (msg);
#  374|         _exit (0);
#  375|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def839]
glib-2.87.0/glib/gbacktrace.c:373:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
#  371|         get_strerror (error_str, sizeof (error_str) - 1);
#  372|         snprintf (msg, sizeof (msg) - 1, "Unable to duplicate fd %d: %s", fd, error_str);
#  373|->       perror (msg);
#  374|         _exit (0);
#  375|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def840]
glib-2.87.0/glib/gbacktrace.c:377:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘new_fd’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
#  375|       }
#  376|   
#  377|->   return new_fd;
#  378|   }
#  379|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def841]
glib-2.87.0/glib/gbacktrace.c:413:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_err’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:410:21: acquire_resource: opened here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:413:23: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:413:23: danger: ‘old_err’ leaks here; was opened at [(39)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/38)
#  411|         if (old_err != -1)
#  412|   	{
#  413|-> 	  int getfd = fcntl (old_err, F_GETFD);
#  414|   	  if (getfd != -1)
#  415|   	    (void) fcntl (old_err, F_SETFD, getfd | FD_CLOEXEC);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def842]
glib-2.87.0/glib/gbacktrace.c:413:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:413:23: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:413:23: danger: ‘out_fd[0]’ leaks here
#  411|         if (old_err != -1)
#  412|   	{
#  413|-> 	  int getfd = fcntl (old_err, F_GETFD);
#  414|   	  if (getfd != -1)
#  415|   	    (void) fcntl (old_err, F_SETFD, getfd | FD_CLOEXEC);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def843]
glib-2.87.0/glib/gbacktrace.c:413:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:413:23: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:413:23: danger: ‘out_fd[1]’ leaks here
#  411|         if (old_err != -1)
#  412|   	{
#  413|-> 	  int getfd = fcntl (old_err, F_GETFD);
#  414|   	  if (getfd != -1)
#  415|   	    (void) fcntl (old_err, F_SETFD, getfd | FD_CLOEXEC);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def844]
glib-2.87.0/glib/gbacktrace.c:415:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:414:14: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gbacktrace.c:415:20: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:415:20: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:415:20: danger: ‘out_fd[0]’ leaks here
#  413|   	  int getfd = fcntl (old_err, F_GETFD);
#  414|   	  if (getfd != -1)
#  415|-> 	    (void) fcntl (old_err, F_SETFD, getfd | FD_CLOEXEC);
#  416|   	}
#  417|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def845]
glib-2.87.0/glib/gbacktrace.c:415:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:414:14: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gbacktrace.c:415:20: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:415:20: throw: if ‘fcntl’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:415:20: danger: ‘out_fd[1]’ leaks here
#  413|   	  int getfd = fcntl (old_err, F_GETFD);
#  414|   	  if (getfd != -1)
#  415|-> 	    (void) fcntl (old_err, F_SETFD, getfd | FD_CLOEXEC);
#  416|   	}
#  417|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def846]
glib-2.87.0/glib/gbacktrace.c:418:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:418:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:418:7: danger: ‘out_fd[0]’ leaks here
#  416|   	}
#  417|   
#  418|->       close (0);
#  419|         checked_dup (in_fd[0]);   /* set the stdin to the in pipe */
#  420|         close (1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def847]
glib-2.87.0/glib/gbacktrace.c:418:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:418:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:418:7: danger: ‘out_fd[1]’ leaks here
#  416|   	}
#  417|   
#  418|->       close (0);
#  419|         checked_dup (in_fd[0]);   /* set the stdin to the in pipe */
#  420|         close (1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def848]
glib-2.87.0/glib/gbacktrace.c:420:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:420:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:420:7: danger: ‘out_fd[0]’ leaks here
#  418|         close (0);
#  419|         checked_dup (in_fd[0]);   /* set the stdin to the in pipe */
#  420|->       close (1);
#  421|         checked_dup (out_fd[1]);  /* set the stdout to the out pipe */
#  422|         close (2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def849]
glib-2.87.0/glib/gbacktrace.c:420:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:420:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:420:7: danger: ‘out_fd[1]’ leaks here
#  418|         close (0);
#  419|         checked_dup (in_fd[0]);   /* set the stdin to the in pipe */
#  420|->       close (1);
#  421|         checked_dup (out_fd[1]);  /* set the stdout to the out pipe */
#  422|         close (2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def850]
glib-2.87.0/glib/gbacktrace.c:422:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:421:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:421:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:422:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:422:7: danger: ‘out_fd[0]’ leaks here
#  420|         close (1);
#  421|         checked_dup (out_fd[1]);  /* set the stdout to the out pipe */
#  422|->       close (2);
#  423|         checked_dup (out_fd[1]);  /* set the stderr to the out pipe */
#  424|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def851]
glib-2.87.0/glib/gbacktrace.c:422:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:421:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:421:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:422:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:422:7: danger: ‘out_fd[1]’ leaks here
#  420|         close (1);
#  421|         checked_dup (out_fd[1]);  /* set the stdout to the out pipe */
#  422|->       close (2);
#  423|         checked_dup (out_fd[1]);  /* set the stderr to the out pipe */
#  424|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def852]
glib-2.87.0/glib/gbacktrace.c:430:11: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘2’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:421:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:421:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:422:7: release_resource: first ‘close’ here
glib-2.87.0/glib/gbacktrace.c:423:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:423:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:428:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:430:11: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:430:11: danger: second ‘close’ here; first ‘close’ was at [(51)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/50)
#  428|         if (old_err != -1)
#  429|           {
#  430|->           close (2);
#  431|             /* We can ignore the return value here as we're failing anyways */
#  432|             (void) !dup (old_err);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def853]
glib-2.87.0/glib/gbacktrace.c:430:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:421:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:421:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:423:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:423:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:428:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:430:11: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:430:11: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:430:11: danger: ‘out_fd[0]’ leaks here
#  428|         if (old_err != -1)
#  429|           {
#  430|->           close (2);
#  431|             /* We can ignore the return value here as we're failing anyways */
#  432|             (void) !dup (old_err);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def854]
glib-2.87.0/glib/gbacktrace.c:430:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:413:23: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:421:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:421:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:423:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:423:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:428:10: branch_true: following ‘true’ branch (when ‘old_err != -1’)...
glib-2.87.0/glib/gbacktrace.c:430:11: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:430:11: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:430:11: danger: ‘out_fd[1]’ leaks here
#  428|         if (old_err != -1)
#  429|           {
#  430|->           close (2);
#  431|             /* We can ignore the return value here as we're failing anyways */
#  432|             (void) !dup (old_err);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def855]
glib-2.87.0/glib/gbacktrace.c:434:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:421:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:421:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:423:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:423:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:428:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:434:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:434:7: throw: if ‘perror’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:434:7: danger: ‘out_fd[0]’ leaks here
#  432|             (void) !dup (old_err);
#  433|           }
#  434|->       perror ("exec " DEBUGGER " failed");
#  435|         _exit (0);
#  436|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def856]
glib-2.87.0/glib/gbacktrace.c:434:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
glib-2.87.0/glib/gbacktrace.c:410:21: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:411:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:418:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:419:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:419:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:421:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:421:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:423:7: call_function: calling ‘checked_dup’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:423:7: return_function: returning to ‘stack_trace’ from ‘checked_dup’
glib-2.87.0/glib/gbacktrace.c:428:10: branch_false: following ‘false’ branch (when ‘old_err == -1’)...
glib-2.87.0/glib/gbacktrace.c:434:7: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:434:7: throw: if ‘perror’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:434:7: danger: ‘out_fd[1]’ leaks here
#  432|             (void) !dup (old_err);
#  433|           }
#  434|->       perror ("exec " DEBUGGER " failed");
#  435|         _exit (0);
#  436|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def857]
glib-2.87.0/glib/gbacktrace.c:439:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_true: following ‘true’ branch (when ‘pid == -1’)...
glib-2.87.0/glib/gbacktrace.c:439:7: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:439:7: throw: if ‘perror’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:439:7: danger: ‘out_fd[0]’ leaks here
#  437|     else if (pid == (pid_t) -1)
#  438|       {
#  439|->       perror ("unable to fork");
#  440|         _exit (0);
#  441|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def858]
glib-2.87.0/glib/gbacktrace.c:439:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_true: following ‘true’ branch (when ‘pid == -1’)...
glib-2.87.0/glib/gbacktrace.c:439:7: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:439:7: throw: if ‘perror’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:439:7: danger: ‘out_fd[1]’ leaks here
#  437|     else if (pid == (pid_t) -1)
#  438|       {
#  439|->       perror ("unable to fork");
#  440|         _exit (0);
#  441|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def859]
glib-2.87.0/glib/gbacktrace.c:473:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:473:13: throw: if ‘select’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:473:13: danger: ‘out_fd[1]’ leaks here
#  471|         tv.tv_usec = 0;
#  472|   
#  473|->       sel = select (FD_SETSIZE, &readset, NULL, NULL, &tv);
#  474|         if (sel == -1)
#  475|           break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def860]
glib-2.87.0/glib/gbacktrace.c:473:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[idx]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:473:13: throw: if ‘select’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:473:13: danger: ‘out_fd[idx]’ leaks here
#  471|         tv.tv_usec = 0;
#  472|   
#  473|->       sel = select (FD_SETSIZE, &readset, NULL, NULL, &tv);
#  474|         if (sel == -1)
#  475|           break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def861]
glib-2.87.0/glib/gbacktrace.c:522:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:522:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:522:3: danger: ‘out_fd[0]’ leaks here
#  520|       }
#  521|   
#  522|->   close (in_fd[0]);
#  523|     close (in_fd[1]);
#  524|     close (out_fd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def862]
glib-2.87.0/glib/gbacktrace.c:522:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:522:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:522:3: danger: ‘out_fd[1]’ leaks here
#  520|       }
#  521|   
#  522|->   close (in_fd[0]);
#  523|     close (in_fd[1]);
#  524|     close (out_fd[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def863]
glib-2.87.0/glib/gbacktrace.c:523:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:523:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:523:3: danger: ‘out_fd[0]’ leaks here
#  521|   
#  522|     close (in_fd[0]);
#  523|->   close (in_fd[1]);
#  524|     close (out_fd[0]);
#  525|     close (out_fd[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def864]
glib-2.87.0/glib/gbacktrace.c:523:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:523:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:523:3: danger: ‘out_fd[1]’ leaks here
#  521|   
#  522|     close (in_fd[0]);
#  523|->   close (in_fd[1]);
#  524|     close (out_fd[0]);
#  525|     close (out_fd[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def865]
glib-2.87.0/glib/gbacktrace.c:524:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:524:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:524:3: danger: ‘out_fd[0]’ leaks here
#  522|     close (in_fd[0]);
#  523|     close (in_fd[1]);
#  524|->   close (out_fd[0]);
#  525|     close (out_fd[1]);
#  526|     _exit (0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def866]
glib-2.87.0/glib/gbacktrace.c:524:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:524:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:524:3: danger: ‘out_fd[1]’ leaks here
#  522|     close (in_fd[0]);
#  523|     close (in_fd[1]);
#  524|->   close (out_fd[0]);
#  525|     close (out_fd[1]);
#  526|     _exit (0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def867]
glib-2.87.0/glib/gbacktrace.c:525:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:400:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:406:9: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:407:6: branch_false: following ‘false’ branch (when ‘pid != 0’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: following ‘false’ branch (when ‘pid != -1’)...
glib-2.87.0/glib/gbacktrace.c:437:11: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: following ‘true’ branch (when ‘__i != 16’)...
glib-2.87.0/glib/gbacktrace.c:443:3: branch_true: ...to here
glib-2.87.0/glib/gbacktrace.c:453:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:453:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:454:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:454:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:455:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:455:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:456:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:456:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:457:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:457:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:458:3: call_function: calling ‘checked_write’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:458:3: return_function: returning to ‘stack_trace’ from ‘checked_write’
glib-2.87.0/glib/gbacktrace.c:525:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/gbacktrace.c:525:3: danger: ‘out_fd[1]’ leaks here
#  523|     close (in_fd[1]);
#  524|     close (out_fd[0]);
#  525|->   close (out_fd[1]);
#  526|     _exit (0);
#  527|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def868]
glib-2.87.0/glib/gcharset.c:458:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "re")’
glib-2.87.0/glib/gcharset.c:451:8: acquire_resource: opened here
glib-2.87.0/glib/gcharset.c:452:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gcharset.c:452:6: branch_false: ...to here
glib-2.87.0/glib/gcharset.c:454:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gcharset.c:458:7: branch_true: ...to here
glib-2.87.0/glib/gcharset.c:458:7: throw: if ‘g_strchug’ throws an exception...
glib-2.87.0/glib/gcharset.c:458:7: danger: ‘fopen(file, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  456|         char *p, *q;
#  457|   
#  458|->       g_strstrip (buf);
#  459|   
#  460|         /* Line is a comment */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def869]
glib-2.87.0/glib/gcharset.c:458:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "re")’
glib-2.87.0/glib/gcharset.c:451:8: acquire_memory: allocated here
glib-2.87.0/glib/gcharset.c:452:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gcharset.c:452:6: branch_false: ...to here
glib-2.87.0/glib/gcharset.c:454:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gcharset.c:458:7: branch_true: ...to here
glib-2.87.0/glib/gcharset.c:458:7: throw: if ‘g_strchug’ throws an exception...
glib-2.87.0/glib/gcharset.c:458:7: danger: ‘fopen(file, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  456|         char *p, *q;
#  457|   
#  458|->       g_strstrip (buf);
#  459|   
#  460|         /* Line is a comment */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def870]
glib-2.87.0/glib/gcharset.c:461:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "re")’
glib-2.87.0/glib/gcharset.c:451:8: acquire_resource: opened here
glib-2.87.0/glib/gcharset.c:452:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gcharset.c:452:6: branch_false: ...to here
glib-2.87.0/glib/gcharset.c:454:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gcharset.c:458:7: branch_true: ...to here
glib-2.87.0/glib/gcharset.c:454:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gcharset.c:458:7: branch_true: ...to here
glib-2.87.0/glib/gcharset.c:458:7: throw: if ‘g_strchug’ throws an exception...
glib-2.87.0/glib/gcharset.c:461:12: danger: ‘fopen(file, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  459|   
#  460|         /* Line is a comment */
#  461|->       if ((buf[0] == '#') || (buf[0] == '\0'))
#  462|           continue;
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
glib-2.87.0/glib/gcharset.c:461:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "re")’
glib-2.87.0/glib/gcharset.c:451:8: acquire_memory: allocated here
glib-2.87.0/glib/gcharset.c:452:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gcharset.c:452:6: branch_false: ...to here
glib-2.87.0/glib/gcharset.c:454:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gcharset.c:458:7: branch_true: ...to here
glib-2.87.0/glib/gcharset.c:454:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gcharset.c:458:7: branch_true: ...to here
glib-2.87.0/glib/gcharset.c:458:7: throw: if ‘g_strchug’ throws an exception...
glib-2.87.0/glib/gcharset.c:461:12: danger: ‘fopen(file, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  459|   
#  460|         /* Line is a comment */
#  461|->       if ((buf[0] == '#') || (buf[0] == '\0'))
#  462|           continue;
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
glib-2.87.0/glib/gconvert.c:67:3: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
glib-2.87.0/glib/gconvert.c:960:1: enter_function: entry to ‘_g_ctype_locale_to_utf8’
glib-2.87.0/glib/gconvert.c:968:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gconvert.c:971:12: branch_false: ...to here
glib-2.87.0/glib/gconvert.c:971:12: call_function: calling ‘convert_checked’ from ‘_g_ctype_locale_to_utf8’
#   65|   		iconv_t    *cd)
#   66|   {
#   67|->   *cd = iconv_open (to_codeset, from_codeset);
#   68|   
#   69|     if (*cd == (iconv_t)-1 && errno == EINVAL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
glib-2.87.0/glib/gconvert.c:67:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
glib-2.87.0/glib/gconvert.c:960:1: enter_function: entry to ‘_g_ctype_locale_to_utf8’
glib-2.87.0/glib/gconvert.c:968:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gconvert.c:971:12: branch_false: ...to here
glib-2.87.0/glib/gconvert.c:971:12: call_function: calling ‘convert_checked’ from ‘_g_ctype_locale_to_utf8’
#   65|   		iconv_t    *cd)
#   66|   {
#   67|->   *cd = iconv_open (to_codeset, from_codeset);
#   68|   
#   69|     if (*cd == (iconv_t)-1 && errno == EINVAL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
glib-2.87.0/glib/gconvert.c:127:33: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
glib-2.87.0/glib/gconvert.c:960:1: enter_function: entry to ‘_g_ctype_locale_to_utf8’
glib-2.87.0/glib/gconvert.c:968:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gconvert.c:971:12: branch_false: ...to here
glib-2.87.0/glib/gconvert.c:971:12: call_function: calling ‘convert_checked’ from ‘_g_ctype_locale_to_utf8’
#  125|     if (!try_conversion (to_codeset, from_codeset, &cd))
#  126|       {
#  127|->       const char **to_aliases = _g_charset_get_aliases (to_codeset);
#  128|         const char **from_aliases = _g_charset_get_aliases (from_codeset);
#  129|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
glib-2.87.0/glib/gconvert.c:128:35: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
glib-2.87.0/glib/gconvert.c:960:1: enter_function: entry to ‘_g_ctype_locale_to_utf8’
glib-2.87.0/glib/gconvert.c:968:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gconvert.c:971:12: branch_false: ...to here
glib-2.87.0/glib/gconvert.c:971:12: call_function: calling ‘convert_checked’ from ‘_g_ctype_locale_to_utf8’
#  126|       {
#  127|         const char **to_aliases = _g_charset_get_aliases (to_codeset);
#  128|->       const char **from_aliases = _g_charset_get_aliases (from_codeset);
#  129|   
#  130|         if (from_aliases)

Error: COMPILER_WARNING (CWE-704): [#def876]
glib-2.87.0/glib/gconvert.c: scope_hint: In function ‘g_filename_from_uri’
glib-2.87.0/glib/gconvert.c:1611:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1611 |   past_path = strchr (past_scheme, '?');
#      |             ^
# 1609|     past_scheme = temp_uri + strlen ("file:");
# 1610|     
# 1611|->   past_path = strchr (past_scheme, '?');
# 1612|     if (past_path != NULL)
# 1613|       *past_path = '\0';

Error: COMPILER_WARNING (CWE-704): [#def877]
glib-2.87.0/glib/gconvert.c:1611:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1609|     past_scheme = temp_uri + strlen ("file:");
# 1610|     
# 1611|->   past_path = strchr (past_scheme, '?');
# 1612|     if (past_path != NULL)
# 1613|       *past_path = '\0';

Error: COMPILER_WARNING (CWE-704): [#def878]
glib-2.87.0/glib/gconvert.c:1615:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1615 |   past_path = strchr (past_scheme, '#');
#      |             ^
# 1613|       *past_path = '\0';
# 1614|   
# 1615|->   past_path = strchr (past_scheme, '#');
# 1616|     if (past_path != NULL)
# 1617|       *past_path = '\0';

Error: COMPILER_WARNING (CWE-704): [#def879]
glib-2.87.0/glib/gconvert.c:1615:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1613|       *past_path = '\0';
# 1614|   
# 1615|->   past_path = strchr (past_scheme, '#');
# 1616|     if (past_path != NULL)
# 1617|       *past_path = '\0';

Error: COMPILER_WARNING (CWE-704): [#def880]
glib-2.87.0/glib/gdatetime.c: scope_hint: In function ‘date_time_lookup_era’
glib-2.87.0/glib/gdatetime.c:3029:36: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 3029 |                   char *next_nul = strchr (s, '\0');
#      |                                    ^~~~~~
# 3027|                 for (int i = 1; i < n_entries; i++)
# 3028|                   {
# 3029|->                   char *next_nul = strchr (s, '\0');
# 3030|   
# 3031|                     if ((size_t) (next_nul - era_description_str) >= era_description_str_len)

Error: COMPILER_WARNING (CWE-704): [#def881]
glib-2.87.0/glib/gdatetime.c:3029:36: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 3027|                 for (int i = 1; i < n_entries; i++)
# 3028|                   {
# 3029|->                   char *next_nul = strchr (s, '\0');
# 3030|   
# 3031|                     if ((size_t) (next_nul - era_description_str) >= era_description_str_len)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
glib-2.87.0/glib/gdir.c:201:3: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
glib-2.87.0/glib/gdir.c:90:1: enter_function: entry to ‘g_dir_open_with_errno’
glib-2.87.0/glib/gdir.c:102:3: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
glib-2.87.0/glib/gdir.c:123:10: branch_true: ...to here
glib-2.87.0/glib/gdir.c:123:10: acquire_memory: allocated here
glib-2.87.0/glib/gdir.c:125:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gdir.c:128:10: branch_false: ...to here
glib-2.87.0/glib/gdir.c:128:10: call_function: calling ‘g_dir_new_from_dirp’ from ‘g_dir_open_with_errno’
#  199|   
#  200|     dir = g_new0 (GDir, 1);
#  201|->   g_atomic_ref_count_init (&dir->ref_count);
#  202|     dir->dirp = dirp;
#  203|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def883]
glib-2.87.0/glib/gerror.c:283:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gerror.c:476:1: enter_function: entry to ‘g_set_error’
glib-2.87.0/glib/gerror.c:486:6: branch_false: following ‘false’ branch (when ‘err’ is non-NULL)...
glib-2.87.0/glib/gerror.c:489:3: branch_false: ...to here
glib-2.87.0/glib/gerror.c:489:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gerror.c:490:9: call_function: calling ‘g_error_new_valist’ from ‘g_set_error’
#  281|                       va_list      args)
#  282|   {
#  283|->   g_return_val_if_fail (format != NULL, NULL);
#  284|   
#  285|     /* Historically, GError allowed this (although it was never meant to work),

Error: GCC_ANALYZER_WARNING (CWE-404): [#def884]
glib-2.87.0/glib/gerror.c:290:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gerror.c:476:1: enter_function: entry to ‘g_set_error’
glib-2.87.0/glib/gerror.c:486:6: branch_false: following ‘false’ branch (when ‘err’ is non-NULL)...
glib-2.87.0/glib/gerror.c:489:3: branch_false: ...to here
glib-2.87.0/glib/gerror.c:489:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gerror.c:490:9: call_function: calling ‘g_error_new_valist’ from ‘g_set_error’
#  288|      * (GNOME#660371, GNOME#560482)
#  289|      */
#  290|->   g_warn_if_fail (domain != 0);
#  291|   
#  292|     return g_error_new_steal (domain, code, g_strdup_vprintf (format, args), NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def885]
glib-2.87.0/glib/gerror.c:292:10: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gerror.c:476:1: enter_function: entry to ‘g_set_error’
glib-2.87.0/glib/gerror.c:486:6: branch_false: following ‘false’ branch (when ‘err’ is non-NULL)...
glib-2.87.0/glib/gerror.c:489:3: branch_false: ...to here
glib-2.87.0/glib/gerror.c:489:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gerror.c:490:9: call_function: calling ‘g_error_new_valist’ from ‘g_set_error’
#  290|     g_warn_if_fail (domain != 0);
#  291|   
#  292|->   return g_error_new_steal (domain, code, g_strdup_vprintf (format, args), NULL);
#  293|   }
#  294|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def886]
glib-2.87.0/glib/gerror.c:595:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gerror.c:618:1: enter_function: entry to ‘g_prefix_error’
glib-2.87.0/glib/gerror.c:622:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gerror.c:626:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gerror.c:627:7: call_function: calling ‘g_error_add_prefix’ from ‘g_prefix_error’
#  593|     gchar *prefix;
#  594|   
#  595|->   prefix = g_strdup_vprintf (format, ap);
#  596|     oldstring = *string;
#  597|     *string = g_strconcat (prefix, oldstring, NULL);

Error: COMPILER_WARNING (CWE-704): [#def887]
glib-2.87.0/glib/gfileutils.c: scope_hint: In function ‘g_basename’
glib-2.87.0/glib/gfileutils.c:2583:8: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2583 |   base = strrchr (file_name, G_DIR_SEPARATOR);
#      |        ^
# 2581|     g_return_val_if_fail (file_name != NULL, NULL);
# 2582|   
# 2583|->   base = strrchr (file_name, G_DIR_SEPARATOR);
# 2584|   
# 2585|   #ifdef G_OS_WIN32

Error: COMPILER_WARNING (CWE-704): [#def888]
glib-2.87.0/glib/gfileutils.c: scope_hint: In function ‘g_path_get_dirname’
glib-2.87.0/glib/gfileutils.c:2703:8: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2703 |   base = strrchr (file_name, G_DIR_SEPARATOR);
#      |        ^
# 2701|     g_return_val_if_fail (file_name != NULL, NULL);
# 2702|   
# 2703|->   base = strrchr (file_name, G_DIR_SEPARATOR);
# 2704|   
# 2705|   #ifdef G_OS_WIN32

Error: COMPILER_WARNING (CWE-704): [#def889]
glib-2.87.0/glib/ggettext.c: scope_hint: In function ‘g_dpgettext’
glib-2.87.0/glib/ggettext.c:227:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  227 |       sep = strchr (msgctxtid, '|');
#      |           ^
#  225|         if (msgidoffset > 0)
#  226|           return msgctxtid + msgidoffset;
#  227|->       sep = strchr (msgctxtid, '|');
#  228|   
#  229|         if (sep)

Error: COMPILER_WARNING (CWE-704): [#def890]
glib-2.87.0/glib/ggettext.c:227:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  225|         if (msgidoffset > 0)
#  226|           return msgctxtid + msgidoffset;
#  227|->       sep = strchr (msgctxtid, '|');
#  228|   
#  229|         if (sep)

Error: COMPILER_WARNING: [#def891]
glib-2.87.0/redhat-linux-build/g-ir-cpp-5ckc5vbq.c:43: included_from: Included from here.
glib-2.87.0/glib/gi18n-lib.h:32:10: warning: ‘_’ redefined
#   32 | #define  _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String))
#      |          ^
glib-2.87.0/redhat-linux-build/g-ir-cpp-5ckc5vbq.c:42: included_from: Included from here.
glib-2.87.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: [#def892]
glib-2.87.0/glib/gi18n-lib.h:33:9: warning: ‘Q_’ redefined
#   33 | #define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0)
#      |         ^~
glib-2.87.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: [#def893]
glib-2.87.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)
#      |         ^~
glib-2.87.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: COMPILER_WARNING (CWE-704): [#def894]
glib-2.87.0/glib/gkeyfile.c: scope_hint: In function ‘g_key_file_parse_key_value_pair’
glib-2.87.0/glib/gkeyfile.c:1401:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1401 |   key_end = value_start = strchr (line, '=');
#      |                         ^
# 1399|       }
# 1400|   
# 1401|->   key_end = value_start = strchr (line, '=');
# 1402|   
# 1403|     g_warn_if_fail (key_end != NULL);

Error: COMPILER_WARNING (CWE-704): [#def895]
glib-2.87.0/glib/gkeyfile.c:1401:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1399|       }
# 1400|   
# 1401|->   key_end = value_start = strchr (line, '=');
# 1402|   
# 1403|     g_warn_if_fail (key_end != NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def896]
glib-2.87.0/glib/gkeyfile.c:3460:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/glib/gkeyfile.c:3432:1: enter_function: entry to ‘g_key_file_set_group_comment’
glib-2.87.0/glib/gkeyfile.c:3443:11: call_function: inlined call to ‘g_key_file_lookup_group’ from ‘g_key_file_set_group_comment’
glib-2.87.0/glib/gkeyfile.c:3444:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gkeyfile.c:3454:16: branch_false: ...to here
glib-2.87.0/glib/gkeyfile.c:3454:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gkeyfile.c:3459:16: branch_false: ...to here
glib-2.87.0/glib/gkeyfile.c:3460:11: danger: dereference of NULL ‘g_key_file_lookup_group_node(key_file,  group_name)’
# 3458|      */
# 3459|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3460|->   group = group_node->next->data;
# 3461|     for (GList *lp = group->key_value_pairs; lp != NULL; )
# 3462|       {

Error: COMPILER_WARNING (CWE-476): [#def897]
glib-2.87.0/glib/gkeyfile.c:3460:21: warning[-Wnull-dereference]: potential null pointer dereference
# 3460 |   group = group_node->next->data;
#      |           ~~~~~~~~~~^~~~~~
# 3458|      */
# 3459|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3460|->   group = group_node->next->data;
# 3461|     for (GList *lp = group->key_value_pairs; lp != NULL; )
# 3462|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def898]
glib-2.87.0/glib/gkeyfile.c:3694:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/glib/gkeyfile.c:3675:1: enter_function: entry to ‘g_key_file_get_group_comment’
glib-2.87.0/glib/gkeyfile.c:3682:11: call_function: inlined call to ‘g_key_file_lookup_group’ from ‘g_key_file_get_group_comment’
glib-2.87.0/glib/gkeyfile.c:3683:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gkeyfile.c:3693:16: branch_false: ...to here
glib-2.87.0/glib/gkeyfile.c:3694:3: danger: dereference of NULL ‘g_key_file_lookup_group_node(key_file,  group_name)’
# 3692|   
# 3693|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3694|->   group_node = group_node->next;
# 3695|     group = (GKeyFileGroup *)group_node->data;  
# 3696|     return get_group_comment (key_file, group, error);

Error: COMPILER_WARNING (CWE-476): [#def899]
glib-2.87.0/glib/gkeyfile.c:3694:14: warning[-Wnull-dereference]: potential null pointer dereference
# 3694 |   group_node = group_node->next;
#      |   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
# 3692|   
# 3693|     group_node = g_key_file_lookup_group_node (key_file, group_name);
# 3694|->   group_node = group_node->next;
# 3695|     group = (GKeyFileGroup *)group_node->data;  
# 3696|     return get_group_comment (key_file, group, error);

Error: CPPCHECK_WARNING (CWE-909): [#def900]
glib-2.87.0/glib/gkeyfile.c:3923: error[uninitStructMember]: Uninitialized struct member: pair.key
# 3921|   
# 3922|         if (next_group->key_value_pairs == NULL ||
# 3923|->           (pair->key != NULL && !g_strstr_len (pair->value, -1, "\n")))
# 3924|           {
# 3925|             GKeyFileKeyValuePair *pair = g_new (GKeyFileKeyValuePair, 1);

Error: CPPCHECK_WARNING (CWE-457): [#def901]
glib-2.87.0/glib/gkeyfile.c:3923: warning[uninitvar]: Uninitialized variable: pair
# 3921|   
# 3922|         if (next_group->key_value_pairs == NULL ||
# 3923|->           (pair->key != NULL && !g_strstr_len (pair->value, -1, "\n")))
# 3924|           {
# 3925|             GKeyFileKeyValuePair *pair = g_new (GKeyFileKeyValuePair, 1);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def902]
glib-2.87.0/glib/glib-autocleanups.h:51:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘l’
glib-2.87.0/glib/tests/autoptr.c:711:9: throw: if ‘g_list_prepend’ throws an exception...
glib-2.87.0/glib/tests/autoptr.c:709:24: call_function: inlined call to ‘glib_listautoptr_cleanup_GBytes’ from ‘test_autolist’
#   49|   G_DEFINE_AUTOPTR_CLEANUP_FUNC(GAsyncQueue, g_async_queue_unref)
#   50|   G_DEFINE_AUTOPTR_CLEANUP_FUNC(GBookmarkFile, g_bookmark_file_free)
#   51|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(GBytes, g_bytes_unref)
#   52|   G_DEFINE_AUTOPTR_CLEANUP_FUNC(GChecksum, g_checksum_free)
#   53|   G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDateTime, g_date_time_unref)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def903]
glib-2.87.0/glib/glib-private.h:126:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gutils.c:1835:1: enter_function: entry to ‘g_set_user_dirs’
glib-2.87.0/glib/gutils.c:1843:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gutils.c:1845:35: branch_true: following ‘true’ branch (when ‘dir_type’ is non-NULL)...
glib-2.87.0/glib/gutils.c:1847:21: branch_true: ...to here
glib-2.87.0/glib/gutils.c:1848:7: branch_true: following ‘true’ branch (when ‘dir_value’ is non-NULL)...
glib-2.87.0/glib/gutils.c:1850:11: branch_true: ...to here
glib-2.87.0/glib/gutils.c:1850:10: branch_true: following ‘true’ branch (when the strings are equal)...
glib-2.87.0/glib/gutils.c:1851:9: branch_true: ...to here
glib-2.87.0/glib/gutils.c:1851:9: call_function: calling ‘set_str_if_different’ from ‘g_set_user_dirs’
#  124|   #elif defined (HAS_DYNAMIC_ASAN_LOADING)
#  125|     if (G_LIKELY (p != NULL) && G_UNLIKELY (__lsan_ignore_object != NULL))
#  126|->     __lsan_ignore_object (p);
#  127|   #endif
#  128|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def904]
glib-2.87.0/glib/glib-unixprivate.h:74:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘in_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   72|     if (close_on_exec)
#   73|       {
#   74|->       if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|             fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def905]
glib-2.87.0/glib/glib-unixprivate.h:74:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘in_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   72|     if (close_on_exec)
#   73|       {
#   74|->       if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|             fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def906]
glib-2.87.0/glib/glib-unixprivate.h:74:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[0]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   72|     if (close_on_exec)
#   73|       {
#   74|->       if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|             fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def907]
glib-2.87.0/glib/glib-unixprivate.h:74:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   72|     if (close_on_exec)
#   73|       {
#   74|->       if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|             fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def908]
glib-2.87.0/glib/glib-unixprivate.h:74:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#   72|     if (close_on_exec)
#   73|       {
#   74|->       if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|             fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def909]
glib-2.87.0/glib/glib-unixprivate.h:74:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#   72|     if (close_on_exec)
#   73|       {
#   74|->       if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|             fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def910]
glib-2.87.0/glib/glib-unixprivate.h:75:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘in_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   73|       {
#   74|         if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|->           fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {
#   77|             int saved_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def911]
glib-2.87.0/glib/glib-unixprivate.h:75:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   73|       {
#   74|         if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|->           fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {
#   77|             int saved_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def912]
glib-2.87.0/glib/glib-unixprivate.h:75:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#   73|       {
#   74|         if (fcntl (fds[0], F_SETFD, FD_CLOEXEC) == -1 ||
#   75|->           fcntl (fds[1], F_SETFD, FD_CLOEXEC) == -1)
#   76|           {
#   77|             int saved_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def913]
glib-2.87.0/glib/glib-unixprivate.h:79:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘in_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   77|             int saved_errno = errno;
#   78|   
#   79|->           close (fds[0]);
#   80|             close (fds[1]);
#   81|             fds[0] = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def914]
glib-2.87.0/glib/glib-unixprivate.h:79:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   77|             int saved_errno = errno;
#   78|   
#   79|->           close (fds[0]);
#   80|             close (fds[1]);
#   81|             fds[0] = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def915]
glib-2.87.0/glib/glib-unixprivate.h:79:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#   77|             int saved_errno = errno;
#   78|   
#   79|->           close (fds[0]);
#   80|             close (fds[1]);
#   81|             fds[0] = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def916]
glib-2.87.0/glib/glib-unixprivate.h:80:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘in_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   78|   
#   79|             close (fds[0]);
#   80|->           close (fds[1]);
#   81|             fds[0] = -1;
#   82|             fds[1] = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def917]
glib-2.87.0/glib/glib-unixprivate.h:80:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘out_fd[1]’
glib-2.87.0/glib/gbacktrace.c:381:1: enter_function: entry to ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
glib-2.87.0/glib/gbacktrace.c:399:8: return_function: returning to ‘stack_trace’ from ‘g_unix_open_pipe_internal’
glib-2.87.0/glib/gbacktrace.c:399:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gbacktrace.c:400:8: branch_false: ...to here
glib-2.87.0/glib/gbacktrace.c:400:8: call_function: calling ‘g_unix_open_pipe_internal’ from ‘stack_trace’
#   78|   
#   79|             close (fds[0]);
#   80|->           close (fds[1]);
#   81|             fds[0] = -1;
#   82|             fds[1] = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def918]
glib-2.87.0/glib/glib-unixprivate.h:80:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
glib-2.87.0/gio/gtestdbus.c:706:1: enter_function: entry to ‘stop_daemon’
glib-2.87.0/gio/gtestdbus.c:714:3: call_function: calling ‘_g_test_watcher_remove_pid’ from ‘stop_daemon’
#   78|   
#   79|             close (fds[0]);
#   80|->           close (fds[1]);
#   81|             fds[0] = -1;
#   82|             fds[1] = -1;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def919]
glib-2.87.0/glib/gmarkup.c:41:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2727:1: enter_function: entry to ‘g_markup_collect_attributes’
glib-2.87.0/glib/gmarkup.c:2747:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2748:10: branch_true: following ‘true’ branch (when ‘type != 0’)...
glib-2.87.0/glib/gmarkup.c:2753:20: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2762:19: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2763:12: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2763:12: branch_false: following ‘false’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2763:24: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2763:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2764:16: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2780:10: branch_true: following ‘true’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2781:22: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2785:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2787:11: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2787:11: call_function: calling ‘g_markup_error_quark’ from ‘g_markup_collect_attributes’
#   39|   #include "gthread.h"
#   40|   
#   41|-> G_DEFINE_QUARK (g-markup-error-quark, g_markup_error)
#   42|   
#   43|   typedef enum

Error: GCC_ANALYZER_WARNING (CWE-404): [#def920]
glib-2.87.0/glib/gmarkup.c:368:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:485:1: enter_function: entry to ‘text_validate’
glib-2.87.0/glib/gmarkup.c:492:7: call_function: calling ‘set_error’ from ‘text_validate’
#  366|   
#  367|     va_start (args, format);
#  368|->   s = g_strdup_vprintf (format, args);
#  369|     va_end (args);
#  370|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def921]
glib-2.87.0/glib/gmarkup.c:2483:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2600:1: enter_function: entry to ‘g_markup_printf_escaped’
glib-2.87.0/glib/gmarkup.c:2605:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2606:12: call_function: calling ‘g_markup_vprintf_escaped’ from ‘g_markup_printf_escaped’
# 2481|     /* Create the two modified format strings
# 2482|      */
# 2483|->   format1 = g_string_new (NULL);
# 2484|     format2 = g_string_new (NULL);
# 2485|     p = format;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def922]
glib-2.87.0/glib/gmarkup.c:2484:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2600:1: enter_function: entry to ‘g_markup_printf_escaped’
glib-2.87.0/glib/gmarkup.c:2605:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2606:12: call_function: calling ‘g_markup_vprintf_escaped’ from ‘g_markup_printf_escaped’
# 2482|      */
# 2483|     format1 = g_string_new (NULL);
# 2484|->   format2 = g_string_new (NULL);
# 2485|     p = format;
# 2486|     while (TRUE)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def923]
glib-2.87.0/glib/gmarkup.c:2505:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2490:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2566:1: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2503:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/glib/gmarkup.c:2505:13: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/glib/gmarkup.c:2505:13: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 2503|     va_copy (args2, args);
# 2504|   
# 2505|->   output1 = g_strdup_vprintf (format1->str, args);
# 2506|   
# 2507|     if (!output1)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def924]
glib-2.87.0/glib/gmarkup.c:2513:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2490:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2566:1: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2503:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/glib/gmarkup.c:2507:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gmarkup.c:2513:31: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2513:13: throw: if ‘g_strdup_vprintf’ throws an exception...
glib-2.87.0/glib/gmarkup.c:2513:13: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 2511|       }
# 2512|   
# 2513|->   output2 = g_strdup_vprintf (format2->str, args2);
# 2514|     va_end (args2);
# 2515|     if (!output2)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def925]
glib-2.87.0/glib/gmarkup.c:2622:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2727:1: enter_function: entry to ‘g_markup_collect_attributes’
glib-2.87.0/glib/gmarkup.c:2747:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2748:10: branch_true: following ‘true’ branch (when ‘type != 0’)...
glib-2.87.0/glib/gmarkup.c:2753:20: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2762:19: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2763:12: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2763:12: branch_false: following ‘false’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2763:24: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2763:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2764:16: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2780:10: branch_true: following ‘true’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2781:22: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2785:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gmarkup.c:2796:7: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2822:14: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
glib-2.87.0/glib/gmarkup.c:2842:20: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2842:20: call_function: calling ‘g_markup_parse_boolean’ from ‘g_markup_collect_attributes’
# 2620|     for (i = 0; i < G_N_ELEMENTS (falses); i++)
# 2621|       {
# 2622|->       if (g_ascii_strcasecmp (string, falses[i]) == 0)
# 2623|           {
# 2624|             if (value != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def926]
glib-2.87.0/glib/gmarkup.c:2633:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2727:1: enter_function: entry to ‘g_markup_collect_attributes’
glib-2.87.0/glib/gmarkup.c:2747:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2748:10: branch_true: following ‘true’ branch (when ‘type != 0’)...
glib-2.87.0/glib/gmarkup.c:2753:20: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2762:19: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2763:12: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2763:12: branch_false: following ‘false’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2763:24: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2763:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2764:16: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2780:10: branch_true: following ‘true’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2781:22: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2785:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gmarkup.c:2796:7: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2822:14: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
glib-2.87.0/glib/gmarkup.c:2842:20: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2842:20: call_function: calling ‘g_markup_parse_boolean’ from ‘g_markup_collect_attributes’
# 2631|     for (i = 0; i < G_N_ELEMENTS (trues); i++)
# 2632|       {
# 2633|->       if (g_ascii_strcasecmp (string, trues[i]) == 0)
# 2634|           {
# 2635|             if (value != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def927]
glib-2.87.0/glib/gmarkup.c:2787:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2747:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2748:10: branch_true: following ‘true’ branch (when ‘type != 0’)...
glib-2.87.0/glib/gmarkup.c:2753:20: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2762:19: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2763:12: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2763:12: branch_false: following ‘false’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2763:24: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2763:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2764:16: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2780:10: branch_true: following ‘true’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2781:22: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2785:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2787:11: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2787:11: throw: if ‘g_set_error’ throws an exception...
glib-2.87.0/glib/gmarkup.c:2787:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 2785|         if (value == NULL && mandatory)
# 2786|           {
# 2787|->           g_set_error (error, G_MARKUP_ERROR,
# 2788|                          G_MARKUP_ERROR_MISSING_ATTRIBUTE,
# 2789|                          "element '%s' requires attribute '%s'",

Error: GCC_ANALYZER_WARNING (CWE-404): [#def928]
glib-2.87.0/glib/gmarkup.c:2858:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2747:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2748:10: branch_true: following ‘true’ branch (when ‘type != 0’)...
glib-2.87.0/glib/gmarkup.c:2753:20: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2762:19: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2763:12: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2763:12: branch_false: following ‘false’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2763:24: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2763:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gmarkup.c:2764:16: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2780:10: branch_true: following ‘true’ branch (when ‘i <= 39’)...
glib-2.87.0/glib/gmarkup.c:2781:22: branch_true: ...to here
glib-2.87.0/glib/gmarkup.c:2785:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gmarkup.c:2796:7: branch_false: ...to here
glib-2.87.0/glib/gmarkup.c:2858:11: throw: if ‘g_assertion_message_expr’ throws an exception...
glib-2.87.0/glib/gmarkup.c:2858:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 2856|   
# 2857|           default:
# 2858|->           g_assert_not_reached ();
# 2859|           }
# 2860|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def929]
glib-2.87.0/glib/gmessages.c:1220:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmessages.c:2037:1: enter_function: entry to ‘g_log_writer_supports_color’
glib-2.87.0/glib/gmessages.c:2044:3: call_function: calling ‘g_return_if_fail_warning’ from ‘g_log_writer_supports_color’
# 1218|         GTestExpectedMessage *expected = expected_messages->data;
# 1219|   
# 1220|->       if (g_strcmp0 (expected->log_domain, log_domain) == 0 &&
# 1221|             ((log_level & expected->log_level) == expected->log_level) &&
# 1222|             g_pattern_match_simple (expected->pattern, msg))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def930]
glib-2.87.0/glib/gmessages.c:1222:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmessages.c:2037:1: enter_function: entry to ‘g_log_writer_supports_color’
glib-2.87.0/glib/gmessages.c:2044:3: call_function: calling ‘g_return_if_fail_warning’ from ‘g_log_writer_supports_color’
# 1220|         if (g_strcmp0 (expected->log_domain, log_domain) == 0 &&
# 1221|             ((log_level & expected->log_level) == expected->log_level) &&
# 1222|->           g_pattern_match_simple (expected->pattern, msg))
# 1223|           {
# 1224|             expected_messages = g_slist_delete_link (expected_messages,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def931]
glib-2.87.0/glib/gmessages.c:1224:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmessages.c:2037:1: enter_function: entry to ‘g_log_writer_supports_color’
glib-2.87.0/glib/gmessages.c:2044:3: call_function: calling ‘g_return_if_fail_warning’ from ‘g_log_writer_supports_color’
# 1222|             g_pattern_match_simple (expected->pattern, msg))
# 1223|           {
# 1224|->           expected_messages = g_slist_delete_link (expected_messages,
# 1225|                                                      expected_messages);
# 1226|             g_free (expected->log_domain);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def932]
glib-2.87.0/glib/gmessages.c:3623:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmessages.c:3723:1: enter_function: entry to ‘g_printerr’
glib-2.87.0/glib/gmessages.c:3731:3: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
glib-2.87.0/glib/gmessages.c:3733:3: branch_true: ...to here
glib-2.87.0/glib/gmessages.c:3733:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmessages.c:3734:12: call_function: inlined call to ‘format_string’ from ‘g_printerr’
# 3621|     else
# 3622|       {
# 3623|->       *out_allocated_string = g_strdup_vprintf (format, args);
# 3624|         return *out_allocated_string;
# 3625|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def933]
glib-2.87.0/glib/gprintf.c:199:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gprintf.c:52:1: enter_function: entry to ‘g_printf’
glib-2.87.0/glib/gprintf.c:58:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gprintf.c:59:12: call_function: calling ‘g_vprintf’ from ‘g_printf’
#  197|   	   va_list      args)
#  198|   {
#  199|->   g_return_val_if_fail (format != NULL, -1);
#  200|   
#  201|     return _g_vprintf (format, args);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def934]
glib-2.87.0/glib/gprintf.c:225:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gprintf.c:82:1: enter_function: entry to ‘g_fprintf’
glib-2.87.0/glib/gprintf.c:89:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gprintf.c:90:12: call_function: calling ‘g_vfprintf’ from ‘g_fprintf’
#  223|   	    va_list      args)
#  224|   {
#  225|->   g_return_val_if_fail (format != NULL, -1);
#  226|   
#  227|     return _g_vfprintf (file, format, args);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def935]
glib-2.87.0/glib/gprintf.c:251:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gprintf.c:120:1: enter_function: entry to ‘g_sprintf’
glib-2.87.0/glib/gprintf.c:127:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gprintf.c:128:12: call_function: calling ‘g_vsprintf’ from ‘g_sprintf’
#  249|   	    va_list      args)
#  250|   {
#  251|->   g_return_val_if_fail (string != NULL, -1);
#  252|     g_return_val_if_fail (format != NULL, -1);
#  253|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def936]
glib-2.87.0/glib/gprintf.c:252:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gprintf.c:120:1: enter_function: entry to ‘g_sprintf’
glib-2.87.0/glib/gprintf.c:127:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gprintf.c:128:12: call_function: calling ‘g_vsprintf’ from ‘g_sprintf’
#  250|   {
#  251|     g_return_val_if_fail (string != NULL, -1);
#  252|->   g_return_val_if_fail (format != NULL, -1);
#  253|   
#  254|     return _g_vsprintf (string, format, args);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def937]
glib-2.87.0/glib/gprintf.c:293:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gprintf.c:165:1: enter_function: entry to ‘g_snprintf’
glib-2.87.0/glib/gprintf.c:173:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gprintf.c:174:12: call_function: calling ‘g_vsnprintf’ from ‘g_snprintf’
#  291|   	     va_list      args)
#  292|   {
#  293|->   g_return_val_if_fail (n == 0 || string != NULL, -1);
#  294|     g_return_val_if_fail (format != NULL, -1);
#  295|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def938]
glib-2.87.0/glib/gprintf.c:294:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gprintf.c:165:1: enter_function: entry to ‘g_snprintf’
glib-2.87.0/glib/gprintf.c:173:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gprintf.c:174:12: call_function: calling ‘g_vsnprintf’ from ‘g_snprintf’
#  292|   {
#  293|     g_return_val_if_fail (n == 0 || string != NULL, -1);
#  294|->   g_return_val_if_fail (format != NULL, -1);
#  295|   
#  296|     return _g_vsnprintf (string, n, format, args);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def939]
glib-2.87.0/glib/gqsort.c:154:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(const void **)b2’
glib-2.87.0/glib/gqsort.c:328:1: enter_function: entry to ‘g_sort_array’
glib-2.87.0/glib/gqsort.c:334:3: call_function: calling ‘msort_r’ from ‘g_sort_array’
#  152|         while (n1 > 0 && n2 > 0)
#  153|   	{
#  154|-> 	  if ((*cmp) (*(const void **) b1, *(const void **) b2, arg) <= 0)
#  155|   	    {
#  156|   	      *(void **) tmp = *(void **) b1;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def940]
glib-2.87.0/glib/gqsort.c:191:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b1’
glib-2.87.0/glib/gqsort.c:328:1: enter_function: entry to ‘g_sort_array’
glib-2.87.0/glib/gqsort.c:334:3: call_function: calling ‘msort_r’ from ‘g_sort_array’
#  189|   
#  190|     if (n1 > 0)
#  191|->     memcpy (tmp, b1, n1 * s);
#  192|     memcpy (b, p->t, (n - n2) * s);
#  193|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def941]
glib-2.87.0/glib/gqsort.c:192:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.t’
glib-2.87.0/glib/gqsort.c:328:1: enter_function: entry to ‘g_sort_array’
glib-2.87.0/glib/gqsort.c:334:3: call_function: calling ‘msort_r’ from ‘g_sort_array’
#  190|     if (n1 > 0)
#  191|       memcpy (tmp, b1, n1 * s);
#  192|->   memcpy (b, p->t, (n - n2) * s);
#  193|   }
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def942]
glib-2.87.0/glib/gqueue.c:484:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/glib/gqueue.c:464:1: enter_function: entry to ‘g_queue_push_nth_link’
glib-2.87.0/glib/gqueue.c:471:3: branch_true: following ‘true’ branch (when ‘queue’ is non-NULL)...
glib-2.87.0/glib/gqueue.c:472:3: branch_true: ...to here
glib-2.87.0/glib/gqueue.c:472:3: branch_true: following ‘true’ branch (when ‘link_’ is non-NULL)...
glib-2.87.0/glib/gqueue.c:474:6: branch_true: ...to here
glib-2.87.0/glib/gqueue.c:474:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/gqueue.c:480:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gqueue.c:481:3: branch_true: ...to here
glib-2.87.0/glib/gqueue.c:481:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gqueue.c:483:10: branch_true: ...to here
glib-2.87.0/glib/gqueue.c:483:10: call_function: calling ‘g_queue_peek_nth_link’ from ‘g_queue_push_nth_link’
glib-2.87.0/glib/gqueue.c:483:10: return_function: returning to ‘g_queue_push_nth_link’ from ‘g_queue_peek_nth_link’
glib-2.87.0/glib/gqueue.c:484:3: danger: dereference of NULL ‘g_queue_peek_nth_link(queue, (unsigned int)n)’
#  482|   
#  483|     next = g_queue_peek_nth_link (queue, n);
#  484|->   prev = next->prev;
#  485|   
#  486|     if (prev)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def943]
glib-2.87.0/glib/grand.c:184:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 524288)’
glib-2.87.0/glib/grand.c:672:1: enter_function: entry to ‘g_random_set_seed’
glib-2.87.0/glib/grand.c:675:3: call_function: calling ‘get_global_random’ from ‘g_random_set_seed’
#  182|         do
#  183|           dev_urandom = g_open ("/dev/urandom", O_RDONLY | O_CLOEXEC);
#  184|->       while G_UNLIKELY (dev_urandom < 0 && errno == EINTR);
#  185|   
#  186|         if (dev_urandom >= 0)

Error: GCC_ANALYZER_WARNING (CWE-465): [#def944]
glib-2.87.0/glib/gsequence.c:1705:10: warning[-Wanalyzer-deref-before-check]: check of ‘node’ for NULL after already dereferencing it
# 1703|       n_smaller = node->left->n_nodes;
# 1704|   
# 1705|->   while (node)
# 1706|       {
# 1707|         if (NODE_RIGHT_CHILD (node))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def945]
glib-2.87.0/glib/gsequence.c:1868:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
glib-2.87.0/glib/gsequence.c:1959:1: enter_function: entry to ‘node_cut’
glib-2.87.0/glib/gsequence.c:1967:3: release_memory: ‘*node.left’ is NULL
glib-2.87.0/glib/gsequence.c:1968:3: call_function: calling ‘node_update_fields’ from ‘node_cut’
glib-2.87.0/glib/gsequence.c:1968:3: return_function: returning to ‘node_cut’ from ‘node_update_fields’
glib-2.87.0/glib/gsequence.c:1970:3: call_function: calling ‘rotate_down’ from ‘node_cut’
# 1866|     GSequenceNode *tmp, *old;
# 1867|   
# 1868|->   g_assert (node->parent);
# 1869|     g_assert (node->parent != node);
# 1870|   

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

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

Error: GCC_ANALYZER_WARNING (CWE-404): [#def948]
glib-2.87.0/glib/gstrfuncs.c:472:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstrfuncs.c:2689:1: enter_function: entry to ‘g_strjoin’
glib-2.87.0/glib/gstrfuncs.c:2707:6: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:2710:17: branch_true: ...to here
glib-2.87.0/glib/gstrfuncs.c:2725:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstrfuncs.c:2728:13: call_function: calling ‘g_stpcpy’ from ‘g_strjoin’
#  470|   {
#  471|   #ifdef HAVE_STPCPY
#  472|->   g_return_val_if_fail (dest != NULL, NULL);
#  473|     g_return_val_if_fail (src != NULL, NULL);
#  474|     return stpcpy (dest, src);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def949]
glib-2.87.0/glib/gstrfuncs.c:473:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstrfuncs.c:2689:1: enter_function: entry to ‘g_strjoin’
glib-2.87.0/glib/gstrfuncs.c:2707:6: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:2710:17: branch_true: ...to here
glib-2.87.0/glib/gstrfuncs.c:2725:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstrfuncs.c:2728:13: call_function: calling ‘g_stpcpy’ from ‘g_strjoin’
#  471|   #ifdef HAVE_STPCPY
#  472|     g_return_val_if_fail (dest != NULL, NULL);
#  473|->   g_return_val_if_fail (src != NULL, NULL);
#  474|     return stpcpy (dest, src);
#  475|   #else

Error: GCC_ANALYZER_WARNING (CWE-404): [#def950]
glib-2.87.0/glib/gstrfuncs.c:515:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstrfuncs.c:538:1: enter_function: entry to ‘g_strdup_printf’
glib-2.87.0/glib/gstrfuncs.c:544:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstrfuncs.c:545:12: call_function: calling ‘g_strdup_vprintf’ from ‘g_strdup_printf’
#  513|     gchar *string = NULL;
#  514|   
#  515|->   g_vasprintf (&string, format, args);
#  516|   
#  517|     return string;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def951]
glib-2.87.0/glib/gstrfuncs.c:585:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstrfuncs.c:576:6: branch_false: following ‘false’ branch (when ‘string1’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:579:11: branch_false: ...to here
glib-2.87.0/glib/gstrfuncs.c:580:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstrfuncs.c:582:10: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:584:12: branch_true: ...to here
glib-2.87.0/glib/gstrfuncs.c:585:9: throw: if ‘g_log’ throws an exception...
glib-2.87.0/glib/gstrfuncs.c:585:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  583|       {
#  584|         if (!g_size_checked_add (&l, l, strlen (s)))
#  585|->         g_error ("%s: overflow concatenating strings", G_STRLOC);
#  586|         s = va_arg (args, gchar*);
#  587|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def952]
glib-2.87.0/glib/gstrfuncs.c:1575:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
glib-2.87.0/glib/gstrfuncs.c:1563:1: enter_function: entry to ‘g_ascii_strdown’
glib-2.87.0/glib/gstrfuncs.c:1568:3: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:1570:6: branch_true: ...to here
glib-2.87.0/glib/gstrfuncs.c:1570:6: branch_false: following ‘false’ branch (when ‘len >= 0’)...
glib-2.87.0/glib/gstrfuncs.c:1573:14: branch_false: ...to here
glib-2.87.0/glib/gstrfuncs.c:1573:14: call_function: calling ‘g_strndup’ from ‘g_ascii_strdown’
glib-2.87.0/glib/gstrfuncs.c:1573:14: return_function: returning to ‘g_ascii_strdown’ from ‘g_strndup’
glib-2.87.0/glib/gstrfuncs.c:1575:20: danger: dereference of NULL ‘s’
# 1573|       result = g_strndup (str, (gsize) len);
# 1574|   
# 1575|->   for (s = result; *s; s++)
# 1576|       *s = g_ascii_tolower (*s);
# 1577|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def953]
glib-2.87.0/glib/gstrfuncs.c:1606:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
glib-2.87.0/glib/gstrfuncs.c:1594:1: enter_function: entry to ‘g_ascii_strup’
glib-2.87.0/glib/gstrfuncs.c:1599:3: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:1601:6: branch_true: ...to here
glib-2.87.0/glib/gstrfuncs.c:1601:6: branch_false: following ‘false’ branch (when ‘len >= 0’)...
glib-2.87.0/glib/gstrfuncs.c:1604:14: branch_false: ...to here
glib-2.87.0/glib/gstrfuncs.c:1604:14: call_function: calling ‘g_strndup’ from ‘g_ascii_strup’
glib-2.87.0/glib/gstrfuncs.c:1604:14: return_function: returning to ‘g_ascii_strup’ from ‘g_strndup’
glib-2.87.0/glib/gstrfuncs.c:1606:20: danger: dereference of NULL ‘s’
# 1604|       result = g_strndup (str, (gsize) len);
# 1605|   
# 1606|->   for (s = result; *s; s++)
# 1607|       *s = g_ascii_toupper (*s);
# 1608|   

Error: COMPILER_WARNING (CWE-704): [#def954]
glib-2.87.0/glib/gstrfuncs.c: scope_hint: In function ‘g_strsplit’
glib-2.87.0/glib/gstrfuncs.c:2424:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2424 |   s = strstr (remainder, delimiter);
#      |     ^
# 2422|   
# 2423|     remainder = string;
# 2424|->   s = strstr (remainder, delimiter);
# 2425|     if (s)
# 2426|       {

Error: COMPILER_WARNING (CWE-704): [#def955]
glib-2.87.0/glib/gstrfuncs.c:2424:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2422|   
# 2423|     remainder = string;
# 2424|->   s = strstr (remainder, delimiter);
# 2425|     if (s)
# 2426|       {

Error: COMPILER_WARNING (CWE-704): [#def956]
glib-2.87.0/glib/gstrfuncs.c:2436:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2436 |           s = strstr (remainder, delimiter);
#      |             ^
# 2434|             g_ptr_array_add (string_list, g_strndup (remainder, len));
# 2435|             remainder = s + delimiter_len;
# 2436|->           s = strstr (remainder, delimiter);
# 2437|           }
# 2438|       }

Error: COMPILER_WARNING (CWE-704): [#def957]
glib-2.87.0/glib/gstrfuncs.c:2436:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2434|             g_ptr_array_add (string_list, g_strndup (remainder, len));
# 2435|             remainder = s + delimiter_len;
# 2436|->           s = strstr (remainder, delimiter);
# 2437|           }
# 2438|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def958]
glib-2.87.0/glib/gstrfuncs.c:2717:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstrfuncs.c:2703:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstrfuncs.c:2707:6: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:2710:17: branch_true: ...to here
glib-2.87.0/glib/gstrfuncs.c:2713:14: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
glib-2.87.0/glib/gstrfuncs.c:2715:16: branch_true: ...to here
glib-2.87.0/glib/gstrfuncs.c:2717:13: throw: if ‘g_log’ throws an exception...
glib-2.87.0/glib/gstrfuncs.c:2717:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 2715|             if (!g_size_checked_add (&len, len, separator_len) ||
# 2716|                 !g_size_checked_add (&len, len, strlen (s)))
# 2717|->             g_error ("%s: overflow joining strings", G_STRLOC);
# 2718|             s = va_arg (args, gchar*);
# 2719|           }

Error: COMPILER_WARNING (CWE-704): [#def959]
glib-2.87.0/glib/gstrfuncs.c: scope_hint: In function ‘g_strstr_len’
glib-2.87.0/glib/gstrfuncs.c:2776:12: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
# 2776 |     return strstr (haystack, needle);
#      |            ^~~~~~
# 2774|   
# 2775|     if (haystack_len < 0)
# 2776|->     return strstr (haystack, needle);
# 2777|     else
# 2778|       {

Error: COMPILER_WARNING (CWE-704): [#def960]
glib-2.87.0/glib/gstrfuncs.c:2776:12: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
# 2774|   
# 2775|     if (haystack_len < 0)
# 2776|->     return strstr (haystack, needle);
# 2777|     else
# 2778|       {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def961]
glib-2.87.0/glib/gstrfuncs.h:317:32: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:124:1: enter_function: entry to ‘test_VOID__INT_BOOLEAN_CHAR_UCHAR_UINT_LONG_ULONG_ENUM_FLAGS_FLOAT_DOUBLE_STRING_PARAM_BOXED_POINTER_OBJECT_VARIANT_INT64_UINT64v’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:177:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:190:6: branch_true: following ‘true’ branch...
#  315|       {
#  316|         const size_t len = strlen (str) + 1;
#  317|->       char *dup_str = (char *) g_malloc (len);
#  318|         return (char *) memcpy (dup_str, str, len);
#  319|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def962]
glib-2.87.0/glib/gstrfuncs.h:321:10: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:124:1: enter_function: entry to ‘test_VOID__INT_BOOLEAN_CHAR_UCHAR_UINT_LONG_ULONG_ENUM_FLAGS_FLOAT_DOUBLE_STRING_PARAM_BOXED_POINTER_OBJECT_VARIANT_INT64_UINT64v’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:177:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:190:6: branch_true: following ‘true’ branch...
#  319|       }
#  320|   
#  321|->   return g_strdup (str);
#  322|   }
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def963]
glib-2.87.0/glib/gstring.c:1363:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstring.c:1467:1: enter_function: entry to ‘g_string_append_printf’
glib-2.87.0/glib/gstring.c:1473:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstring.c:1474:3: call_function: calling ‘g_string_append_vprintf’ from ‘g_string_append_printf’
# 1361|     gint len;
# 1362|   
# 1363|->   g_return_if_fail (string != NULL);
# 1364|     g_return_if_fail (format != NULL);
# 1365|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def964]
glib-2.87.0/glib/gstring.c:1364:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstring.c:1467:1: enter_function: entry to ‘g_string_append_printf’
glib-2.87.0/glib/gstring.c:1473:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstring.c:1474:3: call_function: calling ‘g_string_append_vprintf’ from ‘g_string_append_printf’
# 1362|   
# 1363|     g_return_if_fail (string != NULL);
# 1364|->   g_return_if_fail (format != NULL);
# 1365|   
# 1366|     len = g_vasprintf (&buf, format, args);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def965]
glib-2.87.0/glib/gstring.c:1366:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstring.c:1467:1: enter_function: entry to ‘g_string_append_printf’
glib-2.87.0/glib/gstring.c:1473:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstring.c:1474:3: call_function: calling ‘g_string_append_vprintf’ from ‘g_string_append_printf’
# 1364|     g_return_if_fail (format != NULL);
# 1365|   
# 1366|->   len = g_vasprintf (&buf, format, args);
# 1367|   
# 1368|     if (len >= 0)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def966]
glib-2.87.0/glib/gstring.h:211:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2600:1: enter_function: entry to ‘g_markup_printf_escaped’
glib-2.87.0/glib/gmarkup.c:2605:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2606:12: call_function: calling ‘g_markup_vprintf_escaped’ from ‘g_markup_printf_escaped’
#  209|       }
#  210|     else
#  211|->     g_string_insert_c (gstring, -1, c);
#  212|     return gstring;
#  213|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def967]
glib-2.87.0/glib/gstring.h:227:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2600:1: enter_function: entry to ‘g_markup_printf_escaped’
glib-2.87.0/glib/gmarkup.c:2605:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2606:12: call_function: calling ‘g_markup_vprintf_escaped’ from ‘g_markup_printf_escaped’
#  225|   
#  226|     if G_UNLIKELY (gstring == NULL)
#  227|->     return g_string_append_len (gstring, val, len);
#  228|   
#  229|     if G_UNLIKELY (val == NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def968]
glib-2.87.0/glib/gstring.h:249:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gmarkup.c:2600:1: enter_function: entry to ‘g_markup_printf_escaped’
glib-2.87.0/glib/gmarkup.c:2605:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gmarkup.c:2606:12: call_function: calling ‘g_markup_vprintf_escaped’ from ‘g_markup_printf_escaped’
#  247|       }
#  248|     else
#  249|->     return g_string_insert_len (gstring, -1, val, len);
#  250|   }
#  251|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def969]
glib-2.87.0/glib/gstrvbuilder.c:154:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gstrvbuilder.c:187:1: enter_function: entry to ‘g_strv_builder_add_many’
glib-2.87.0/glib/gstrvbuilder.c:192:3: branch_true: following ‘true’ branch (when ‘builder’ is non-NULL)...
glib-2.87.0/glib/gstrvbuilder.c:193:3: branch_true: ...to here
glib-2.87.0/glib/gstrvbuilder.c:193:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gstrvbuilder.c:194:10: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/glib/gstrvbuilder.c:195:5: branch_true: ...to here
glib-2.87.0/glib/gstrvbuilder.c:195:5: call_function: calling ‘g_strv_builder_add’ from ‘g_strv_builder_add_many’
#  152|                       const char   *value)
#  153|   {
#  154|->   g_ptr_array_add (&builder->array, g_strdup (value));
#  155|   }
#  156|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def970]
glib-2.87.0/glib/gtester.c:88:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gtester.c:449:1: enter_function: entry to ‘launch_test’
glib-2.87.0/glib/gtester.c:460:3: call_function: calling ‘test_log_printfe’ from ‘launch_test’
#   86|     va_list args;
#   87|     va_start (args, format);
#   88|->   result = g_markup_vprintf_escaped (format, args);
#   89|     va_end (args);
#   90|     do

Error: COMPILER_WARNING (CWE-704): [#def971]
glib-2.87.0/glib/gtestutils.c: scope_hint: In function ‘g_test_suite_case_exists’
glib-2.87.0/glib/gtestutils.c:2906:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2906 |   slash = strchr (test_path, '/');
#      |         ^
# 2904|   
# 2905|     test_path++;
# 2906|->   slash = strchr (test_path, '/');
# 2907|   
# 2908|     if (slash)

Error: COMPILER_WARNING (CWE-704): [#def972]
glib-2.87.0/glib/gtestutils.c:2906:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2904|   
# 2905|     test_path++;
# 2906|->   slash = strchr (test_path, '/');
# 2907|   
# 2908|     if (slash)

Error: CPPCHECK_WARNING (CWE-476): [#def973]
glib-2.87.0/glib/gtestutils.c:3446: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: __glib_assert_msg
# 3444|       free (__glib_assert_msg);
# 3445|     __glib_assert_msg = (char*) malloc (strlen (s) + 1);
# 3446|->   strcpy (__glib_assert_msg, s);
# 3447|   
# 3448|     g_free (s);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def974]
glib-2.87.0/glib/gtrace.c:93:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gtrace.c:92:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gtrace.c:93:3: throw: if ‘sysprof_collector_mark_vprintf’ throws an exception...
glib-2.87.0/glib/gtrace.c:93:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   91|   
#   92|     va_start (args, message_format);
#   93|->   sysprof_collector_mark_vprintf (begin_time_nsec, duration_nsec, group, name, message_format, args);
#   94|     va_end (args);
#   95|   #endif  /* HAVE_SYSPROF */

Error: COMPILER_WARNING (CWE-704): [#def975]
glib-2.87.0/glib/guri.c: scope_hint: In function ‘g_uri_split_internal’
glib-2.87.0/glib/guri.c:910:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  910 |                   next_at = memchr (at + 1, '@', path_start - (at + 1));
#      |                           ^
#  908|                 do
#  909|                   {
#  910|->                   next_at = memchr (at + 1, '@', path_start - (at + 1));
#  911|                     if (next_at)
#  912|                       at = next_at;

Error: COMPILER_WARNING (CWE-704): [#def976]
glib-2.87.0/glib/guri.c:910:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  908|                 do
#  909|                   {
#  910|->                   next_at = memchr (at + 1, '@', path_start - (at + 1));
#  911|                     if (next_at)
#  912|                       at = next_at;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def977]
glib-2.87.0/glib/gutils.c:748:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/glib/gutils.c:2277:1: enter_function: entry to ‘load_user_special_dirs_unlocked’
glib-2.87.0/glib/gutils.c:2282:9: release_memory: ‘data’ is NULL
glib-2.87.0/glib/gutils.c:2284:16: call_function: calling ‘g_get_user_config_dir_unlocked’ from ‘load_user_special_dirs_unlocked’
#  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-404): [#def978]
glib-2.87.0/glib/gutils.c:1776:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gutils.c:1835:1: enter_function: entry to ‘g_set_user_dirs’
glib-2.87.0/glib/gutils.c:1843:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gutils.c:1845:35: branch_true: following ‘true’ branch (when ‘dir_type’ is non-NULL)...
glib-2.87.0/glib/gutils.c:1847:21: branch_true: ...to here
glib-2.87.0/glib/gutils.c:1848:7: branch_true: following ‘true’ branch (when ‘dir_value’ is non-NULL)...
glib-2.87.0/glib/gutils.c:1850:11: branch_true: ...to here
glib-2.87.0/glib/gutils.c:1850:10: branch_true: following ‘true’ branch (when the strings are equal)...
glib-2.87.0/glib/gutils.c:1851:9: branch_true: ...to here
glib-2.87.0/glib/gutils.c:1851:9: call_function: calling ‘set_str_if_different’ from ‘g_set_user_dirs’
# 1774|         !g_str_equal (new_value, *global_str))
# 1775|       {
# 1776|->       g_debug ("g_set_user_dirs: Setting %s to %s", type, new_value);
# 1777|   
# 1778|         /* We have to leak the old value, as user code could be retaining pointers

Error: GCC_ANALYZER_WARNING (CWE-404): [#def979]
glib-2.87.0/glib/gutils.c:1848:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gutils.c:1843:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gutils.c:1845:35: branch_true: following ‘true’ branch (when ‘dir_type’ is non-NULL)...
glib-2.87.0/glib/gutils.c:1847:21: branch_true: ...to here
glib-2.87.0/glib/gutils.c:1848:7: throw: if ‘g_assertion_message_expr’ throws an exception...
glib-2.87.0/glib/gutils.c:1848:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1846|       {
# 1847|         gconstpointer dir_value = va_arg (args, gconstpointer);
# 1848|->       g_assert (dir_value != NULL);
# 1849|   
# 1850|         if (g_str_equal (dir_type, "HOME"))

Error: CPPCHECK_WARNING (CWE-457): [#def980]
glib-2.87.0/glib/gutils.c:3211: error[uninitvar]: Uninitialized variable: euid
# 3209|         /* These aren't in the header files, so we prototype them here.
# 3210|          */
# 3211|->       int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3212|         int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3213|         

Error: CPPCHECK_WARNING (CWE-457): [#def981]
glib-2.87.0/glib/gutils.c:3211: error[uninitvar]: Uninitialized variable: ruid
# 3209|         /* These aren't in the header files, so we prototype them here.
# 3210|          */
# 3211|->       int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3212|         int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3213|         

Error: CPPCHECK_WARNING (CWE-457): [#def982]
glib-2.87.0/glib/gutils.c:3211: error[uninitvar]: Uninitialized variable: suid
# 3209|         /* These aren't in the header files, so we prototype them here.
# 3210|          */
# 3211|->       int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3212|         int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3213|         

Error: CPPCHECK_WARNING (CWE-457): [#def983]
glib-2.87.0/glib/gutils.c:3212: error[uninitvar]: Uninitialized variable: egid
# 3210|          */
# 3211|         int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3212|->       int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3213|         
# 3214|         if (getresuid (&ruid, &euid, &suid) != 0 ||

Error: CPPCHECK_WARNING (CWE-457): [#def984]
glib-2.87.0/glib/gutils.c:3212: error[uninitvar]: Uninitialized variable: rgid
# 3210|          */
# 3211|         int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3212|->       int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3213|         
# 3214|         if (getresuid (&ruid, &euid, &suid) != 0 ||

Error: CPPCHECK_WARNING (CWE-457): [#def985]
glib-2.87.0/glib/gutils.c:3212: error[uninitvar]: Uninitialized variable: sgid
# 3210|          */
# 3211|         int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
# 3212|->       int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
# 3213|         
# 3214|         if (getresuid (&ruid, &euid, &suid) != 0 ||

Error: GCC_ANALYZER_WARNING (CWE-404): [#def986]
glib-2.87.0/glib/gvariant-parser.c:106:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gvariant-parser.c:349:1: enter_function: entry to ‘token_stream_require’
glib-2.87.0/glib/gvariant-parser.c:357:7: call_function: calling ‘token_stream_set_error’ from ‘token_stream_require’
#  104|                        va_list       ap)
#  105|   {
#  106|->   GString *msg = g_string_new (NULL);
#  107|   
#  108|     if (location->start == location->end)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def987]
glib-2.87.0/glib/gvariant-parser.c:109:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gvariant-parser.c:349:1: enter_function: entry to ‘token_stream_require’
glib-2.87.0/glib/gvariant-parser.c:357:7: call_function: calling ‘token_stream_set_error’ from ‘token_stream_require’
#  107|   
#  108|     if (location->start == location->end)
#  109|->     g_string_append_printf (msg, "%d", location->start);
#  110|     else
#  111|       g_string_append_printf (msg, "%d-%d", location->start, location->end);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def988]
glib-2.87.0/glib/gvariant-parser.c:111:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gvariant-parser.c:1584:1: enter_function: entry to ‘string_get_value’
glib-2.87.0/glib/gvariant-parser.c:1593:11: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gvariant-parser.c:1595:38: branch_true: ...to here
glib-2.87.0/glib/gvariant-parser.c:1595:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/gvariant-parser.c:1597:11: branch_true: ...to here
glib-2.87.0/glib/gvariant-parser.c:1597:11: call_function: calling ‘ast_set_error’ from ‘string_get_value’
#  109|       g_string_append_printf (msg, "%d", location->start);
#  110|     else
#  111|->     g_string_append_printf (msg, "%d-%d", location->start, location->end);
#  112|   
#  113|     if (other != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def989]
glib-2.87.0/glib/gvariant-parser.c:120:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gvariant-parser.c:349:1: enter_function: entry to ‘token_stream_require’
glib-2.87.0/glib/gvariant-parser.c:357:7: call_function: calling ‘token_stream_set_error’ from ‘token_stream_require’
#  118|     g_string_append_c (msg, ':');
#  119|   
#  120|->   g_string_append_vprintf (msg, format, ap);
#  121|     g_set_error_literal (error, G_VARIANT_PARSE_ERROR, code, msg->str);
#  122|     g_string_free (msg, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def990]
glib-2.87.0/glib/gvariant-parser.c:267:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gvariant-parser.c:2746:1: enter_function: entry to ‘g_variant_builder_add_parsed’
glib-2.87.0/glib/gvariant-parser.c:2752:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gvariant-parser.c:2753:3: call_function: calling ‘g_variant_new_parsed_va’ from ‘g_variant_builder_add_parsed’
#  265|   
#  266|     /* We must have at least one byte in a token. */
#  267|->   g_assert (stream->stream - stream->this >= 1);
#  268|   
#  269|     return TRUE;

Error: COMPILER_WARNING (CWE-476): [#def991]
glib-2.87.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): [#def992]
glib-2.87.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: GCC_ANALYZER_WARNING (CWE-404): [#def993]
glib-2.87.0/glib/gvariant-parser.c:2632:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/gvariant-parser.c:2746:1: enter_function: entry to ‘g_variant_builder_add_parsed’
glib-2.87.0/glib/gvariant-parser.c:2752:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/gvariant-parser.c:2753:3: call_function: calling ‘g_variant_new_parsed_va’ from ‘g_variant_builder_add_parsed’
# 2630|     AST *ast;
# 2631|   
# 2632|->   g_return_val_if_fail (format != NULL, NULL);
# 2633|     g_return_val_if_fail (app != NULL, NULL);
# 2634|   

Error: CPPCHECK_WARNING (CWE-457): [#def994]
glib-2.87.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: GCC_ANALYZER_WARNING (CWE-775): [#def995]
glib-2.87.0/glib/libcharset/localcharset.c:157:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file_name, "r")’
glib-2.87.0/glib/libcharset/localcharset.c:128:12: branch_true: following ‘true’ branch (when ‘file_name’ is non-NULL)...
glib-2.87.0/glib/libcharset/localcharset.c:130:13: branch_true: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:137:38: acquire_resource: opened here
glib-2.87.0/glib/libcharset/localcharset.c:137:11: branch_false: following ‘false’ branch...
glib-2.87.0/glib/libcharset/localcharset.c:137:11: branch_false: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:155:18: branch_false: following ‘false’ branch...
glib-2.87.0/glib/libcharset/localcharset.c:157:19: branch_false: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:169:15: throw: if ‘ungetc’ throws an exception...
glib-2.87.0/glib/libcharset/localcharset.c:157:19: danger: ‘fopen(file_name, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  155|   	      if (c == EOF)
#  156|   		break;
#  157|-> 	      if (c == '\n' || c == ' ' || c == '\t')
#  158|   		continue;
#  159|   	      if (c == '#')

Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
glib-2.87.0/glib/libcharset/localcharset.c:157:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file_name, "r")’
glib-2.87.0/glib/libcharset/localcharset.c:128:12: branch_true: following ‘true’ branch (when ‘file_name’ is non-NULL)...
glib-2.87.0/glib/libcharset/localcharset.c:130:13: branch_true: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:137:38: acquire_memory: allocated here
glib-2.87.0/glib/libcharset/localcharset.c:137:11: branch_false: following ‘false’ branch...
glib-2.87.0/glib/libcharset/localcharset.c:137:11: branch_false: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:155:18: branch_false: following ‘false’ branch...
glib-2.87.0/glib/libcharset/localcharset.c:157:19: branch_false: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:169:15: throw: if ‘ungetc’ throws an exception...
glib-2.87.0/glib/libcharset/localcharset.c:157:19: danger: ‘fopen(file_name, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  155|   	      if (c == EOF)
#  156|   		break;
#  157|-> 	      if (c == '\n' || c == ' ' || c == '\t')
#  158|   		continue;
#  159|   	      if (c == '#')

Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
glib-2.87.0/glib/libcharset/localcharset.c:169:15: warning[-Wanalyzer-malloc-leak]: leak of ‘file_name’
glib-2.87.0/glib/libcharset/localcharset.c:127:30: acquire_memory: allocated here
glib-2.87.0/glib/libcharset/localcharset.c:128:12: branch_true: following ‘true’ branch (when ‘file_name’ is non-NULL)...
glib-2.87.0/glib/libcharset/localcharset.c:130:13: branch_true: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:137:11: branch_false: following ‘false’ branch...
glib-2.87.0/glib/libcharset/localcharset.c:137:11: branch_false: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:155:18: branch_false: following ‘false’ branch...
glib-2.87.0/glib/libcharset/localcharset.c:157:19: branch_false: ...to here
glib-2.87.0/glib/libcharset/localcharset.c:169:15: throw: if ‘ungetc’ throws an exception...
glib-2.87.0/glib/libcharset/localcharset.c:169:15: danger: ‘file_name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  167|   		  continue;
#  168|   		}
#  169|-> 	      ungetc (c, fp);
#  170|   	      if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
#  171|   		break;

Error: CPPCHECK_WARNING (CWE-758): [#def998]
glib-2.87.0/glib/tests/bitlock.c:92: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   90|   
#   91|         /* these bits must be set. */
#   92|->       g_assert_true (val & PARALLEL_LOCKMASK);
#   93|         g_assert_true (val & PARALLEL_SETMASK);
#   94|   

Error: CPPCHECK_WARNING (CWE-758): [#def999]
glib-2.87.0/glib/tests/bitlock.c:101: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   99|         g_assert_cmpint (val, ==, val2);
#  100|   
#  101|->       count_all = (val & ~(PARALLEL_LOCKMASK | PARALLEL_SETMASK));
#  102|   
#  103|         if ((g_random_int () % 5) == 0)

Error: CPPCHECK_WARNING (CWE-758): [#def1000]
glib-2.87.0/glib/tests/bitlock.c:160: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  158|           {
#  159|             /* at last, the atomic must be unlocked. */
#  160|->           g_assert_true (!(val & PARALLEL_LOCKMASK));
#  161|           }
#  162|         val &= ~(PARALLEL_LOCKMASK | PARALLEL_TOGGLEMASK | PARALLEL_SETMASK);

Error: CPPCHECK_WARNING (CWE-758): [#def1001]
glib-2.87.0/glib/tests/bitlock.c:162: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  160|             g_assert_true (!(val & PARALLEL_LOCKMASK));
#  161|           }
#  162|->       val &= ~(PARALLEL_LOCKMASK | PARALLEL_TOGGLEMASK | PARALLEL_SETMASK);
#  163|         g_assert_cmpint (val, ==, PARALLEL_MAX_COUNT_ALL);
#  164|       }

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1002]
glib-2.87.0/glib/tests/constructor-helper.c:158:5: warning[-Wanalyzer-infinite-loop]: infinite loop
#  156|   
#  157|     if (size > sizeof (buffer) - position)
#  158|->     g_error ("Not enough space in the buffer");
#  159|   
#  160|     memcpy_ (buffer + position, string, size);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1003]
glib-2.87.0/glib/tests/constructor-helper.c:238:5: warning[-Wanalyzer-infinite-loop]: infinite loop
#  236|   {
#  237|     if (string_find_index_ (string) >= sizeof (buffer))
#  238|->     g_error ("String %s not present", string);
#  239|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1004]
glib-2.87.0/glib/tests/error.c:151:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/error.c:135:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/error.c:145:7: branch_false: ...to here
glib-2.87.0/glib/tests/error.c:145:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/error.c:151:7: throw: if ‘g_test_expect_message’ throws an exception...
glib-2.87.0/glib/tests/error.c:151:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  149|   #pragma GCC diagnostic ignored "-Wformat-extra-args"
#  150|   
#  151|->       g_test_expect_message (G_LOG_DOMAIN,
#  152|                                G_LOG_LEVEL_CRITICAL,
#  153|                                "*g_error_new_valist: assertion 'format != NULL' failed*");

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1005]
glib-2.87.0/glib/tests/error.c:154:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/error.c:135:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/error.c:145:7: branch_false: ...to here
glib-2.87.0/glib/tests/error.c:145:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/error.c:154:15: throw: if ‘g_markup_error_quark’ throws an exception...
glib-2.87.0/glib/tests/error.c:154:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  152|                                G_LOG_LEVEL_CRITICAL,
#  153|                                "*g_error_new_valist: assertion 'format != NULL' failed*");
#  154|->       error = g_error_new_valist (G_MARKUP_ERROR, G_MARKUP_ERROR_EMPTY, NULL, ap);
#  155|         g_test_assert_expected_messages ();
#  156|         g_assert_null (error);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1006]
glib-2.87.0/glib/tests/error.c:172:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/error.c:135:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/error.c:145:7: branch_false: ...to here
glib-2.87.0/glib/tests/error.c:156:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/error.c:160:7: branch_true: ...to here
glib-2.87.0/glib/tests/error.c:167:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/error.c:172:7: throw: if ‘g_test_expect_message’ throws an exception...
glib-2.87.0/glib/tests/error.c:172:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  170|   #pragma GCC diagnostic ignored "-Wformat-nonliteral"
#  171|   
#  172|->       g_test_expect_message (G_LOG_DOMAIN,
#  173|                                G_LOG_LEVEL_WARNING,
#  174|                                "*g_error_new_valist: runtime check failed*");

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1007]
glib-2.87.0/glib/tests/error.c:175:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/error.c:135:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/error.c:145:7: branch_false: ...to here
glib-2.87.0/glib/tests/error.c:156:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/error.c:160:7: branch_true: ...to here
glib-2.87.0/glib/tests/error.c:167:7: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/error.c:175:15: throw: if ‘g_error_new_valist’ throws an exception...
glib-2.87.0/glib/tests/error.c:175:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  173|                                G_LOG_LEVEL_WARNING,
#  174|                                "*g_error_new_valist: runtime check failed*");
#  175|->       error = g_error_new_valist (0, G_MARKUP_ERROR_EMPTY, "Message", ap);
#  176|         g_test_assert_expected_messages ();
#  177|         g_assert_nonnull (error);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1008]
glib-2.87.0/glib/tests/error.c:263:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
glib-2.87.0/glib/tests/error.c:294:1: enter_function: entry to ‘g_error_with_test_error_private_init’
glib-2.87.0/glib/tests/error.c:294:1: call_function: calling ‘test_error_private_init’ from ‘g_error_with_test_error_private_init’
#  261|     g_assert_nonnull (priv);
#  262|   
#  263|->   priv->foo = 13;
#  264|     /* If that triggers, it's test bug.
#  265|      */

Error: COMPILER_WARNING (CWE-476): [#def1009]
glib-2.87.0/glib/tests/error.c:263:13: warning[-Wnull-dereference]: potential null pointer dereference
#  263 |   priv->foo = 13;
#      |   ~~~~~~~~~~^~~~
#  261|     g_assert_nonnull (priv);
#  262|   
#  263|->   priv->foo = 13;
#  264|     /* If that triggers, it's test bug.
#  265|      */

Error: COMPILER_WARNING (CWE-476): [#def1010]
glib-2.87.0/glib/tests/error.c:280:18: warning[-Wnull-dereference]: potential null pointer dereference
#  280 |   dest_priv->foo = src_priv->foo;
#      |   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
#  278|     g_assert_nonnull (dest_priv);
#  279|   
#  280|->   dest_priv->foo = src_priv->foo;
#  281|     dest_priv->check = src_priv->check;
#  282|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1011]
glib-2.87.0/glib/tests/error.c:280:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src_priv’
glib-2.87.0/glib/tests/error.c:294:1: enter_function: entry to ‘g_error_with_test_error_private_copy’
glib-2.87.0/glib/tests/error.c:294:1: call_function: calling ‘test_error_private_copy’ from ‘g_error_with_test_error_private_copy’
#  278|     g_assert_nonnull (dest_priv);
#  279|   
#  280|->   dest_priv->foo = src_priv->foo;
#  281|     dest_priv->check = src_priv->check;
#  282|   

Error: COMPILER_WARNING (CWE-476): [#def1012]
glib-2.87.0/glib/tests/error.c:280:28: warning[-Wnull-dereference]: potential null pointer dereference
#  280 |   dest_priv->foo = src_priv->foo;
#      |                    ~~~~~~~~^~~~~
#  278|     g_assert_nonnull (dest_priv);
#  279|   
#  280|->   dest_priv->foo = src_priv->foo;
#  281|     dest_priv->check = src_priv->check;
#  282|   

Error: COMPILER_WARNING (CWE-476): [#def1013]
glib-2.87.0/glib/tests/error.c:281:20: warning[-Wnull-dereference]: potential null pointer dereference
#  281 |   dest_priv->check = src_priv->check;
#      |   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
#  279|   
#  280|     dest_priv->foo = src_priv->foo;
#  281|->   dest_priv->check = src_priv->check;
#  282|   
#  283|     g_assert_nonnull (dest_priv->check);

Error: COMPILER_WARNING (CWE-476): [#def1014]
glib-2.87.0/glib/tests/error.c:281:30: warning[-Wnull-dereference]: potential null pointer dereference
#  281 |   dest_priv->check = src_priv->check;
#      |                      ~~~~~~~~^~~~~~~
#  279|   
#  280|     dest_priv->foo = src_priv->foo;
#  281|->   dest_priv->check = src_priv->check;
#  282|   
#  283|     g_assert_nonnull (dest_priv->check);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1015]
glib-2.87.0/glib/tests/error.c:290:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
glib-2.87.0/glib/tests/error.c:294:1: enter_function: entry to ‘g_error_with_test_error_private_clear’
glib-2.87.0/glib/tests/error.c:294:1: call_function: calling ‘test_error_private_clear’ from ‘g_error_with_test_error_private_clear’
#  288|   test_error_private_clear (TestErrorPrivate *priv)
#  289|   {
#  290|->   g_assert_nonnull (priv->check);
#  291|     priv->check->free_called++;
#  292|   }

Error: COMPILER_WARNING (CWE-476): [#def1016]
glib-2.87.0/glib/tests/error.c:290:25: warning[-Wnull-dereference]: potential null pointer dereference
#  290 |   g_assert_nonnull (priv->check);
#  288|   test_error_private_clear (TestErrorPrivate *priv)
#  289|   {
#  290|->   g_assert_nonnull (priv->check);
#  291|     priv->check->free_called++;
#  292|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1017]
glib-2.87.0/glib/tests/error.c:302:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/glib/tests/error.c:301:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/error.c:301:3: branch_false: ...to here
glib-2.87.0/glib/tests/error.c:302:3: danger: dereference of NULL ‘test_error_get_private(error)’
#  300|   
#  301|     g_assert_nonnull (test_error);
#  302|->   test_error->check = check;
#  303|   
#  304|     return test_error;

Error: COMPILER_WARNING (CWE-476): [#def1018]
glib-2.87.0/glib/tests/error.c:302:21: warning[-Wnull-dereference]: potential null pointer dereference
#  302 |   test_error->check = check;
#      |   ~~~~~~~~~~~~~~~~~~^~~~~~~
#  300|   
#  301|     g_assert_nonnull (test_error);
#  302|->   test_error->check = check;
#  303|   
#  304|     return test_error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1019]
glib-2.87.0/glib/tests/error.c:338:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/glib/tests/error.c:308:1: enter_function: entry to ‘test_extended’
glib-2.87.0/glib/tests/error.c:318:15: call_function: calling ‘fill_test_error’ from ‘test_extended’
glib-2.87.0/glib/tests/error.c:318:15: return_function: returning to ‘test_extended’ from ‘fill_test_error’
glib-2.87.0/glib/tests/error.c:336:20: call_function: calling ‘test_error_get_private’ from ‘test_extended’
glib-2.87.0/glib/tests/error.c:336:20: return_function: returning to ‘test_extended’ from ‘test_error_get_private’
glib-2.87.0/glib/tests/error.c:337:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/error.c:337:3: branch_false: ...to here
glib-2.87.0/glib/tests/error.c:338:3: danger: dereference of NULL ‘test_error_get_private(g_error_copy(g_error_new_literal(test_error_quark(), 0, "foo")))’
#  336|     copy_test_priv = test_error_get_private (copy_error);
#  337|     g_assert_nonnull (copy_test_priv);
#  338|->   g_assert_cmpint (test_priv->foo, ==, copy_test_priv->foo);
#  339|   
#  340|     g_error_free (error);

Error: COMPILER_WARNING (CWE-476): [#def1020]
glib-2.87.0/glib/glib.h:89: included_from: Included from here.
glib-2.87.0/glib/tests/error.c: scope_hint: In function ‘test_extended’
glib-2.87.0/glib/tests/error.c:338:54: warning[-Wnull-dereference]: potential null pointer dereference
#  338 |   g_assert_cmpint (test_priv->foo, ==, copy_test_priv->foo);
#  336|     copy_test_priv = test_error_get_private (copy_error);
#  337|     g_assert_nonnull (copy_test_priv);
#  338|->   g_assert_cmpint (test_priv->foo, ==, copy_test_priv->foo);
#  339|   
#  340|     g_error_free (error);

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

Error: CPPCHECK_WARNING (CWE-457): [#def1022]
glib-2.87.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-404): [#def1023]
glib-2.87.0/glib/tests/gvariant.c:3727:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/gvariant.c:3726:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/gvariant.c:3727:3: throw: if ‘g_variant_get_va’ throws an exception...
glib-2.87.0/glib/tests/gvariant.c:3727:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 3725|   
# 3726|     va_start (ap, format);
# 3727|->   g_variant_get_va (value, format, hash ? &endptr : NULL, &ap);
# 3728|     va_end (ap);
# 3729|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1024]
glib-2.87.0/glib/tests/gvariant.c:3746:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/gvariant.c:3745:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/gvariant.c:3746:11: throw: if ‘g_variant_new_va’ throws an exception...
glib-2.87.0/glib/tests/gvariant.c:3746:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 3744|   
# 3745|     va_start (ap, format);
# 3746|->   value = g_variant_new_va (format, hash ? &endptr : NULL, &ap);
# 3747|     va_end (ap);
# 3748|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1025]
glib-2.87.0/glib/tests/gvariant.c:4944:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/gvariant.c:4942:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/gvariant.c:4944:7: throw: if ‘g_variant_new_va’ throws an exception...
glib-2.87.0/glib/tests/gvariant.c:4944:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 4942|     va_start (args, fmt);
# 4943|   
# 4944|->   v = g_variant_new_va (fmt, NULL, &args);
# 4945|     g_variant_ref_sink (v);
# 4946|   #if G_BYTE_ORDER == G_BIG_ENDIAN

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1026]
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_to_sub[0]’
glib-2.87.0/glib/tests/io-channel-basic.c:289:15: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/io-channel-basic.c:294:11: branch_true: ...to here
glib-2.87.0/glib/tests/io-channel-basic.c:294:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/io-channel-basic.c:294:39: branch_false: ...to here
glib-2.87.0/glib/tests/io-channel-basic.c:294:11: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: branch_true: ...to here
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: throw: if ‘perror’ throws an exception...
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: danger: ‘pipe_to_sub[0]’ leaks here
#  294|         if (pipe (pipe_to_sub) == -1 || pipe (pipe_from_sub) == -1)
#  295|           {
#  296|->           perror ("pipe");
#  297|             exit (1);
#  298|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1027]
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_to_sub[1]’
glib-2.87.0/glib/tests/io-channel-basic.c:289:15: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/io-channel-basic.c:294:11: branch_true: ...to here
glib-2.87.0/glib/tests/io-channel-basic.c:294:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/io-channel-basic.c:294:39: branch_false: ...to here
glib-2.87.0/glib/tests/io-channel-basic.c:294:11: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: branch_true: ...to here
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: throw: if ‘perror’ throws an exception...
glib-2.87.0/glib/tests/io-channel-basic.c:296:11: danger: ‘pipe_to_sub[1]’ leaks here
#  294|         if (pipe (pipe_to_sub) == -1 || pipe (pipe_from_sub) == -1)
#  295|           {
#  296|->           perror ("pipe");
#  297|             exit (1);
#  298|           }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1028]
glib-2.87.0/glib/tests/keyfile.c:105:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:100:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:103:10: branch_true: following ‘true’ branch (when ‘v’ is non-NULL)...
glib-2.87.0/glib/tests/keyfile.c:105:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:105:7: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:105:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  103|     while (v)
#  104|       {
#  105|->       g_assert_nonnull (value[i]);
#  106|         g_assert_cmpstr (v, ==, value[i]);
#  107|         i++;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1029]
glib-2.87.0/glib/tests/keyfile.c:106:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:100:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:103:10: branch_true: following ‘true’ branch (when ‘v’ is non-NULL)...
glib-2.87.0/glib/tests/keyfile.c:105:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:105:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/keyfile.c:106:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:106:7: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:106:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  104|       {
#  105|         g_assert_nonnull (value[i]);
#  106|->       g_assert_cmpstr (v, ==, value[i]);
#  107|         i++;
#  108|         v = va_arg (args, gchar*);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1030]
glib-2.87.0/glib/tests/keyfile.c:138:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:133:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:136:10: branch_true: following ‘true’ branch (when ‘v’ is non-NULL)...
glib-2.87.0/glib/tests/keyfile.c:138:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:138:7: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:138:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  136|     while (v)
#  137|       {
#  138|->       g_assert_nonnull (value[i]);
#  139|         g_assert_cmpstr (v, ==, value[i]);
#  140|         i++;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1031]
glib-2.87.0/glib/tests/keyfile.c:139:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:133:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:136:10: branch_true: following ‘true’ branch (when ‘v’ is non-NULL)...
glib-2.87.0/glib/tests/keyfile.c:138:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:138:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/keyfile.c:139:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:139:7: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:139:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  137|       {
#  138|         g_assert_nonnull (value[i]);
#  139|->       g_assert_cmpstr (v, ==, value[i]);
#  140|         i++;
#  141|         v = va_arg (args, gchar*);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1032]
glib-2.87.0/glib/tests/keyfile.c:170:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:165:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:168:10: branch_true: following ‘true’ branch (when ‘v != -100’)...
glib-2.87.0/glib/tests/keyfile.c:170:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:170:7: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:170:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  168|     while (v != -100)
#  169|       {
#  170|->       g_assert_cmpint (i, <, len);
#  171|         g_assert_cmpint (value[i], ==, v);
#  172|         i++;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1033]
glib-2.87.0/glib/tests/keyfile.c:171:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:165:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:168:10: branch_true: following ‘true’ branch (when ‘v != -100’)...
glib-2.87.0/glib/tests/keyfile.c:170:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:171:7: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:171:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  169|       {
#  170|         g_assert_cmpint (i, <, len);
#  171|->       g_assert_cmpint (value[i], ==, v);
#  172|         i++;
#  173|         v = va_arg (args, gint);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1034]
glib-2.87.0/glib/tests/keyfile.c:202:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:197:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:200:10: branch_true: following ‘true’ branch (when ‘v != -1.0e+2’)...
glib-2.87.0/glib/tests/keyfile.c:202:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:202:7: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:202:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  200|     while (v != -100)
#  201|       {
#  202|->       g_assert_cmpint (i, <, len);
#  203|         g_assert_cmpfloat (value[i], ==, v);
#  204|         i++;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1035]
glib-2.87.0/glib/tests/keyfile.c:203:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:197:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:200:10: branch_true: following ‘true’ branch (when ‘v != -1.0e+2’)...
glib-2.87.0/glib/tests/keyfile.c:202:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:202:7: branch_true: following ‘true’ branch (when ‘__n1 < __n2’)...
glib-2.87.0/glib/tests/keyfile.c:203:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:203:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/keyfile.c:203:7: branch_false: ...to here
glib-2.87.0/glib/tests/keyfile.c:203:7: throw: if ‘g_assertion_message_cmpnum’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:203:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  201|       {
#  202|         g_assert_cmpint (i, <, len);
#  203|->       g_assert_cmpfloat (value[i], ==, v);
#  204|         i++;
#  205|         v = va_arg (args, gdouble);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1036]
glib-2.87.0/glib/tests/keyfile.c:234:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:229:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:232:10: branch_true: following ‘true’ branch (when ‘v != -100’)...
glib-2.87.0/glib/tests/keyfile.c:234:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:234:7: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:234:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  232|     while (v != -100)
#  233|       {
#  234|->       g_assert_cmpint (i, <, len);
#  235|         g_assert_cmpint (value[i], ==, v);
#  236|         i++;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1037]
glib-2.87.0/glib/tests/keyfile.c:235:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/keyfile.c:229:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/keyfile.c:232:10: branch_true: following ‘true’ branch (when ‘v != -100’)...
glib-2.87.0/glib/tests/keyfile.c:234:7: branch_true: ...to here
glib-2.87.0/glib/tests/keyfile.c:235:7: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/keyfile.c:235:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  233|       {
#  234|         g_assert_cmpint (i, <, len);
#  235|->       g_assert_cmpint (value[i], ==, v);
#  236|         i++;
#  237|         v = va_arg (args, gboolean);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1038]
glib-2.87.0/glib/tests/mainloop.c:1084:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/glib/tests/mainloop.c:1084:11: danger: infinite loop here
glib-2.87.0/glib/tests/mainloop.c:1084:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/glib/tests/mainloop.c:1084:10: branch_true: ...to here
# 1082|     loop = g_main_loop_new (NULL, FALSE);
# 1083|     thread = g_thread_new ("context thread", run_context, loop);
# 1084|->   while (!g_atomic_int_get (&ready_time_dispatched));
# 1085|   
# 1086|     /* Now let's see if it can wake up from sleeping. */

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1039]
glib-2.87.0/glib/tests/mainloop.c:1090:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/glib/tests/mainloop.c:1090:11: danger: infinite loop here
glib-2.87.0/glib/tests/mainloop.c:1090:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/glib/tests/mainloop.c:1090:10: branch_true: ...to here
# 1088|     g_atomic_int_set (&ready_time_dispatched, FALSE);
# 1089|     g_source_set_ready_time (source, 0);
# 1090|->   while (!g_atomic_int_get (&ready_time_dispatched));
# 1091|   
# 1092|     /* kill the thread */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1040]
glib-2.87.0/glib/tests/mainloop.c:1263:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
glib-2.87.0/glib/tests/mainloop.c:1308:1: enter_function: entry to ‘test_unix_fd’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_true: following ‘true’ branch (when ‘s == 0’)...
glib-2.87.0/glib/tests/mainloop.c:1321:13: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1321:13: call_function: calling ‘fill_a_pipe’ from ‘test_unix_fd’
# 1261|     pfd.fd = fd;
# 1262|     pfd.events = G_IO_OUT;
# 1263|->   while (g_poll (&pfd, 1, 0) == 1)
# 1264|       /* we should never see -1 here */
# 1265|       written += write (fd, zeros, sizeof zeros);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1041]
glib-2.87.0/glib/tests/mainloop.c:1263:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
glib-2.87.0/glib/tests/mainloop.c:1308:1: enter_function: entry to ‘test_unix_fd’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_true: following ‘true’ branch (when ‘s == 0’)...
glib-2.87.0/glib/tests/mainloop.c:1321:13: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1321:13: call_function: calling ‘fill_a_pipe’ from ‘test_unix_fd’
# 1261|     pfd.fd = fd;
# 1262|     pfd.events = G_IO_OUT;
# 1263|->   while (g_poll (&pfd, 1, 0) == 1)
# 1264|       /* we should never see -1 here */
# 1265|       written += write (fd, zeros, sizeof zeros);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1042]
glib-2.87.0/glib/tests/mainloop.c:1265:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
glib-2.87.0/glib/tests/mainloop.c:1308:1: enter_function: entry to ‘test_unix_fd’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_true: following ‘true’ branch (when ‘s == 0’)...
glib-2.87.0/glib/tests/mainloop.c:1321:13: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1321:13: call_function: calling ‘fill_a_pipe’ from ‘test_unix_fd’
# 1263|     while (g_poll (&pfd, 1, 0) == 1)
# 1264|       /* we should never see -1 here */
# 1265|->     written += write (fd, zeros, sizeof zeros);
# 1266|   
# 1267|     return written;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1043]
glib-2.87.0/glib/tests/mainloop.c:1321:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fds[1]’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_false: following ‘false’ branch (when ‘s != 0’)...
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_false: ...to here
glib-2.87.0/glib/tests/mainloop.c:1321:13: danger: use of uninitialized value ‘fds[1]’ here
# 1319|     g_assert_cmpint (s, ==, 0);
# 1320|   
# 1321|->   to_read = fill_a_pipe (fds[1]);
# 1322|     /* write at higher priority to keep the pipe full... */
# 1323|     a = g_unix_fd_add_full (G_PRIORITY_HIGH, fds[1], G_IO_OUT, write_bytes, &to_write, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1044]
glib-2.87.0/glib/tests/mainloop.c:1323:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_true: following ‘true’ branch (when ‘s == 0’)...
glib-2.87.0/glib/tests/mainloop.c:1321:13: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1323:7: throw: if ‘g_unix_fd_add_full’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1323:7: danger: ‘fds[0]’ leaks here
# 1321|     to_read = fill_a_pipe (fds[1]);
# 1322|     /* write at higher priority to keep the pipe full... */
# 1323|->   a = g_unix_fd_add_full (G_PRIORITY_HIGH, fds[1], G_IO_OUT, write_bytes, &to_write, NULL);
# 1324|     source_a = g_source_ref (g_main_context_find_source_by_id (NULL, a));
# 1325|     /* make sure no 'writes' get dispatched yet */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1045]
glib-2.87.0/glib/tests/mainloop.c:1324:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_true: following ‘true’ branch (when ‘s == 0’)...
glib-2.87.0/glib/tests/mainloop.c:1321:13: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1324:14: throw: if ‘g_main_context_find_source_by_id’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1324:14: danger: ‘fds[0]’ leaks here
# 1322|     /* write at higher priority to keep the pipe full... */
# 1323|     a = g_unix_fd_add_full (G_PRIORITY_HIGH, fds[1], G_IO_OUT, write_bytes, &to_write, NULL);
# 1324|->   source_a = g_source_ref (g_main_context_find_source_by_id (NULL, a));
# 1325|     /* make sure no 'writes' get dispatched yet */
# 1326|     while (g_main_context_iteration (NULL, FALSE));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1046]
glib-2.87.0/glib/tests/mainloop.c:1326:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_true: following ‘true’ branch (when ‘s == 0’)...
glib-2.87.0/glib/tests/mainloop.c:1321:13: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1326:10: throw: if ‘g_main_context_iteration’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1326:10: danger: ‘fds[0]’ leaks here
# 1324|     source_a = g_source_ref (g_main_context_find_source_by_id (NULL, a));
# 1325|     /* make sure no 'writes' get dispatched yet */
# 1326|->   while (g_main_context_iteration (NULL, FALSE));
# 1327|   
# 1328|     to_read += 128 * 1024 * 1024;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1047]
glib-2.87.0/glib/tests/mainloop.c:1330:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
glib-2.87.0/glib/tests/mainloop.c:1319:3: branch_true: following ‘true’ branch (when ‘s == 0’)...
glib-2.87.0/glib/tests/mainloop.c:1321:13: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1330:7: throw: if ‘g_unix_fd_add’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1330:7: danger: ‘fds[0]’ leaks here
# 1328|     to_read += 128 * 1024 * 1024;
# 1329|     to_write = 128 * 1024 * 1024;
# 1330|->   b = g_unix_fd_add (fds[0], G_IO_IN, read_bytes, &to_read);
# 1331|     source_b = g_source_ref (g_main_context_find_source_by_id (NULL, b));
# 1332|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1048]
glib-2.87.0/glib/tests/mainloop.c:1409:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/mainloop.c:1393:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/mainloop.c:1394:15: branch_true: following ‘true’ branch (when ‘i < n_to_poll’)...
glib-2.87.0/glib/tests/mainloop.c:1396:12: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1409:9: throw: if ‘g_log’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1409:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1407|   
# 1408|         if (j == n)
# 1409|->         g_error ("Unable to find fd %d (index %d) with events 0x%x", expected_fd, i, (guint) expected_events);
# 1410|       }
# 1411|     va_end (ap);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1049]
glib-2.87.0/glib/tests/mainloop.c:1552:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_false: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1552:3: danger: ‘fds_a[0]’ leaks here
# 1550|   
# 1551|     g_assert_cmpint (pipe (fds_a), ==, 0);
# 1552|->   g_assert_cmpint (pipe (fds_b), ==, 0);
# 1553|   
# 1554|     source_a = g_source_new (&no_funcs, sizeof (FlagSource));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1050]
glib-2.87.0/glib/tests/mainloop.c:1552:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_false: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1552:3: danger: ‘fds_a[1]’ leaks here
# 1550|   
# 1551|     g_assert_cmpint (pipe (fds_a), ==, 0);
# 1552|->   g_assert_cmpint (pipe (fds_b), ==, 0);
# 1553|   
# 1554|     source_a = g_source_new (&no_funcs, sizeof (FlagSource));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1051]
glib-2.87.0/glib/tests/mainloop.c:1554:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1554:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1554:14: danger: ‘fds_a[0]’ leaks here
# 1552|     g_assert_cmpint (pipe (fds_b), ==, 0);
# 1553|   
# 1554|->   source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|     source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1052]
glib-2.87.0/glib/tests/mainloop.c:1554:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1554:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1554:14: danger: ‘fds_a[1]’ leaks here
# 1552|     g_assert_cmpint (pipe (fds_b), ==, 0);
# 1553|   
# 1554|->   source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|     source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1053]
glib-2.87.0/glib/tests/mainloop.c:1554:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1554:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1554:14: danger: ‘fds_b[0]’ leaks here
# 1552|     g_assert_cmpint (pipe (fds_b), ==, 0);
# 1553|   
# 1554|->   source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|     source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1054]
glib-2.87.0/glib/tests/mainloop.c:1554:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1554:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1554:14: danger: ‘fds_b[1]’ leaks here
# 1552|     g_assert_cmpint (pipe (fds_b), ==, 0);
# 1553|   
# 1554|->   source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|     source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1055]
glib-2.87.0/glib/tests/mainloop.c:1555:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1555:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1555:14: danger: ‘fds_a[0]’ leaks here
# 1553|   
# 1554|     source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|->   source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   
# 1557|     /* attach a source with more than one fd */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1056]
glib-2.87.0/glib/tests/mainloop.c:1555:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1555:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1555:14: danger: ‘fds_a[1]’ leaks here
# 1553|   
# 1554|     source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|->   source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   
# 1557|     /* attach a source with more than one fd */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1057]
glib-2.87.0/glib/tests/mainloop.c:1555:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1555:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1555:14: danger: ‘fds_b[0]’ leaks here
# 1553|   
# 1554|     source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|->   source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   
# 1557|     /* attach a source with more than one fd */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1058]
glib-2.87.0/glib/tests/mainloop.c:1555:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1555:14: throw: if ‘g_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1555:14: danger: ‘fds_b[1]’ leaks here
# 1553|   
# 1554|     source_a = g_source_new (&no_funcs, sizeof (FlagSource));
# 1555|->   source_b = g_source_new (&no_funcs, sizeof (FlagSource));
# 1556|   
# 1557|     /* attach a source with more than one fd */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1059]
glib-2.87.0/glib/tests/mainloop.c:1558:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1558:3: throw: if ‘g_source_add_unix_fd’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1558:3: danger: ‘fds_a[0]’ leaks here
# 1556|   
# 1557|     /* attach a source with more than one fd */
# 1558|->   g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1060]
glib-2.87.0/glib/tests/mainloop.c:1558:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1558:3: throw: if ‘g_source_add_unix_fd’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1558:3: danger: ‘fds_a[1]’ leaks here
# 1556|   
# 1557|     /* attach a source with more than one fd */
# 1558|->   g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1061]
glib-2.87.0/glib/tests/mainloop.c:1558:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1558:3: throw: if ‘g_source_add_unix_fd’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1558:3: danger: ‘fds_b[0]’ leaks here
# 1556|   
# 1557|     /* attach a source with more than one fd */
# 1558|->   g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1062]
glib-2.87.0/glib/tests/mainloop.c:1558:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1558:3: throw: if ‘g_source_add_unix_fd’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1558:3: danger: ‘fds_b[1]’ leaks here
# 1556|   
# 1557|     /* attach a source with more than one fd */
# 1558|->   g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1063]
glib-2.87.0/glib/tests/mainloop.c:1558:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fds_a[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_false: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1558:3: danger: use of uninitialized value ‘fds_a[0]’ here
# 1556|   
# 1557|     /* attach a source with more than one fd */
# 1558|->   g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1064]
glib-2.87.0/glib/tests/mainloop.c:1559:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_a[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1559:3: throw: if ‘g_source_add_unix_fd’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1559:3: danger: ‘fds_a[1]’ leaks here
# 1557|     /* attach a source with more than one fd */
# 1558|     g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|->   g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);
# 1561|     assert_main_context_state (2,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1065]
glib-2.87.0/glib/tests/mainloop.c:1559:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1559:3: throw: if ‘g_source_add_unix_fd’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1559:3: danger: ‘fds_b[0]’ leaks here
# 1557|     /* attach a source with more than one fd */
# 1558|     g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|->   g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);
# 1561|     assert_main_context_state (2,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1066]
glib-2.87.0/glib/tests/mainloop.c:1559:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1559:3: throw: if ‘g_source_add_unix_fd’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1559:3: danger: ‘fds_b[1]’ leaks here
# 1557|     /* attach a source with more than one fd */
# 1558|     g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|->   g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|     g_source_attach (source_a, NULL);
# 1561|     assert_main_context_state (2,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1067]
glib-2.87.0/glib/tests/mainloop.c:1560:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[0]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1560:3: throw: if ‘g_source_attach’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1560:3: danger: ‘fds_b[0]’ leaks here
# 1558|     g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|->   g_source_attach (source_a, NULL);
# 1561|     assert_main_context_state (2,
# 1562|                                fds_a[0], G_IO_IN, 0,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1068]
glib-2.87.0/glib/tests/mainloop.c:1560:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds_b[1]’
glib-2.87.0/glib/tests/mainloop.c:1551:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1552:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1554:14: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1560:3: throw: if ‘g_source_attach’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1560:3: danger: ‘fds_b[1]’ leaks here
# 1558|     g_source_add_unix_fd (source_a, fds_a[0], G_IO_IN);
# 1559|     g_source_add_unix_fd (source_a, fds_a[1], G_IO_OUT);
# 1560|->   g_source_attach (source_a, NULL);
# 1561|     assert_main_context_state (2,
# 1562|                                fds_a[0], G_IO_IN, 0,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1069]
glib-2.87.0/glib/tests/mainloop.c:1666:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
glib-2.87.0/glib/tests/mainloop.c:1663:8: acquire_resource: opened here
glib-2.87.0/glib/tests/mainloop.c:1664:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1666:10: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1666:10: throw: if ‘g_main_loop_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1666:10: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
# 1664|     g_assert_cmpint (fd, >=, 0);
# 1665|   
# 1666|->   loop = g_main_loop_new (NULL, FALSE);
# 1667|   
# 1668|     source = g_unix_fd_source_new (fd, G_IO_IN);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1070]
glib-2.87.0/glib/tests/mainloop.c:1668:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
glib-2.87.0/glib/tests/mainloop.c:1663:8: acquire_resource: opened here
glib-2.87.0/glib/tests/mainloop.c:1664:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/mainloop.c:1666:10: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1668:12: throw: if ‘g_unix_fd_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1668:12: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1666|     loop = g_main_loop_new (NULL, FALSE);
# 1667|   
# 1668|->   source = g_unix_fd_source_new (fd, G_IO_IN);
# 1669|     g_source_set_callback (source, (GSourceFunc) unixfd_quit_loop, loop, NULL);
# 1670|     g_source_attach (source, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1071]
glib-2.87.0/glib/tests/mainloop.c:1707:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 0)’
glib-2.87.0/glib/tests/mainloop.c:1706:9: acquire_resource: opened here
glib-2.87.0/glib/tests/mainloop.c:1707:3: branch_false: following ‘false’ branch (when ‘__n1 < 0’)...
glib-2.87.0/glib/tests/mainloop.c:1707:3: branch_false: ...to here
glib-2.87.0/glib/tests/mainloop.c:1707:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1707:3: danger: ‘open("/dev/random", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 1705|   
# 1706|     fd1 = open ("/dev/random", O_RDONLY);
# 1707|->   g_assert_cmpint (fd1, >=, 0);
# 1708|     source = g_unix_fd_source_new (fd1, G_IO_IN);
# 1709|     g_source_set_callback (source, G_SOURCE_FUNC (flag_bool), &s2, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1072]
glib-2.87.0/glib/tests/mainloop.c:1708:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 0)’
glib-2.87.0/glib/tests/mainloop.c:1706:9: acquire_resource: opened here
glib-2.87.0/glib/tests/mainloop.c:1707:3: branch_true: following ‘true’ branch (when ‘__n1 >= 0’)...
glib-2.87.0/glib/tests/mainloop.c:1708:12: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1708:12: throw: if ‘g_unix_fd_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1708:12: danger: ‘open("/dev/random", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 1706|     fd1 = open ("/dev/random", O_RDONLY);
# 1707|     g_assert_cmpint (fd1, >=, 0);
# 1708|->   source = g_unix_fd_source_new (fd1, G_IO_IN);
# 1709|     g_source_set_callback (source, G_SOURCE_FUNC (flag_bool), &s2, NULL);
# 1710|     g_source_set_priority (source, 10);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1073]
glib-2.87.0/glib/tests/mainloop.c:1715:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 0)’
glib-2.87.0/glib/tests/mainloop.c:1714:9: acquire_resource: opened here
glib-2.87.0/glib/tests/mainloop.c:1715:3: branch_false: following ‘false’ branch (when ‘__n1 < 0’)...
glib-2.87.0/glib/tests/mainloop.c:1715:3: branch_false: ...to here
glib-2.87.0/glib/tests/mainloop.c:1715:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1715:3: danger: ‘open("/dev/random", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
# 1713|   
# 1714|     fd2 = open ("/dev/random", O_RDONLY);
# 1715|->   g_assert_cmpint (fd2, >=, 0);
# 1716|     source = g_unix_fd_source_new (fd2, G_IO_IN);
# 1717|     g_source_set_callback (source, G_SOURCE_FUNC (flag_bool), &s3, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1074]
glib-2.87.0/glib/tests/mainloop.c:1716:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 0)’
glib-2.87.0/glib/tests/mainloop.c:1714:9: acquire_resource: opened here
glib-2.87.0/glib/tests/mainloop.c:1715:3: branch_true: following ‘true’ branch (when ‘__n1 >= 0’)...
glib-2.87.0/glib/tests/mainloop.c:1716:12: branch_true: ...to here
glib-2.87.0/glib/tests/mainloop.c:1716:12: throw: if ‘g_unix_fd_source_new’ throws an exception...
glib-2.87.0/glib/tests/mainloop.c:1716:12: danger: ‘open("/dev/random", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
# 1714|     fd2 = open ("/dev/random", O_RDONLY);
# 1715|     g_assert_cmpint (fd2, >=, 0);
# 1716|->   source = g_unix_fd_source_new (fd2, G_IO_IN);
# 1717|     g_source_set_callback (source, G_SOURCE_FUNC (flag_bool), &s3, NULL);
# 1718|     g_source_set_priority (source, 0);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1075]
glib-2.87.0/glib/tests/markup-escape.c:118:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/markup-escape.c:127:1: enter_function: entry to ‘format_test’
glib-2.87.0/glib/tests/markup-escape.c:129:3: call_function: calling ‘test_format’ from ‘format_test’
#  116|   
#  117|     va_start (args, expected);
#  118|->   result = g_markup_vprintf_escaped (format, args);
#  119|     va_end (args);
#  120|   

Error: CPPCHECK_WARNING (CWE-457): [#def1076]
glib-2.87.0/glib/tests/markup-parse.c:252: error[legacyUninitvar]: Uninitialized variable: expected
#  250|     g_free (f);
#  251|   
#  252|->   return expected;
#  253|   }
#  254|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1077]
glib-2.87.0/glib/tests/protocol.c:154:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[(int)pid]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:154:13: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:154:13: danger: ‘pipes[(int)pid]’ leaks here
#  152|       }
#  153|   
#  154|->   argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  155|   
#  156|     if (!g_spawn_async (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1078]
glib-2.87.0/glib/tests/protocol.c:154:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[1]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:154:13: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:154:13: danger: ‘pipes[1]’ leaks here
#  152|       }
#  153|   
#  154|->   argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  155|   
#  156|     if (!g_spawn_async (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1079]
glib-2.87.0/glib/tests/protocol.c:156:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[(int)pid]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:156:8: throw: if ‘g_spawn_async’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:156:8: danger: ‘pipes[(int)pid]’ leaks here
#  154|     argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  155|   
#  156|->   if (!g_spawn_async (NULL,
#  157|                         argv, NULL,
#  158|                         G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_LEAVE_DESCRIPTORS_OPEN |

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1080]
glib-2.87.0/glib/tests/protocol.c:163:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:156:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/protocol.c:163:7: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:163:7: throw: if ‘g_log’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:163:7: danger: ‘pipes[0]’ leaks here
#  161|                         &error))
#  162|       {
#  163|->       g_error ("error spawning the test: %s", error->message);
#  164|       }
#  165|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1081]
glib-2.87.0/glib/tests/protocol.c:166:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:156:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:166:3: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:166:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:166:3: danger: ‘pipes[0]’ leaks here
#  164|       }
#  165|   
#  166|->   close (pipes[1]);
#  167|     tlb = g_test_log_buffer_new ();
#  168|     loop = g_main_loop_new (NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1082]
glib-2.87.0/glib/tests/protocol.c:167:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:156:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:166:3: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:167:9: throw: if ‘g_test_log_buffer_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:167:9: danger: ‘pipes[0]’ leaks here
#  165|   
#  166|     close (pipes[1]);
#  167|->   tlb = g_test_log_buffer_new ();
#  168|     loop = g_main_loop_new (NULL, FALSE);
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1083]
glib-2.87.0/glib/tests/protocol.c:168:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:156:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:166:3: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:168:10: throw: if ‘g_main_loop_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:168:10: danger: ‘pipes[0]’ leaks here
#  166|     close (pipes[1]);
#  167|     tlb = g_test_log_buffer_new ();
#  168|->   loop = g_main_loop_new (NULL, FALSE);
#  169|   
#  170|   #ifdef G_OS_WIN32

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1084]
glib-2.87.0/glib/tests/protocol.c:173:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:148:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:154:13: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:156:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:166:3: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:173:13: throw: if ‘g_io_channel_unix_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:173:13: danger: ‘pipes[0]’ leaks here
#  171|     channel = g_io_channel_win32_new_fd (pipes[0]);
#  172|   #else
#  173|->   channel = g_io_channel_unix_new (pipes[0]);
#  174|   #endif
#  175|     g_io_channel_set_close_on_unref (channel, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1085]
glib-2.87.0/glib/tests/protocol.c:280:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[(int)pid]’
glib-2.87.0/glib/tests/protocol.c:246:1: enter_function: entry to ‘test_error’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:311:7: call_function: calling ‘test_message_cb1’ from ‘test_error’
glib-2.87.0/glib/tests/protocol.c:311:7: return_function: returning to ‘test_error’ from ‘test_message_cb1’
glib-2.87.0/glib/tests/protocol.c:314:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/protocol.c:315:7: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:280:17: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:280:17: danger: ‘pipes[(int)pid]’ leaks here
#  278|           }
#  279|   
#  280|->       argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  281|   
#  282|         if (!g_spawn_async (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1086]
glib-2.87.0/glib/tests/protocol.c:280:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[1]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:280:17: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:280:17: danger: ‘pipes[1]’ leaks here
#  278|           }
#  279|   
#  280|->       argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  281|   
#  282|         if (!g_spawn_async (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1087]
glib-2.87.0/glib/tests/protocol.c:280:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[messages]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:280:17: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:280:17: danger: ‘pipes[messages]’ leaks here
#  278|           }
#  279|   
#  280|->       argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  281|   
#  282|         if (!g_spawn_async (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1088]
glib-2.87.0/glib/tests/protocol.c:282:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:246:1: enter_function: entry to ‘test_error’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:311:7: call_function: calling ‘test_message_cb1’ from ‘test_error’
glib-2.87.0/glib/tests/protocol.c:311:7: return_function: returning to ‘test_error’ from ‘test_message_cb1’
glib-2.87.0/glib/tests/protocol.c:314:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/protocol.c:315:7: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:12: throw: if ‘g_spawn_async’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:282:12: danger: ‘pipes[0]’ leaks here
#  280|         argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  281|   
#  282|->       if (!g_spawn_async (NULL,
#  283|                             argv, NULL,
#  284|                             G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_LEAVE_DESCRIPTORS_OPEN |

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1089]
glib-2.87.0/glib/tests/protocol.c:282:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[messages]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:12: throw: if ‘g_spawn_async’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:282:12: danger: ‘pipes[messages]’ leaks here
#  280|         argv[1] = g_strdup_printf ("--GTestLogFD=%u", pipes[1]);
#  281|   
#  282|->       if (!g_spawn_async (NULL,
#  283|                             argv, NULL,
#  284|                             G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_LEAVE_DESCRIPTORS_OPEN |

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1090]
glib-2.87.0/glib/tests/protocol.c:289:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:289:11: throw: if ‘g_log’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:289:11: danger: ‘pipes[0]’ leaks here
#  287|                             &error))
#  288|           {
#  289|->           g_error ("error spawning the test: %s", error->message);
#  290|           }
#  291|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1091]
glib-2.87.0/glib/tests/protocol.c:292:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:246:1: enter_function: entry to ‘test_error’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:311:7: call_function: calling ‘test_message_cb1’ from ‘test_error’
glib-2.87.0/glib/tests/protocol.c:311:7: return_function: returning to ‘test_error’ from ‘test_message_cb1’
glib-2.87.0/glib/tests/protocol.c:314:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/protocol.c:315:7: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:292:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:292:7: danger: ‘pipes[0]’ leaks here
#  290|           }
#  291|   
#  292|->       close (pipes[1]);
#  293|         tlb = g_test_log_buffer_new ();
#  294|         loop = g_main_loop_new (NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1092]
glib-2.87.0/glib/tests/protocol.c:292:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[messages]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:292:7: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:292:7: danger: ‘pipes[messages]’ leaks here
#  290|           }
#  291|   
#  292|->       close (pipes[1]);
#  293|         tlb = g_test_log_buffer_new ();
#  294|         loop = g_main_loop_new (NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1093]
glib-2.87.0/glib/tests/protocol.c:293:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:246:1: enter_function: entry to ‘test_error’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:311:7: call_function: calling ‘test_message_cb1’ from ‘test_error’
glib-2.87.0/glib/tests/protocol.c:311:7: return_function: returning to ‘test_error’ from ‘test_message_cb1’
glib-2.87.0/glib/tests/protocol.c:314:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/protocol.c:315:7: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:293:13: throw: if ‘g_test_log_buffer_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:293:13: danger: ‘pipes[0]’ leaks here
#  291|   
#  292|         close (pipes[1]);
#  293|->       tlb = g_test_log_buffer_new ();
#  294|         loop = g_main_loop_new (NULL, FALSE);
#  295|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1094]
glib-2.87.0/glib/tests/protocol.c:293:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[messages]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:293:13: throw: if ‘g_test_log_buffer_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:293:13: danger: ‘pipes[messages]’ leaks here
#  291|   
#  292|         close (pipes[1]);
#  293|->       tlb = g_test_log_buffer_new ();
#  294|         loop = g_main_loop_new (NULL, FALSE);
#  295|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1095]
glib-2.87.0/glib/tests/protocol.c:294:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:246:1: enter_function: entry to ‘test_error’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:311:7: call_function: calling ‘test_message_cb1’ from ‘test_error’
glib-2.87.0/glib/tests/protocol.c:311:7: return_function: returning to ‘test_error’ from ‘test_message_cb1’
glib-2.87.0/glib/tests/protocol.c:314:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/protocol.c:315:7: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:294:14: throw: if ‘g_main_loop_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:294:14: danger: ‘pipes[0]’ leaks here
#  292|         close (pipes[1]);
#  293|         tlb = g_test_log_buffer_new ();
#  294|->       loop = g_main_loop_new (NULL, FALSE);
#  295|   
#  296|   #ifdef G_OS_WIN32

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1096]
glib-2.87.0/glib/tests/protocol.c:294:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[messages]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:294:14: throw: if ‘g_main_loop_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:294:14: danger: ‘pipes[messages]’ leaks here
#  292|         close (pipes[1]);
#  293|         tlb = g_test_log_buffer_new ();
#  294|->       loop = g_main_loop_new (NULL, FALSE);
#  295|   
#  296|   #ifdef G_OS_WIN32

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1097]
glib-2.87.0/glib/tests/protocol.c:299:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
glib-2.87.0/glib/tests/protocol.c:246:1: enter_function: entry to ‘test_error’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:311:7: call_function: calling ‘test_message_cb1’ from ‘test_error’
glib-2.87.0/glib/tests/protocol.c:311:7: return_function: returning to ‘test_error’ from ‘test_message_cb1’
glib-2.87.0/glib/tests/protocol.c:314:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/protocol.c:315:7: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:352:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:299:17: throw: if ‘g_io_channel_unix_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:299:17: danger: ‘pipes[0]’ leaks here
#  297|         channel = g_io_channel_win32_new_fd (pipes[0]);
#  298|   #else
#  299|->       channel = g_io_channel_unix_new (pipes[0]);
#  300|   #endif
#  301|         g_io_channel_set_close_on_unref (channel, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1098]
glib-2.87.0/glib/tests/protocol.c:299:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[messages]’
glib-2.87.0/glib/tests/protocol.c:256:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
glib-2.87.0/glib/tests/protocol.c:258:14: branch_true: ...to here
glib-2.87.0/glib/tests/protocol.c:274:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:280:17: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:282:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/protocol.c:292:7: branch_false: ...to here
glib-2.87.0/glib/tests/protocol.c:299:17: throw: if ‘g_io_channel_unix_new’ throws an exception...
glib-2.87.0/glib/tests/protocol.c:299:17: danger: ‘pipes[messages]’ leaks here
#  297|         channel = g_io_channel_win32_new_fd (pipes[0]);
#  298|   #else
#  299|->       channel = g_io_channel_unix_new (pipes[0]);
#  300|   #endif
#  301|         g_io_channel_set_close_on_unref (channel, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-666): [#def1099]
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: warning[-Wanalyzer-fd-phase-mismatch]: ‘dup2’ on file descriptor ‘fd’ in wrong phase
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: danger: ‘dup2’ expects a stream socket to be connected via ‘accept’ but ‘fd’ has not yet been bound
#  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: [#def1100]
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_false: following ‘false’ branch (when ‘fd < 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: danger: ‘fd’ could be invalid
#  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 (CWE-775): [#def1101]
glib-2.87.0/glib/tests/spawn-singlethread.c:427:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:427:7: branch_false: following ‘false’ branch (when ‘estatus < 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:427:7: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:427:7: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:427:7: danger: ‘fd’ leaks here
#  425|         /* Set the socket as FD 2, stderr */
#  426|         estatus = dup2 (fd, 2);
#  427|->       g_assert_cmpint (estatus, >=, 0);
#  428|   
#  429|         argv = g_ptr_array_new ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1102]
glib-2.87.0/glib/tests/spawn-singlethread.c:429:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:429:14: throw: if ‘g_ptr_array_new’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:429:14: danger: ‘fd’ leaks here
#  427|         g_assert_cmpint (estatus, >=, 0);
#  428|   
#  429|->       argv = g_ptr_array_new ();
#  430|         g_ptr_array_add (argv, echo_script_path);
#  431|         g_ptr_array_add (argv, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1103]
glib-2.87.0/glib/tests/spawn-singlethread.c:430:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:430:7: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:430:7: danger: ‘fd’ leaks here
#  428|   
#  429|         argv = g_ptr_array_new ();
#  430|->       g_ptr_array_add (argv, echo_script_path);
#  431|         g_ptr_array_add (argv, NULL);
#  432|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1104]
glib-2.87.0/glib/tests/spawn-singlethread.c:431:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:431:7: throw: if ‘g_ptr_array_add’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:431:7: danger: ‘fd’ leaks here
#  429|         argv = g_ptr_array_new ();
#  430|         g_ptr_array_add (argv, echo_script_path);
#  431|->       g_ptr_array_add (argv, NULL);
#  432|   
#  433|         g_spawn_sync (NULL, (char**) argv->pdata, NULL, 0, NULL, NULL, NULL, NULL, NULL, &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1105]
glib-2.87.0/glib/tests/spawn-singlethread.c:433:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:433:7: throw: if ‘g_spawn_sync’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:433:7: danger: ‘fd’ leaks here
#  431|         g_ptr_array_add (argv, NULL);
#  432|   
#  433|->       g_spawn_sync (NULL, (char**) argv->pdata, NULL, 0, NULL, NULL, NULL, NULL, NULL, &error);
#  434|         g_assert_no_error (error);
#  435|         g_ptr_array_free (argv, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1106]
glib-2.87.0/glib/tests/spawn-singlethread.c:434:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:434:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:434:7: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:434:7: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:434:7: danger: ‘fd’ leaks here
#  432|   
#  433|         g_spawn_sync (NULL, (char**) argv->pdata, NULL, 0, NULL, NULL, NULL, NULL, NULL, &error);
#  434|->       g_assert_no_error (error);
#  435|         g_ptr_array_free (argv, TRUE);
#  436|         g_close (fd, &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1107]
glib-2.87.0/glib/tests/spawn-singlethread.c:435:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:435:7: throw: if ‘g_ptr_array_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:435:7: danger: ‘fd’ leaks here
#  433|         g_spawn_sync (NULL, (char**) argv->pdata, NULL, 0, NULL, NULL, NULL, NULL, NULL, &error);
#  434|         g_assert_no_error (error);
#  435|->       g_ptr_array_free (argv, TRUE);
#  436|         g_close (fd, &error);
#  437|         g_assert_no_error (error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1108]
glib-2.87.0/glib/tests/spawn-singlethread.c:436:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/spawn-singlethread.c:416:6: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:419:12: acquire_resource: stream socket created here
glib-2.87.0/glib/tests/spawn-singlethread.c:420:7: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
glib-2.87.0/glib/tests/spawn-singlethread.c:426:17: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-singlethread.c:436:7: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/spawn-singlethread.c:436:7: danger: ‘fd’ leaks here
#  434|         g_assert_no_error (error);
#  435|         g_ptr_array_free (argv, TRUE);
#  436|->       g_close (fd, &error);
#  437|         g_assert_no_error (error);
#  438|         return;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1109]
glib-2.87.0/glib/tests/spawn-test.c:453:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: throw: if ‘g_test_message’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:453:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  451|           gchar *standard_error = NULL;
#  452|   
#  453|->         g_test_message ("Fetching GSpawn result %s%s%s with stdin %s, stdout %s, stderr %s",
#  454|                           output_return_state == OPENED? "output" : "",
#  455|                           output_return_state == OPENED && error_return_state == OPENED? " and " : "",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1110]
glib-2.87.0/glib/tests/spawn-test.c:453:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: throw: if ‘g_test_message’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:453:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  451|           gchar *standard_error = NULL;
#  452|   
#  453|->         g_test_message ("Fetching GSpawn result %s%s%s with stdin %s, stdout %s, stderr %s",
#  454|                           output_return_state == OPENED? "output" : "",
#  455|                           output_return_state == OPENED && error_return_state == OPENED? " and " : "",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1111]
glib-2.87.0/glib/tests/spawn-test.c:453:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: throw: if ‘g_test_message’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:453:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  451|           gchar *standard_error = NULL;
#  452|   
#  453|->         g_test_message ("Fetching GSpawn result %s%s%s with stdin %s, stdout %s, stderr %s",
#  454|                           output_return_state == OPENED? "output" : "",
#  455|                           output_return_state == OPENED && error_return_state == OPENED? " and " : "",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1112]
glib-2.87.0/glib/tests/spawn-test.c:475:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:475:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:475:13: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:475:13: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  473|           if (stderr_state == CLOSED)
#  474|             {
#  475|->             g_close (STDERR_FILENO, &error);
#  476|               g_assert_no_error (error);
#  477|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1113]
glib-2.87.0/glib/tests/spawn-test.c:475:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:475:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:475:13: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:475:13: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  473|           if (stderr_state == CLOSED)
#  474|             {
#  475|->             g_close (STDERR_FILENO, &error);
#  476|               g_assert_no_error (error);
#  477|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1114]
glib-2.87.0/glib/tests/spawn-test.c:475:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:475:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:475:13: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:475:13: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  473|           if (stderr_state == CLOSED)
#  474|             {
#  475|->             g_close (STDERR_FILENO, &error);
#  476|               g_assert_no_error (error);
#  477|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1115]
glib-2.87.0/glib/tests/spawn-test.c:476:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:475:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:476:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:476:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:476:13: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:476:13: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  474|             {
#  475|               g_close (STDERR_FILENO, &error);
#  476|->             g_assert_no_error (error);
#  477|             }
#  478|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1116]
glib-2.87.0/glib/tests/spawn-test.c:476:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:475:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:476:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:476:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:476:13: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:476:13: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  474|             {
#  475|               g_close (STDERR_FILENO, &error);
#  476|->             g_assert_no_error (error);
#  477|             }
#  478|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1117]
glib-2.87.0/glib/tests/spawn-test.c:476:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_true: following ‘true’ branch (when ‘stderr_state == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:475:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:476:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:476:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:476:13: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:476:13: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  474|             {
#  475|               g_close (STDERR_FILENO, &error);
#  476|->             g_assert_no_error (error);
#  477|             }
#  478|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1118]
glib-2.87.0/glib/tests/spawn-test.c:479:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:479:24: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  477|             }
#  478|   
#  479|->         command_line = g_strdup_printf ("/bin/sh -c '%s%s%s'",
#  480|                                           output_return_state == OPENED? "echo stdout": "",
#  481|                                           output_return_state == OPENED && error_return_state == OPENED? ";" : "",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1119]
glib-2.87.0/glib/tests/spawn-test.c:479:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:479:24: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  477|             }
#  478|   
#  479|->         command_line = g_strdup_printf ("/bin/sh -c '%s%s%s'",
#  480|                                           output_return_state == OPENED? "echo stdout": "",
#  481|                                           output_return_state == OPENED && error_return_state == OPENED? ";" : "",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1120]
glib-2.87.0/glib/tests/spawn-test.c:479:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:479:24: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  477|             }
#  478|   
#  479|->         command_line = g_strdup_printf ("/bin/sh -c '%s%s%s'",
#  480|                                           output_return_state == OPENED? "echo stdout": "",
#  481|                                           output_return_state == OPENED && error_return_state == OPENED? ";" : "",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1121]
glib-2.87.0/glib/tests/spawn-test.c:483:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:483:9: throw: if ‘g_shell_parse_argv’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:483:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  481|                                           output_return_state == OPENED && error_return_state == OPENED? ";" : "",
#  482|                                           error_return_state == OPENED? "echo stderr >&2": "");
#  483|->         g_shell_parse_argv (command_line, NULL, &argv, &error);
#  484|           g_assert_no_error (error);
#  485|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1122]
glib-2.87.0/glib/tests/spawn-test.c:483:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:483:9: throw: if ‘g_shell_parse_argv’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:483:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  481|                                           output_return_state == OPENED && error_return_state == OPENED? ";" : "",
#  482|                                           error_return_state == OPENED? "echo stderr >&2": "");
#  483|->         g_shell_parse_argv (command_line, NULL, &argv, &error);
#  484|           g_assert_no_error (error);
#  485|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1123]
glib-2.87.0/glib/tests/spawn-test.c:483:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:483:9: throw: if ‘g_shell_parse_argv’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:483:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  481|                                           output_return_state == OPENED && error_return_state == OPENED? ";" : "",
#  482|                                           error_return_state == OPENED? "echo stderr >&2": "");
#  483|->         g_shell_parse_argv (command_line, NULL, &argv, &error);
#  484|           g_assert_no_error (error);
#  485|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1124]
glib-2.87.0/glib/tests/spawn-test.c:484:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:484:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:484:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:484:9: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:484:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  482|                                           error_return_state == OPENED? "echo stderr >&2": "");
#  483|           g_shell_parse_argv (command_line, NULL, &argv, &error);
#  484|->         g_assert_no_error (error);
#  485|   
#  486|           g_clear_pointer (&command_line, g_free);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1125]
glib-2.87.0/glib/tests/spawn-test.c:484:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:484:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:484:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:484:9: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:484:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  482|                                           error_return_state == OPENED? "echo stderr >&2": "");
#  483|           g_shell_parse_argv (command_line, NULL, &argv, &error);
#  484|->         g_assert_no_error (error);
#  485|   
#  486|           g_clear_pointer (&command_line, g_free);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1126]
glib-2.87.0/glib/tests/spawn-test.c:484:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:484:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:484:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:484:9: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:484:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  482|                                           error_return_state == OPENED? "echo stderr >&2": "");
#  483|           g_shell_parse_argv (command_line, NULL, &argv, &error);
#  484|->         g_assert_no_error (error);
#  485|   
#  486|           g_clear_pointer (&command_line, g_free);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1127]
glib-2.87.0/glib/tests/spawn-test.c:486:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:486:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:486:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:486:9: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:486:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  484|           g_assert_no_error (error);
#  485|   
#  486|->         g_clear_pointer (&command_line, g_free);
#  487|   
#  488|           result = g_spawn_sync (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1128]
glib-2.87.0/glib/tests/spawn-test.c:486:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:486:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:486:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:486:9: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:486:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  484|           g_assert_no_error (error);
#  485|   
#  486|->         g_clear_pointer (&command_line, g_free);
#  487|   
#  488|           result = g_spawn_sync (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1129]
glib-2.87.0/glib/tests/spawn-test.c:486:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:486:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:486:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:486:9: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:486:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  484|           g_assert_no_error (error);
#  485|   
#  486|->         g_clear_pointer (&command_line, g_free);
#  487|   
#  488|           result = g_spawn_sync (NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1130]
glib-2.87.0/glib/tests/spawn-test.c:488:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:488:18: throw: if ‘g_spawn_sync’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:488:18: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  486|           g_clear_pointer (&command_line, g_free);
#  487|   
#  488|->         result = g_spawn_sync (NULL,
#  489|                                  argv, envp, G_SPAWN_SEARCH_PATH_FROM_ENVP,
#  490|                                  NULL, NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1131]
glib-2.87.0/glib/tests/spawn-test.c:488:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:488:18: throw: if ‘g_spawn_sync’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:488:18: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  486|           g_clear_pointer (&command_line, g_free);
#  487|   
#  488|->         result = g_spawn_sync (NULL,
#  489|                                  argv, envp, G_SPAWN_SEARCH_PATH_FROM_ENVP,
#  490|                                  NULL, NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1132]
glib-2.87.0/glib/tests/spawn-test.c:488:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:488:18: throw: if ‘g_spawn_sync’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:488:18: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  486|           g_clear_pointer (&command_line, g_free);
#  487|   
#  488|->         result = g_spawn_sync (NULL,
#  489|                                  argv, envp, G_SPAWN_SEARCH_PATH_FROM_ENVP,
#  490|                                  NULL, NULL,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1133]
glib-2.87.0/glib/tests/spawn-test.c:495:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:495:9: throw: if ‘g_strfreev’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:495:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  493|                                  NULL,
#  494|                                  &error);
#  495|->         g_clear_pointer (&argv, g_strfreev);
#  496|   
#  497|           ret = dup2 (old_stderr_fd, STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1134]
glib-2.87.0/glib/tests/spawn-test.c:495:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:495:9: throw: if ‘g_strfreev’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:495:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  493|                                  NULL,
#  494|                                  &error);
#  495|->         g_clear_pointer (&argv, g_strfreev);
#  496|   
#  497|           ret = dup2 (old_stderr_fd, STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1135]
glib-2.87.0/glib/tests/spawn-test.c:495:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:495:9: throw: if ‘g_strfreev’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:495:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  493|                                  NULL,
#  494|                                  &error);
#  495|->         g_clear_pointer (&argv, g_strfreev);
#  496|   
#  497|           ret = dup2 (old_stderr_fd, STDERR_FILENO);

Error: GCC_ANALYZER_WARNING: [#def1136]
glib-2.87.0/glib/tests/spawn-test.c:497:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:497:15: danger: ‘old_stderr_fd’ could be invalid: unchecked value from [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  495|           g_clear_pointer (&argv, g_strfreev);
#  496|   
#  497|->         ret = dup2 (old_stderr_fd, STDERR_FILENO);
#  498|           g_assert_cmpint (ret, ==, STDERR_FILENO);
#  499|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1137]
glib-2.87.0/glib/tests/spawn-test.c:498:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_false: following ‘false’ branch (when ‘ret != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:498:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  496|   
#  497|           ret = dup2 (old_stderr_fd, STDERR_FILENO);
#  498|->         g_assert_cmpint (ret, ==, STDERR_FILENO);
#  499|   
#  500|           ret = dup2 (old_stdout_fd, STDOUT_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1138]
glib-2.87.0/glib/tests/spawn-test.c:498:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_false: following ‘false’ branch (when ‘ret != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:498:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  496|   
#  497|           ret = dup2 (old_stderr_fd, STDERR_FILENO);
#  498|->         g_assert_cmpint (ret, ==, STDERR_FILENO);
#  499|   
#  500|           ret = dup2 (old_stdout_fd, STDOUT_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1139]
glib-2.87.0/glib/tests/spawn-test.c:498:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_false: following ‘false’ branch (when ‘ret != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:498:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  496|   
#  497|           ret = dup2 (old_stderr_fd, STDERR_FILENO);
#  498|->         g_assert_cmpint (ret, ==, STDERR_FILENO);
#  499|   
#  500|           ret = dup2 (old_stdout_fd, STDOUT_FILENO);

Error: GCC_ANALYZER_WARNING: [#def1140]
glib-2.87.0/glib/tests/spawn-test.c:500:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:500:15: danger: ‘old_stdout_fd’ could be invalid: unchecked value from [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  498|           g_assert_cmpint (ret, ==, STDERR_FILENO);
#  499|   
#  500|->         ret = dup2 (old_stdout_fd, STDOUT_FILENO);
#  501|           g_assert_cmpint (ret, ==, STDOUT_FILENO);
#  502|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1141]
glib-2.87.0/glib/tests/spawn-test.c:501:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_false: following ‘false’ branch (when ‘ret != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:501:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
#  499|   
#  500|           ret = dup2 (old_stdout_fd, STDOUT_FILENO);
#  501|->         g_assert_cmpint (ret, ==, STDOUT_FILENO);
#  502|   
#  503|           ret = dup2 (old_stdin_fd, STDIN_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1142]
glib-2.87.0/glib/tests/spawn-test.c:501:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_false: following ‘false’ branch (when ‘ret != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:501:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  499|   
#  500|           ret = dup2 (old_stdout_fd, STDOUT_FILENO);
#  501|->         g_assert_cmpint (ret, ==, STDOUT_FILENO);
#  502|   
#  503|           ret = dup2 (old_stdin_fd, STDIN_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1143]
glib-2.87.0/glib/tests/spawn-test.c:501:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_false: following ‘false’ branch (when ‘ret != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:501:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  499|   
#  500|           ret = dup2 (old_stdout_fd, STDOUT_FILENO);
#  501|->         g_assert_cmpint (ret, ==, STDOUT_FILENO);
#  502|   
#  503|           ret = dup2 (old_stdin_fd, STDIN_FILENO);

Error: GCC_ANALYZER_WARNING: [#def1144]
glib-2.87.0/glib/tests/spawn-test.c:503:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:503:15: danger: ‘old_stdin_fd’ could be invalid: unchecked value from [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#  501|           g_assert_cmpint (ret, ==, STDOUT_FILENO);
#  502|   
#  503|->         ret = dup2 (old_stdin_fd, STDIN_FILENO);
#  504|           g_assert_cmpint (ret, ==, STDIN_FILENO);
#  505|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1145]
glib-2.87.0/glib/tests/spawn-test.c:504:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:504:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
#  502|   
#  503|           ret = dup2 (old_stdin_fd, STDIN_FILENO);
#  504|->         g_assert_cmpint (ret, ==, STDIN_FILENO);
#  505|   
#  506|           g_assert_no_error (error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1146]
glib-2.87.0/glib/tests/spawn-test.c:504:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:504:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#  502|   
#  503|           ret = dup2 (old_stdin_fd, STDIN_FILENO);
#  504|->         g_assert_cmpint (ret, ==, STDIN_FILENO);
#  505|   
#  506|           g_assert_no_error (error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1147]
glib-2.87.0/glib/tests/spawn-test.c:504:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:504:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
#  502|   
#  503|           ret = dup2 (old_stdin_fd, STDIN_FILENO);
#  504|->         g_assert_cmpint (ret, ==, STDIN_FILENO);
#  505|   
#  506|           g_assert_no_error (error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1148]
glib-2.87.0/glib/tests/spawn-test.c:506:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:506:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
#  504|           g_assert_cmpint (ret, ==, STDIN_FILENO);
#  505|   
#  506|->         g_assert_no_error (error);
#  507|           g_assert_true (result);
#  508|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1149]
glib-2.87.0/glib/tests/spawn-test.c:506:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:506:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
#  504|           g_assert_cmpint (ret, ==, STDIN_FILENO);
#  505|   
#  506|->         g_assert_no_error (error);
#  507|           g_assert_true (result);
#  508|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1150]
glib-2.87.0/glib/tests/spawn-test.c:506:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:495:9: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.87.0/glib/tests/spawn-test.c:497:15: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:506:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
#  504|           g_assert_cmpint (ret, ==, STDIN_FILENO);
#  505|   
#  506|->         g_assert_no_error (error);
#  507|           g_assert_true (result);
#  508|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1151]
glib-2.87.0/glib/tests/spawn-test.c:507:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:507:9: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
#  505|   
#  506|           g_assert_no_error (error);
#  507|->         g_assert_true (result);
#  508|   
#  509|           if (output_return_state == OPENED)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1152]
glib-2.87.0/glib/tests/spawn-test.c:507:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:507:9: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
#  505|   
#  506|           g_assert_no_error (error);
#  507|->         g_assert_true (result);
#  508|   
#  509|           if (output_return_state == OPENED)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1153]
glib-2.87.0/glib/tests/spawn-test.c:507:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:507:9: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
#  505|   
#  506|           g_assert_no_error (error);
#  507|->         g_assert_true (result);
#  508|   
#  509|           if (output_return_state == OPENED)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1154]
glib-2.87.0/glib/tests/spawn-test.c:511:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:511:13: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
#  509|           if (output_return_state == OPENED)
#  510|             {
#  511|->             g_assert_cmpstr (standard_output, ==, "stdout\n");
#  512|               g_clear_pointer (&standard_output, g_free);
#  513|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1155]
glib-2.87.0/glib/tests/spawn-test.c:511:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:511:13: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
#  509|           if (output_return_state == OPENED)
#  510|             {
#  511|->             g_assert_cmpstr (standard_output, ==, "stdout\n");
#  512|               g_clear_pointer (&standard_output, g_free);
#  513|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1156]
glib-2.87.0/glib/tests/spawn-test.c:511:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:511:13: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
#  509|           if (output_return_state == OPENED)
#  510|             {
#  511|->             g_assert_cmpstr (standard_output, ==, "stdout\n");
#  512|               g_clear_pointer (&standard_output, g_free);
#  513|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1157]
glib-2.87.0/glib/tests/spawn-test.c:512:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:512:13: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
#  510|             {
#  511|               g_assert_cmpstr (standard_output, ==, "stdout\n");
#  512|->             g_clear_pointer (&standard_output, g_free);
#  513|             }
#  514|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1158]
glib-2.87.0/glib/tests/spawn-test.c:512:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:512:13: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
#  510|             {
#  511|               g_assert_cmpstr (standard_output, ==, "stdout\n");
#  512|->             g_clear_pointer (&standard_output, g_free);
#  513|             }
#  514|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1159]
glib-2.87.0/glib/tests/spawn-test.c:512:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:512:13: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
#  510|             {
#  511|               g_assert_cmpstr (standard_output, ==, "stdout\n");
#  512|->             g_clear_pointer (&standard_output, g_free);
#  513|             }
#  514|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1160]
glib-2.87.0/glib/tests/spawn-test.c:517:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:517:13: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
#  515|           if (error_return_state == OPENED)
#  516|             {
#  517|->             g_assert_cmpstr (standard_error, ==, "stderr\n");
#  518|               g_clear_pointer (&standard_error, g_free);
#  519|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1161]
glib-2.87.0/glib/tests/spawn-test.c:517:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:517:13: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
#  515|           if (error_return_state == OPENED)
#  516|             {
#  517|->             g_assert_cmpstr (standard_error, ==, "stderr\n");
#  518|               g_clear_pointer (&standard_error, g_free);
#  519|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1162]
glib-2.87.0/glib/tests/spawn-test.c:517:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:517:13: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
#  515|           if (error_return_state == OPENED)
#  516|             {
#  517|->             g_assert_cmpstr (standard_error, ==, "stderr\n");
#  518|               g_clear_pointer (&standard_error, g_free);
#  519|             }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1163]
glib-2.87.0/glib/tests/spawn-test.c:518:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stderr_fd’
glib-2.87.0/glib/tests/spawn-test.c:440:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:518:13: danger: ‘old_stderr_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/0)
#  516|             {
#  517|               g_assert_cmpstr (standard_error, ==, "stderr\n");
#  518|->             g_clear_pointer (&standard_error, g_free);
#  519|             }
#  520|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1164]
glib-2.87.0/glib/tests/spawn-test.c:518:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdin_fd’
glib-2.87.0/glib/tests/spawn-test.c:438:18: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:518:13: danger: ‘old_stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
#  516|             {
#  517|               g_assert_cmpstr (standard_error, ==, "stderr\n");
#  518|->             g_clear_pointer (&standard_error, g_free);
#  519|             }
#  520|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1165]
glib-2.87.0/glib/tests/spawn-test.c:518:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘old_stdout_fd’
glib-2.87.0/glib/tests/spawn-test.c:439:19: acquire_resource: opened here
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: following ‘true’ branch (when ‘output_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:442:38: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: following ‘true’ branch (when ‘error_return_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:443:39: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: following ‘true’ branch (when ‘stdin_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:444:34: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: following ‘true’ branch (when ‘stdout_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:445:37: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:446:39: branch_true: following ‘true’ branch (when ‘stderr_state != 2’)...
glib-2.87.0/glib/tests/spawn-test.c:449:16: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:455:25: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:453:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:461:12: branch_false: following ‘false’ branch (when ‘stdin_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:467:12: branch_false: following ‘false’ branch (when ‘stdout_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:473:12: branch_false: following ‘false’ branch (when ‘stderr_state != 1’)...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_false: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:481:41: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:479:24: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:488:18: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:498:9: branch_true: following ‘true’ branch (when ‘ret == 2’)...
glib-2.87.0/glib/tests/spawn-test.c:500:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:501:9: branch_true: following ‘true’ branch (when ‘ret == 1’)...
glib-2.87.0/glib/tests/spawn-test.c:503:15: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:504:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:506:9: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:507:9: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:509:12: branch_true: following ‘true’ branch (when ‘output_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:511:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:512:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:515:12: branch_true: following ‘true’ branch (when ‘error_return_state == 0’)...
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:517:13: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: following ‘true’ branch (when ‘_ptr’ is non-NULL)...
glib-2.87.0/glib/tests/spawn-test.c:518:13: branch_true: ...to here
glib-2.87.0/glib/tests/spawn-test.c:518:13: throw: if ‘g_free’ throws an exception...
glib-2.87.0/glib/tests/spawn-test.c:518:13: danger: ‘old_stdout_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
#  516|             {
#  517|               g_assert_cmpstr (standard_error, ==, "stderr\n");
#  518|->             g_clear_pointer (&standard_error, g_free);
#  519|             }
#  520|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1166]
glib-2.87.0/glib/tests/strfuncs.c:988:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/glib/tests/strfuncs.c:980:1: enter_function: entry to ‘do_test_strchug’
glib-2.87.0/glib/tests/strfuncs.c:988:10: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#  986|   
#  987|     g_strchug (tmp);
#  988|->   res = (strcmp (tmp, expected) == 0);
#  989|     g_free (tmp);
#  990|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1167]
glib-2.87.0/glib/tests/strfuncs.c:1024:10: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/glib/tests/strfuncs.c:1016:1: enter_function: entry to ‘do_test_strchomp’
glib-2.87.0/glib/tests/strfuncs.c:1024:10: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 1022|   
# 1023|     g_strchomp (tmp);
# 1024|->   res = (strcmp (tmp, expected) == 0);
# 1025|     g_free (tmp);
# 1026|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1168]
glib-2.87.0/glib/tests/strfuncs.c:1471:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/strfuncs.c:1465:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/strfuncs.c:1466:10: branch_true: following ‘true’ branch (when ‘ok != 0’)...
glib-2.87.0/glib/tests/strfuncs.c:1468:20: branch_true: ...to here
glib-2.87.0/glib/tests/strfuncs.c:1471:11: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
glib-2.87.0/glib/tests/strfuncs.c:1471:11: branch_false: ...to here
glib-2.87.0/glib/tests/strfuncs.c:1471:11: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/strfuncs.c:1471:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1469|         if (strv[i] == NULL)
# 1470|   	{
# 1471|-> 	  g_assert_null (str);
# 1472|   	  break;
# 1473|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1169]
glib-2.87.0/glib/tests/strfuncs.c:1480:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/strfuncs.c:1465:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/strfuncs.c:1466:10: branch_true: following ‘true’ branch (when ‘ok != 0’)...
glib-2.87.0/glib/tests/strfuncs.c:1468:20: branch_true: ...to here
glib-2.87.0/glib/tests/strfuncs.c:1469:10: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/strfuncs.c:1474:10: branch_false: ...to here
glib-2.87.0/glib/tests/strfuncs.c:1480:11: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/strfuncs.c:1480:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1478|         else
# 1479|           {
# 1480|->           g_assert_cmpstr (strv[i], ==, str);
# 1481|           }
# 1482|         i++;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1170]
glib-2.87.0/glib/tests/strfuncs.c:1689:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
glib-2.87.0/glib/tests/strfuncs.c:1666:1: enter_function: entry to ‘check_strtod_string’
glib-2.87.0/glib/tests/strfuncs.c:1682:15: branch_true: following ‘true’ branch (when ‘l != 5’)...
glib-2.87.0/glib/tests/strfuncs.c:1684:14: branch_true: ...to here
glib-2.87.0/glib/tests/strfuncs.c:1688:7: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/strfuncs.c:1689:7: branch_true: ...to here
glib-2.87.0/glib/tests/strfuncs.c:1689:7: branch_true: following ‘true’ branch (when ‘check_end == 0’)...
glib-2.87.0/glib/tests/strfuncs.c:1689:7: branch_true: ...to here
glib-2.87.0/glib/tests/strfuncs.c:1689:7: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 1687|         d = g_ascii_strtod (number, &end);
# 1688|         g_assert_true (g_isnan (res) ? g_isnan (d) : (d == res));
# 1689|->       g_assert_true ((gsize) (end - number) ==
# 1690|                        (check_end ? correct_len : strlen (number)));
# 1691|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1171]
glib-2.87.0/glib/tests/string.c:122:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/string.c:121:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/string.c:122:3: throw: if ‘g_string_vprintf’ throws an exception...
glib-2.87.0/glib/tests/string.c:122:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  120|   
#  121|     va_start (args, format);
#  122|->   g_string_vprintf (string, format, args);
#  123|     va_end (args);
#  124|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1172]
glib-2.87.0/glib/tests/string.c:308:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/string.c:307:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/string.c:308:3: throw: if ‘g_string_append_vprintf’ throws an exception...
glib-2.87.0/glib/tests/string.c:308:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  306|   
#  307|     va_start (args, format);
#  308|->   g_string_append_vprintf (string, format, args);
#  309|     va_end (args);
#  310|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1173]
glib-2.87.0/glib/tests/string.c:744: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: test_str
#  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): [#def1174]
glib-2.87.0/glib/tests/string.c:744:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(10)’ where non-null expected
glib-2.87.0/glib/tests/string.c:741:20: acquire_memory: this call could return NULL
glib-2.87.0/glib/tests/string.c:744:3: danger: argument 1 (‘malloc(10)’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#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-401): [#def1175]
glib-2.87.0/glib/tests/string.c:745:3: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(10)’
glib-2.87.0/glib/tests/string.c:741:20: acquire_memory: allocated here
glib-2.87.0/glib/tests/string.c:745:3: throw: if ‘g_strcmp0’ throws an exception...
glib-2.87.0/glib/tests/string.c:745:3: danger: ‘malloc(10)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  743|   
#  744|     strcpy (test_str, test_str_const);
#  745|->   g_assert_cmpstr (test_str, ==, test_str_const);
#  746|   
#  747|     string = g_string_new_take (g_steal_pointer (&test_str));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1176]
glib-2.87.0/glib/tests/string.c:747:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(10)’
glib-2.87.0/glib/tests/string.c:741:20: acquire_memory: allocated here
glib-2.87.0/glib/tests/string.c:747:12: danger: ‘malloc(10)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  745|     g_assert_cmpstr (test_str, ==, test_str_const);
#  746|   
#  747|->   string = g_string_new_take (g_steal_pointer (&test_str));
#  748|     g_assert_null (test_str);
#  749|     g_assert_nonnull (string);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1177]
glib-2.87.0/glib/tests/test-printf.c:944:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen(fds[0], "r")’
glib-2.87.0/glib/tests/test-printf.c:943:16: acquire_memory: allocated here
glib-2.87.0/glib/tests/test-printf.c:945:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/test-printf.c:946:3: branch_true: ...to here
glib-2.87.0/glib/tests/test-printf.c:946:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/test-printf.c:946:3: branch_false: ...to here
glib-2.87.0/glib/tests/test-printf.c:946:3: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/test-printf.c:944:16: danger: ‘fdopen(fds[0], "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  942|     FILE *streams[2] = { NULL, NULL };
#  943|     streams[0] = fdopen (fds[0], "r" MODE_EXTRA);
#  944|->   streams[1] = fdopen (fds[1], "w" MODE_EXTRA);
#  945|     g_assert_nonnull (streams[0]);
#  946|     g_assert_nonnull (streams[1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1178]
glib-2.87.0/glib/tests/test-printf.c:945:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen(fds[1], "w")’
glib-2.87.0/glib/tests/test-printf.c:944:16: acquire_memory: allocated here
glib-2.87.0/glib/tests/test-printf.c:945:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/test-printf.c:945:3: branch_false: ...to here
glib-2.87.0/glib/tests/test-printf.c:945:3: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/test-printf.c:945:3: danger: ‘fdopen(fds[1], "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  943|     streams[0] = fdopen (fds[0], "r" MODE_EXTRA);
#  944|     streams[1] = fdopen (fds[1], "w" MODE_EXTRA);
#  945|->   g_assert_nonnull (streams[0]);
#  946|     g_assert_nonnull (streams[1]);
#  947|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1179]
glib-2.87.0/glib/tests/test-printf.c:952:29: warning[-Wanalyzer-malloc-leak]: leak of ‘data.stream’
glib-2.87.0/glib/tests/test-printf.c:944:16: acquire_memory: allocated here
glib-2.87.0/glib/tests/test-printf.c:945:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/test-printf.c:946:3: branch_true: ...to here
glib-2.87.0/glib/tests/test-printf.c:946:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/test-printf.c:948:39: branch_true: ...to here
glib-2.87.0/glib/tests/test-printf.c:952:29: throw: if ‘g_thread_new’ throws an exception...
glib-2.87.0/glib/tests/test-printf.c:952:29: danger: ‘data.stream’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  950|     /* Do the writing on a separate thread to avoid any
#  951|      * possibility of deadlocks */
#  952|->   GThread *writing_thread = g_thread_new ("pipe writing thread",
#  953|                                             test_produce_embedded_nulls2_writing_thread,
#  954|                                             &data);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1180]
glib-2.87.0/glib/tests/test-printf.c:962:20: warning[-Wanalyzer-null-argument]: use of NULL ‘fdopen(fds[0], "r")’ where non-null expected
glib-2.87.0/glib/tests/test-printf.c:943:16: acquire_memory: allocated here
glib-2.87.0/glib/tests/test-printf.c:945:3: release_memory: assuming ‘fdopen(fds[0], "r")’ is NULL
glib-2.87.0/glib/tests/test-printf.c:945:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/test-printf.c:945:3: branch_false: ...to here
glib-2.87.0/glib/tests/test-printf.c:962:20: danger: argument 4 (‘fdopen(fds[0], "r")’) NULL where non-null expected
#  960|     do
#  961|       {
#  962|->       read_bytes = fread (iter, 1, size, streams[0]);
#  963|         g_assert_cmpuint (read_bytes, >, 0U);
#  964|         g_assert_cmpuint (read_bytes, <=, size);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1181]
glib-2.87.0/glib/tests/test-printf.c:994:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/test-printf.c:993:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/test-printf.c:994:9: throw: if ‘g_printf_string_upper_bound’ throws an exception...
glib-2.87.0/glib/tests/test-printf.c:994:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  992|   
#  993|     va_start (args, format);
#  994|->   res = g_printf_string_upper_bound (format, args);
#  995|     va_end (args);
#  996|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1182]
glib-2.87.0/glib/tests/test-printf.c:1027:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/glib/tests/test-printf.c:1026:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/glib/tests/test-printf.c:1027:9: throw: if ‘g_vasprintf’ throws an exception...
glib-2.87.0/glib/tests/test-printf.c:1027:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1025|   
# 1026|     va_start (args, format);
# 1027|->   len = g_vasprintf (string, format, args);
# 1028|     va_end (args);
# 1029|   

Error: COMPILER_WARNING: [#def1183]
glib-2.87.0/glib/tests/testing.c:39:9: warning: ‘_POSIX_C_SOURCE’ redefined
#   39 | #define _POSIX_C_SOURCE 200809L  /* for F_DUPFD_CLOEXEC */
#      |         ^~~~~~~~~~~~~~~
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/limits.h:26: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:210: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/syslimits.h:9: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:34: included_from: Included from here.
glib-2.87.0/redhat-linux-build/glib/glibconfig.h:11: included_from: Included from here.
glib-2.87.0/glib/gtypes.h:34: included_from: Included from here.
glib-2.87.0/glib/galloca.h:34: included_from: Included from here.
glib-2.87.0/glib/glib.h:32: included_from: Included from here.
glib-2.87.0/glib/tests/testing.c:33: included_from: Included from here.
/usr/include/features.h:319:10: note: this is the location of the previous definition
#  319 | # define _POSIX_C_SOURCE        202405L
#      |          ^~~~~~~~~~~~~~~
#   37|   
#   38|   #ifdef G_OS_UNIX
#   39|-> #define _POSIX_C_SOURCE 200809L  /* for F_DUPFD_CLOEXEC */
#   40|   #include <fcntl.h>
#   41|   #include <glib-unix.h>

Error: COMPILER_WARNING: [#def1184]
glib-2.87.0/glib/tests/testing.c:39:9: warning[warning]: ‘_POSIX_C_SOURCE’ redefined
#   37|   
#   38|   #ifdef G_OS_UNIX
#   39|-> #define _POSIX_C_SOURCE 200809L  /* for F_DUPFD_CLOEXEC */
#   40|   #include <fcntl.h>
#   41|   #include <glib-unix.h>

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1185]
glib-2.87.0/glib/tests/testing.c:465:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:465:3: throw: if ‘write’ throws an exception...
glib-2.87.0/glib/tests/testing.c:465:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  463|   
#  464|     /* Write something into it for the subprocess to read. */
#  465|->   g_assert_no_errno (write (pipe_fd[1], test_string, strlen (test_string) + 1));
#  466|   
#  467|     /* Run the subprocess. */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1186]
glib-2.87.0/glib/tests/testing.c:468:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:468:3: throw: if ‘g_test_trap_subprocess’ throws an exception...
glib-2.87.0/glib/tests/testing.c:468:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  466|   
#  467|     /* Run the subprocess. */
#  468|->   g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_INHERIT_STDIN);
#  469|     g_test_trap_assert_passed ();
#  470|     g_test_trap_assert_stdout (test_string);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1187]
glib-2.87.0/glib/tests/testing.c:469:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:469:3: throw: if ‘g_test_trap_assertions’ throws an exception...
glib-2.87.0/glib/tests/testing.c:469:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  467|     /* Run the subprocess. */
#  468|     g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_INHERIT_STDIN);
#  469|->   g_test_trap_assert_passed ();
#  470|     g_test_trap_assert_stdout (test_string);
#  471|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1188]
glib-2.87.0/glib/tests/testing.c:470:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:470:3: throw: if ‘g_test_trap_assertions’ throws an exception...
glib-2.87.0/glib/tests/testing.c:470:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  468|     g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_INHERIT_STDIN);
#  469|     g_test_trap_assert_passed ();
#  470|->   g_test_trap_assert_stdout (test_string);
#  471|   
#  472|     /* Restore the old stdin */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1189]
glib-2.87.0/glib/tests/testing.c:473:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:473:3: branch_true: following ‘true’ branch (when ‘__ret < 0’)...
glib-2.87.0/glib/tests/testing.c:473:3: branch_true: ...to here
glib-2.87.0/glib/tests/testing.c:473:3: throw: if ‘g_strdup_printf’ throws an exception...
glib-2.87.0/glib/tests/testing.c:473:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  471|   
#  472|     /* Restore the old stdin */
#  473|->   g_assert_no_errno (dup2 (old_stdin_fd, STDIN_FILENO));
#  474|   
#  475|     g_assert_no_errno (close (old_stdin_fd));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1190]
glib-2.87.0/glib/tests/testing.c:475:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:473:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:475:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:475:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/tests/testing.c:475:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  473|     g_assert_no_errno (dup2 (old_stdin_fd, STDIN_FILENO));
#  474|   
#  475|->   g_assert_no_errno (close (old_stdin_fd));
#  476|     g_assert_no_errno (close (pipe_fd[0]));
#  477|     g_assert_no_errno (close (pipe_fd[1]));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1191]
glib-2.87.0/glib/tests/testing.c:476:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:473:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:475:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:476:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/tests/testing.c:476:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
#  474|   
#  475|     g_assert_no_errno (close (old_stdin_fd));
#  476|->   g_assert_no_errno (close (pipe_fd[0]));
#  477|     g_assert_no_errno (close (pipe_fd[1]));
#  478|   #else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1192]
glib-2.87.0/glib/tests/testing.c:477:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:473:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:475:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:477:3: throw: if ‘close’ throws an exception...
glib-2.87.0/glib/tests/testing.c:477:3: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
#  475|     g_assert_no_errno (close (old_stdin_fd));
#  476|     g_assert_no_errno (close (pipe_fd[0]));
#  477|->   g_assert_no_errno (close (pipe_fd[1]));
#  478|   #else
#  479|     g_test_skip ("Testing stdin for subprocesses can only be done on Unix at the moment");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1193]
glib-2.87.0/glib/tests/testing.c:481:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘__ret’
glib-2.87.0/glib/tests/testing.c:442:6: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/testing.c:456:18: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:462:3: acquire_resource: opened here
glib-2.87.0/glib/tests/testing.c:462:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:465:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:473:3: branch_false: following ‘false’ branch (when ‘__ret >= 0’)...
glib-2.87.0/glib/tests/testing.c:475:3: branch_false: ...to here
glib-2.87.0/glib/tests/testing.c:481:1: danger: ‘__ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
#  479|     g_test_skip ("Testing stdin for subprocesses can only be done on Unix at the moment");
#  480|   #endif
#  481|-> }
#  482|   
#  483|   /* run a test with fixture setup and teardown */

Error: CPPCHECK_WARNING (CWE-476): [#def1194]
glib-2.87.0/glib/tests/unicode.c:644: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: infile
#  642|     g_assert (infile != NULL);
#  643|   
#  644|->   while (fgets (buffer, sizeof (buffer), infile))
#  645|       {
#  646|         if (buffer[0] == '#')

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1195]
glib-2.87.0/glib/tests/unicode.c:646:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_test_build_filename(0, "casemap.txt", 0), "re")’
glib-2.87.0/glib/tests/unicode.c:617:1: enter_function: entry to ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:637:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:637:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:638:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:638:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:641:12: acquire_resource: opened here
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:644:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:646:11: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:649:17: throw: if ‘g_strsplit’ throws an exception...
glib-2.87.0/glib/tests/unicode.c:646:11: danger: ‘fopen(g_test_build_filename(0, "casemap.txt", 0), "re")’ leaks here; was opened at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
#  644|     while (fgets (buffer, sizeof (buffer), infile))
#  645|       {
#  646|->       if (buffer[0] == '#')
#  647|           continue;
#  648|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1196]
glib-2.87.0/glib/tests/unicode.c:646:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_test_build_filename(0, "casemap.txt", 0), "re")’
glib-2.87.0/glib/tests/unicode.c:617:1: enter_function: entry to ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:637:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:637:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:638:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:638:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:641:12: acquire_memory: allocated here
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:644:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:646:11: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:649:17: throw: if ‘g_strsplit’ throws an exception...
glib-2.87.0/glib/tests/unicode.c:646:11: danger: ‘fopen(g_test_build_filename(0, "casemap.txt", 0), "re")’ leaks here; was allocated at [(20)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/19)
#  644|     while (fgets (buffer, sizeof (buffer), infile))
#  645|       {
#  646|->       if (buffer[0] == '#')
#  647|           continue;
#  648|   

Error: CPPCHECK_WARNING (CWE-476): [#def1197]
glib-2.87.0/glib/tests/unicode.c:708: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: infile
#  706|     g_assert (infile != NULL);
#  707|   
#  708|->   while (fgets (buffer, sizeof (buffer), infile))
#  709|       {
#  710|         if (buffer[0] == '#')

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1198]
glib-2.87.0/glib/tests/unicode.c:710:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_test_build_filename(0, "casefold.txt", 0), "re")’
glib-2.87.0/glib/tests/unicode.c:617:1: enter_function: entry to ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:637:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:637:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:638:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:638:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:705:12: acquire_resource: opened here
glib-2.87.0/glib/tests/unicode.c:706:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:706:3: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:708:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:710:11: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:714:17: throw: if ‘g_strsplit’ throws an exception...
glib-2.87.0/glib/tests/unicode.c:710:11: danger: ‘fopen(g_test_build_filename(0, "casefold.txt", 0), "re")’ leaks here; was opened at [(22)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/21)
#  708|     while (fgets (buffer, sizeof (buffer), infile))
#  709|       {
#  710|->       if (buffer[0] == '#')
#  711|           continue;
#  712|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1199]
glib-2.87.0/glib/tests/unicode.c:710:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_test_build_filename(0, "casefold.txt", 0), "re")’
glib-2.87.0/glib/tests/unicode.c:617:1: enter_function: entry to ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:636:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:637:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:637:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:638:3: call_function: calling ‘save_and_clear_env’ from ‘test_casemap_and_casefold’
glib-2.87.0/glib/tests/unicode.c:638:3: return_function: returning to ‘test_casemap_and_casefold’ from ‘save_and_clear_env’
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:642:3: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:705:12: acquire_memory: allocated here
glib-2.87.0/glib/tests/unicode.c:706:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:706:3: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:708:10: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unicode.c:710:11: branch_true: ...to here
glib-2.87.0/glib/tests/unicode.c:714:17: throw: if ‘g_strsplit’ throws an exception...
glib-2.87.0/glib/tests/unicode.c:710:11: danger: ‘fopen(g_test_build_filename(0, "casefold.txt", 0), "re")’ leaks here; was allocated at [(22)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/21)
#  708|     while (fgets (buffer, sizeof (buffer), infile))
#  709|       {
#  710|->       if (buffer[0] == '#')
#  711|           continue;
#  712|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1200]
glib-2.87.0/glib/tests/unix.c:300:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: following ‘false’ branch (when ‘stdin_fd <= 0’)...
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: ...to here
glib-2.87.0/glib/tests/unix.c:300:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/unix.c:300:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  298|   
#  299|     stdin_fd = dup (STDIN_FILENO);
#  300|->   g_assert_cmpint (stdin_fd, >, 0);
#  301|   
#  302|     g_close (STDIN_FILENO, &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1201]
glib-2.87.0/glib/tests/unix.c:302:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:302:3: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/unix.c:302:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  300|     g_assert_cmpint (stdin_fd, >, 0);
#  301|   
#  302|->   g_close (STDIN_FILENO, &error);
#  303|     g_assert_no_error (error);
#  304|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1202]
glib-2.87.0/glib/tests/unix.c:303:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:303:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unix.c:303:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:303:3: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/unix.c:303:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  301|   
#  302|     g_close (STDIN_FILENO, &error);
#  303|->   g_assert_no_error (error);
#  304|   
#  305|     res = g_unix_open_pipe (pipefd, O_CLOEXEC, &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1203]
glib-2.87.0/glib/tests/unix.c:305:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:305:9: throw: if ‘g_unix_open_pipe’ throws an exception...
glib-2.87.0/glib/tests/unix.c:305:9: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  303|     g_assert_no_error (error);
#  304|   
#  305|->   res = g_unix_open_pipe (pipefd, O_CLOEXEC, &error);
#  306|     g_assert_no_error (error);
#  307|     g_assert_true (res);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1204]
glib-2.87.0/glib/tests/unix.c:306:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:306:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unix.c:306:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:306:3: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/unix.c:306:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  304|   
#  305|     res = g_unix_open_pipe (pipefd, O_CLOEXEC, &error);
#  306|->   g_assert_no_error (error);
#  307|     g_assert_true (res);
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1205]
glib-2.87.0/glib/tests/unix.c:307:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:307:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/unix.c:307:3: branch_false: ...to here
glib-2.87.0/glib/tests/unix.c:307:3: throw: if ‘g_assertion_message’ throws an exception...
glib-2.87.0/glib/tests/unix.c:307:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  305|     res = g_unix_open_pipe (pipefd, O_CLOEXEC, &error);
#  306|     g_assert_no_error (error);
#  307|->   g_assert_true (res);
#  308|   
#  309|     g_assert_cmpint (pipefd[0], ==, STDIN_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1206]
glib-2.87.0/glib/tests/unix.c:309:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:309:3: branch_false: following ‘false’ branch...
glib-2.87.0/glib/tests/unix.c:309:3: branch_false: ...to here
glib-2.87.0/glib/tests/unix.c:309:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/unix.c:309:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  307|     g_assert_true (res);
#  308|   
#  309|->   g_assert_cmpint (pipefd[0], ==, STDIN_FILENO);
#  310|   
#  311|     g_close (pipefd[0], &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1207]
glib-2.87.0/glib/tests/unix.c:311:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:311:3: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/unix.c:311:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  309|     g_assert_cmpint (pipefd[0], ==, STDIN_FILENO);
#  310|   
#  311|->   g_close (pipefd[0], &error);
#  312|     g_assert_no_error (error);
#  313|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1208]
glib-2.87.0/glib/tests/unix.c:312:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:312:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unix.c:312:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:312:3: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/unix.c:312:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  310|   
#  311|     g_close (pipefd[0], &error);
#  312|->   g_assert_no_error (error);
#  313|   
#  314|     g_close (pipefd[1], &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1209]
glib-2.87.0/glib/tests/unix.c:314:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:314:3: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/unix.c:314:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  312|     g_assert_no_error (error);
#  313|   
#  314|->   g_close (pipefd[1], &error);
#  315|     g_assert_no_error (error);
#  316|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1210]
glib-2.87.0/glib/tests/unix.c:315:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:315:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unix.c:315:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:315:3: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/unix.c:315:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  313|   
#  314|     g_close (pipefd[1], &error);
#  315|->   g_assert_no_error (error);
#  316|   
#  317|     ret = dup2 (stdin_fd, STDIN_FILENO);

Error: GCC_ANALYZER_WARNING: [#def1211]
glib-2.87.0/glib/tests/unix.c:317:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:317:9: danger: ‘stdin_fd’ could be invalid: unchecked value from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def1212]
glib-2.87.0/glib/tests/unix.c:318:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:318:3: branch_false: following ‘false’ branch (when ‘ret < 0’)...
glib-2.87.0/glib/tests/unix.c:318:3: branch_false: ...to here
glib-2.87.0/glib/tests/unix.c:318:3: throw: if ‘g_assertion_message_cmpint’ throws an exception...
glib-2.87.0/glib/tests/unix.c:318:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  316|   
#  317|     ret = dup2 (stdin_fd, STDIN_FILENO);
#  318|->   g_assert_cmpint (ret, >=, 0);
#  319|   
#  320|     g_close (stdin_fd, &error);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1213]
glib-2.87.0/glib/tests/unix.c:320:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: following ‘false’ branch (when ‘stdin_fd <= 0’)...
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: ...to here
glib-2.87.0/glib/tests/unix.c:317:9: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:318:3: branch_true: following ‘true’ branch (when ‘ret >= 0’)...
glib-2.87.0/glib/tests/unix.c:320:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:320:3: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/unix.c:320:3: danger: ‘ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  318|     g_assert_cmpint (ret, >=, 0);
#  319|   
#  320|->   g_close (stdin_fd, &error);
#  321|     g_assert_no_error (error);
#  322|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1214]
glib-2.87.0/glib/tests/unix.c:320:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_fd’
glib-2.87.0/glib/tests/unix.c:299:14: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:300:3: branch_true: following ‘true’ branch (when ‘stdin_fd > 0’)...
glib-2.87.0/glib/tests/unix.c:302:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:320:3: throw: if ‘g_close’ throws an exception...
glib-2.87.0/glib/tests/unix.c:320:3: danger: ‘stdin_fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  318|     g_assert_cmpint (ret, >=, 0);
#  319|   
#  320|->   g_close (stdin_fd, &error);
#  321|     g_assert_no_error (error);
#  322|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1215]
glib-2.87.0/glib/tests/unix.c:321:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: following ‘false’ branch (when ‘stdin_fd <= 0’)...
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: ...to here
glib-2.87.0/glib/tests/unix.c:317:9: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:318:3: branch_true: following ‘true’ branch (when ‘ret >= 0’)...
glib-2.87.0/glib/tests/unix.c:320:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:321:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unix.c:321:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:321:3: throw: if ‘g_assertion_message_error’ throws an exception...
glib-2.87.0/glib/tests/unix.c:321:3: danger: ‘ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  319|   
#  320|     g_close (stdin_fd, &error);
#  321|->   g_assert_no_error (error);
#  322|   }
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1216]
glib-2.87.0/glib/tests/unix.c:322:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: following ‘false’ branch (when ‘stdin_fd <= 0’)...
glib-2.87.0/glib/tests/unix.c:300:3: branch_false: ...to here
glib-2.87.0/glib/tests/unix.c:317:9: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:318:3: branch_true: following ‘true’ branch (when ‘ret >= 0’)...
glib-2.87.0/glib/tests/unix.c:320:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:322:1: danger: ‘ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  320|     g_close (stdin_fd, &error);
#  321|     g_assert_no_error (error);
#  322|-> }
#  323|   
#  324|   static void

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1217]
glib-2.87.0/glib/tests/unix.c:929:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.87.0/glib/tests/unix.c:925:8: acquire_resource: opened here
glib-2.87.0/glib/tests/unix.c:927:3: branch_true: following ‘true’ branch...
glib-2.87.0/glib/tests/unix.c:929:3: branch_true: ...to here
glib-2.87.0/glib/tests/unix.c:929:3: throw: if ‘g_test_message’ throws an exception...
glib-2.87.0/glib/tests/unix.c:929:3: danger: ‘fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  927|     g_assert_cmpint (fd, >=, 0);
#  928|   
#  929|->   g_test_message ("Checking FD %d for /dev/null", fd);
#  930|   
#  931|     fd_path = g_unix_fd_query_path (fd, &error);

Error: COMPILER_WARNING (CWE-704): [#def1218]
glib-2.87.0/gmodule/gmodule.c: scope_hint: In function ‘g_module_open_full’
glib-2.87.0/gmodule/gmodule.c:601:20: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  601 |       gchar *dot = strrchr (file_name, '.');
#      |                    ^~~~~~~
#  599|     if (!name)
#  600|       {
#  601|->       gchar *dot = strrchr (file_name, '.');
#  602|         gchar *slash = strrchr (file_name, G_DIR_SEPARATOR);
#  603|   

Error: COMPILER_WARNING (CWE-704): [#def1219]
glib-2.87.0/gmodule/gmodule.c:601:20: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  599|     if (!name)
#  600|       {
#  601|->       gchar *dot = strrchr (file_name, '.');
#  602|         gchar *slash = strrchr (file_name, G_DIR_SEPARATOR);
#  603|   

Error: COMPILER_WARNING (CWE-704): [#def1220]
glib-2.87.0/gmodule/gmodule.c:602:22: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  602 |       gchar *slash = strrchr (file_name, G_DIR_SEPARATOR);
#      |                      ^~~~~~~
#  600|       {
#  601|         gchar *dot = strrchr (file_name, '.');
#  602|->       gchar *slash = strrchr (file_name, G_DIR_SEPARATOR);
#  603|   
#  604|         /* we make sure the name has a suffix using the deprecated

Error: COMPILER_WARNING (CWE-704): [#def1221]
glib-2.87.0/gmodule/gmodule.c:602:22: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  600|       {
#  601|         gchar *dot = strrchr (file_name, '.');
#  602|->       gchar *slash = strrchr (file_name, G_DIR_SEPARATOR);
#  603|   
#  604|         /* we make sure the name has a suffix using the deprecated

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1222]
glib-2.87.0/gobject/gclosure.c:1469:16: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gclosure.c:1652:1: enter_function: entry to ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1674:3: branch_true: following ‘true’ branch (when ‘n_params >= 0’)...
glib-2.87.0/gobject/gclosure.c:1676:3: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1710:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gclosure.c:1713:15: branch_true: following ‘true’ branch (when ‘i < unsigned_n_params’)...
glib-2.87.0/gobject/gclosure.c:1715:31: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1718:21: call_function: calling ‘va_to_ffi_type’ from ‘g_cclosure_marshal_generic_va’
# 1467|   {
# 1468|     ffi_type *rettype = NULL;
# 1469|->   GType type = g_type_fundamental (gtype);
# 1470|     g_assert (type != G_TYPE_INVALID);
# 1471|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1223]
glib-2.87.0/gobject/gclosure.c:1470:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gclosure.c:1652:1: enter_function: entry to ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1674:3: branch_true: following ‘true’ branch (when ‘n_params >= 0’)...
glib-2.87.0/gobject/gclosure.c:1676:3: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1710:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gclosure.c:1713:15: branch_true: following ‘true’ branch (when ‘i < unsigned_n_params’)...
glib-2.87.0/gobject/gclosure.c:1715:31: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1718:21: call_function: calling ‘va_to_ffi_type’ from ‘g_cclosure_marshal_generic_va’
# 1468|     ffi_type *rettype = NULL;
# 1469|     GType type = g_type_fundamental (gtype);
# 1470|->   g_assert (type != G_TYPE_INVALID);
# 1471|   
# 1472|     switch (type)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1224]
glib-2.87.0/gobject/gclosure.c:1525:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gclosure.c:1652:1: enter_function: entry to ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1674:3: branch_true: following ‘true’ branch (when ‘n_params >= 0’)...
glib-2.87.0/gobject/gclosure.c:1676:3: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1710:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gclosure.c:1713:15: branch_true: following ‘true’ branch (when ‘i < unsigned_n_params’)...
glib-2.87.0/gobject/gclosure.c:1715:31: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1718:21: call_function: calling ‘va_to_ffi_type’ from ‘g_cclosure_marshal_generic_va’
# 1523|         rettype = &ffi_type_pointer;
# 1524|         storage->_guint64  = 0;
# 1525|->       g_critical ("va_to_ffi_type: Unsupported fundamental type: %s", g_type_name (type));
# 1526|         break;
# 1527|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1225]
glib-2.87.0/gobject/gclosure.c:1716:27: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gclosure.c:1674:3: branch_true: following ‘true’ branch (when ‘n_params >= 0’)...
glib-2.87.0/gobject/gclosure.c:1676:3: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1710:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gclosure.c:1713:15: branch_true: following ‘true’ branch (when ‘i < unsigned_n_params’)...
glib-2.87.0/gobject/gclosure.c:1715:31: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1716:27: throw: if ‘g_type_fundamental’ throws an exception...
glib-2.87.0/gobject/gclosure.c:1716:27: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 1714|       {
# 1715|         GType type = param_types[i]  & ~G_SIGNAL_TYPE_STATIC_SCOPE;
# 1716|->       GType fundamental = G_TYPE_FUNDAMENTAL (type);
# 1717|   
# 1718|         atypes[i+1] = va_to_ffi_type (type,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1226]
glib-2.87.0/gobject/gclosure.c:1728:36: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gclosure.c:1652:1: enter_function: entry to ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1674:3: branch_true: following ‘true’ branch (when ‘n_params >= 0’)...
glib-2.87.0/gobject/gclosure.c:1676:3: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1710:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gclosure.c:1713:15: branch_true: following ‘true’ branch (when ‘i < unsigned_n_params’)...
glib-2.87.0/gobject/gclosure.c:1715:31: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1718:21: call_function: calling ‘va_to_ffi_type’ from ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1718:21: return_function: returning to ‘g_cclosure_marshal_generic_va’ from ‘va_to_ffi_type’
glib-2.87.0/gobject/gclosure.c:1723:10: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gclosure.c:1725:14: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1727:19: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gclosure.c:1728:36: throw: if ‘g_param_spec_ref’ throws an exception...
glib-2.87.0/gobject/gclosure.c:1728:36: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
# 1726|   	    storage[i]._gpointer = g_strdup (storage[i]._gpointer);
# 1727|   	  else if (fundamental == G_TYPE_PARAM && storage[i]._gpointer != NULL)
# 1728|-> 	    storage[i]._gpointer = g_param_spec_ref (storage[i]._gpointer);
# 1729|   	  else if (fundamental == G_TYPE_BOXED && storage[i]._gpointer != NULL)
# 1730|   	    storage[i]._gpointer = g_boxed_copy (type, storage[i]._gpointer);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1227]
glib-2.87.0/gobject/gclosure.c:1730:36: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gclosure.c:1652:1: enter_function: entry to ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1674:3: branch_true: following ‘true’ branch (when ‘n_params >= 0’)...
glib-2.87.0/gobject/gclosure.c:1676:3: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1710:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gclosure.c:1713:15: branch_true: following ‘true’ branch (when ‘i < unsigned_n_params’)...
glib-2.87.0/gobject/gclosure.c:1715:31: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1718:21: call_function: calling ‘va_to_ffi_type’ from ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1718:21: return_function: returning to ‘g_cclosure_marshal_generic_va’ from ‘va_to_ffi_type’
glib-2.87.0/gobject/gclosure.c:1723:10: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gclosure.c:1725:14: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1729:19: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gclosure.c:1730:36: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gobject/gclosure.c:1730:36: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
# 1728|   	    storage[i]._gpointer = g_param_spec_ref (storage[i]._gpointer);
# 1729|   	  else if (fundamental == G_TYPE_BOXED && storage[i]._gpointer != NULL)
# 1730|-> 	    storage[i]._gpointer = g_boxed_copy (type, storage[i]._gpointer);
# 1731|   	  else if (fundamental == G_TYPE_VARIANT && storage[i]._gpointer != NULL)
# 1732|   	    storage[i]._gpointer = g_variant_ref_sink (storage[i]._gpointer);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1228]
glib-2.87.0/gobject/gclosure.c:1732:36: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gclosure.c:1652:1: enter_function: entry to ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1674:3: branch_true: following ‘true’ branch (when ‘n_params >= 0’)...
glib-2.87.0/gobject/gclosure.c:1676:3: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1710:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gclosure.c:1713:15: branch_true: following ‘true’ branch (when ‘i < unsigned_n_params’)...
glib-2.87.0/gobject/gclosure.c:1715:31: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1718:21: call_function: calling ‘va_to_ffi_type’ from ‘g_cclosure_marshal_generic_va’
glib-2.87.0/gobject/gclosure.c:1718:21: return_function: returning to ‘g_cclosure_marshal_generic_va’ from ‘va_to_ffi_type’
glib-2.87.0/gobject/gclosure.c:1723:10: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gclosure.c:1725:14: branch_true: ...to here
glib-2.87.0/gobject/gclosure.c:1731:19: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gclosure.c:1732:36: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gobject/gclosure.c:1732:36: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(4)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/3)
# 1730|   	    storage[i]._gpointer = g_boxed_copy (type, storage[i]._gpointer);
# 1731|   	  else if (fundamental == G_TYPE_VARIANT && storage[i]._gpointer != NULL)
# 1732|-> 	    storage[i]._gpointer = g_variant_ref_sink (storage[i]._gpointer);
# 1733|   	}
# 1734|         if (fundamental == G_TYPE_OBJECT && storage[i]._gpointer != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1229]
glib-2.87.0/gobject/gmarshal.c:1559:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gmarshal.c:1556:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gmarshal.c:1558:6: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gmarshal.c:1559:12: throw: if ‘g_param_spec_ref’ throws an exception...
glib-2.87.0/gobject/gmarshal.c:1559:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1557|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1558|     if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
# 1559|->     arg0 = g_param_spec_ref (arg0);
# 1560|     va_end (args_copy);
# 1561|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1230]
glib-2.87.0/gobject/gmarshal.c:1671:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gmarshal.c:1668:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gmarshal.c:1670:6: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gmarshal.c:1671:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gobject/gmarshal.c:1671:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1669|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1670|     if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
# 1671|->     arg0 = g_boxed_copy (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg0);
# 1672|     va_end (args_copy);
# 1673|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1231]
glib-2.87.0/gobject/gmarshal.c:1895:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gmarshal.c:1892:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gmarshal.c:1894:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gobject/gmarshal.c:1895:12: branch_true: ...to here
glib-2.87.0/gobject/gmarshal.c:1895:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gobject/gmarshal.c:1895:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1893|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 1894|     if (arg0 != NULL)
# 1895|->     arg0 = g_object_ref (arg0);
# 1896|     va_end (args_copy);
# 1897|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1232]
glib-2.87.0/gobject/gmarshal.c:2007:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gmarshal.c:2004:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gmarshal.c:2006:6: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gmarshal.c:2007:12: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/gobject/gmarshal.c:2007:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 2005|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 2006|     if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
# 2007|->     arg0 = g_variant_ref_sink (arg0);
# 2008|     va_end (args_copy);
# 2009|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1233]
glib-2.87.0/gobject/gmarshal.c:2364:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gmarshal.c:2359:3: branch_true: following ‘true’ branch (when ‘return_value’ is non-NULL)...
glib-2.87.0/gobject/gmarshal.c:2361:3: branch_true: ...to here
glib-2.87.0/gobject/gmarshal.c:2361:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gmarshal.c:2363:6: branch_true: following ‘true’ branch (when ‘arg0’ is non-NULL)...
glib-2.87.0/gobject/gmarshal.c:2364:12: branch_true: ...to here
glib-2.87.0/gobject/gmarshal.c:2364:12: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/gobject/gmarshal.c:2364:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 2362|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 2363|     if (arg0 != NULL)
# 2364|->     arg0 = g_object_ref (arg0);
# 2365|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 2366|     va_end (args_copy);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1234]
glib-2.87.0/gobject/gmarshal.c:2493:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gmarshal.c:2488:3: branch_true: following ‘true’ branch (when ‘return_value’ is non-NULL)...
glib-2.87.0/gobject/gmarshal.c:2490:3: branch_true: ...to here
glib-2.87.0/gobject/gmarshal.c:2490:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gmarshal.c:2492:6: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gmarshal.c:2493:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gobject/gmarshal.c:2493:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
# 2491|     arg0 = (gpointer) va_arg (args_copy, gpointer);
# 2492|     if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
# 2493|->     arg0 = g_boxed_copy (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg0);
# 2494|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 2495|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1235]
glib-2.87.0/gobject/gmarshal.c:2496:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gmarshal.c:2488:3: branch_true: following ‘true’ branch (when ‘return_value’ is non-NULL)...
glib-2.87.0/gobject/gmarshal.c:2490:3: branch_true: ...to here
glib-2.87.0/gobject/gmarshal.c:2490:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/gobject/gmarshal.c:2495:6: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gmarshal.c:2496:12: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/gobject/gmarshal.c:2496:12: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 2494|     arg1 = (gpointer) va_arg (args_copy, gpointer);
# 2495|     if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
# 2496|->     arg1 = g_boxed_copy (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
# 2497|     va_end (args_copy);
# 2498|   

Error: CPPCHECK_WARNING (CWE-476): [#def1236]
glib-2.87.0/gobject/gobject.c:1835: warning[nullPointer]: Possible null pointer dereference: g_enable_diagnostic
# 1833|       }
# 1834|   
# 1835|->   return g_enable_diagnostic[0] == '1';
# 1836|   }
# 1837|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1237]
glib-2.87.0/gobject/gobject.c:3172:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3372:1: enter_function: entry to ‘g_object_set’
glib-2.87.0/gobject/gobject.c:3379:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3381:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3381:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3382:3: call_function: calling ‘g_object_set_valist’ from ‘g_object_set’
# 3170|     GObjectClass *class;
# 3171|     
# 3172|->   g_return_if_fail (G_IS_OBJECT (object));
# 3173|   
# 3174|     g_object_ref (object);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1238]
glib-2.87.0/gobject/gobject.c:3313:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3421:1: enter_function: entry to ‘g_object_get’
glib-2.87.0/gobject/gobject.c:3428:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3430:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3430:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3431:3: call_function: calling ‘g_object_get_valist’ from ‘g_object_get’
# 3311|     GObjectClass *class;
# 3312|     
# 3313|->   g_return_if_fail (G_IS_OBJECT (object));
# 3314|     
# 3315|     g_object_ref (object);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1239]
glib-2.87.0/gobject/gobject.c:3584:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3583:10: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3584:9: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3584:9: throw: if ‘g_signal_connect_data’ throws an exception...
glib-2.87.0/gobject/gobject.c:3584:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 3582|   
# 3583|         if (strncmp (signal_spec, "signal::", 8) == 0)
# 3584|-> 	g_signal_connect_data (object, signal_spec + 8,
# 3585|   			       callback, data, NULL,
# 3586|   			       G_CONNECT_DEFAULT);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1240]
glib-2.87.0/gobject/gobject.c:3594:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3587:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3588:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3587:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3592:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3594:9: throw: if ‘g_signal_connect_data’ throws an exception...
glib-2.87.0/gobject/gobject.c:3594:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 3592|         else if (strncmp (signal_spec, "swapped_signal::", 16) == 0 ||
# 3593|                  strncmp (signal_spec, "swapped-signal::", 16) == 0)
# 3594|-> 	g_signal_connect_data (object, signal_spec + 16,
# 3595|   			       callback, data, NULL,
# 3596|   			       G_CONNECT_SWAPPED);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1241]
glib-2.87.0/gobject/gobject.c:3604:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3587:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3588:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3587:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3592:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3597:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3598:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3597:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3602:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3604:9: throw: if ‘g_signal_connect_data’ throws an exception...
glib-2.87.0/gobject/gobject.c:3604:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
# 3602|         else if (strncmp (signal_spec, "signal_after::", 14) == 0 ||
# 3603|                  strncmp (signal_spec, "signal-after::", 14) == 0)
# 3604|-> 	g_signal_connect_data (object, signal_spec + 14,
# 3605|   			       callback, data, NULL,
# 3606|   			       G_CONNECT_AFTER);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1242]
glib-2.87.0/gobject/gobject.c:3614:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3587:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3588:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3587:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3592:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3597:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3598:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3597:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3602:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3607:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3608:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3607:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3612:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3614:9: throw: if ‘g_signal_connect_data’ throws an exception...
glib-2.87.0/gobject/gobject.c:3614:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
# 3612|         else if (strncmp (signal_spec, "swapped_signal_after::", 22) == 0 ||
# 3613|                  strncmp (signal_spec, "swapped-signal-after::", 22) == 0)
# 3614|-> 	g_signal_connect_data (object, signal_spec + 22,
# 3615|   			       callback, data, NULL,
# 3616|   			       G_CONNECT_SWAPPED | G_CONNECT_AFTER);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1243]
glib-2.87.0/gobject/gobject.c:3624:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3587:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3588:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3587:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3592:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3597:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3598:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3597:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3602:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3607:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3608:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3607:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3612:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3617:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3618:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3617:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3624:11: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3624:11: throw: if ‘g_log’ throws an exception...
glib-2.87.0/gobject/gobject.c:3624:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
# 3622|         else
# 3623|   	{
# 3624|-> 	  g_critical ("%s: invalid signal spec \"%s\"", G_STRFUNC, signal_spec);
# 3625|   	  break;
# 3626|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1244]
glib-2.87.0/gobject/gobject.c:3681:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3657:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3660:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3660:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3661:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3663:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3673:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
glib-2.87.0/gobject/gobject.c:3674:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3673:16: branch_false: following ‘false’ branch (when the strings are non-equal)...
glib-2.87.0/gobject/gobject.c:3681:11: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3681:11: throw: if ‘g_log’ throws an exception...
glib-2.87.0/gobject/gobject.c:3681:11: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
# 3679|         else
# 3680|   	{
# 3681|-> 	  g_critical ("%s: invalid signal spec \"%s\"", G_STRFUNC, signal_spec);
# 3682|   	  break;
# 3683|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1245]
glib-2.87.0/gobject/gobject.c:3686:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3657:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3660:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3660:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3661:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3663:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3667:10: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3670:11: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3686:12: throw: if ‘g_signal_parse_name’ throws an exception...
glib-2.87.0/gobject/gobject.c:3686:12: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 3684|   
# 3685|         if ((mask & G_SIGNAL_MATCH_ID) &&
# 3686|-> 	  !g_signal_parse_name (signal_spec, G_OBJECT_TYPE (object), &sid, &detail, FALSE))
# 3687|   	g_critical ("%s: invalid signal name \"%s\"", G_STRFUNC, signal_spec);
# 3688|         else if (!g_signal_handlers_disconnect_matched (object, mask | (detail ? G_SIGNAL_MATCH_DETAIL : 0),

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1246]
glib-2.87.0/gobject/gobject.c:3687:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3657:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3660:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3660:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3661:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3663:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3667:10: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3670:11: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3685:11: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3687:9: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3687:9: throw: if ‘g_log’ throws an exception...
glib-2.87.0/gobject/gobject.c:3687:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 3685|         if ((mask & G_SIGNAL_MATCH_ID) &&
# 3686|   	  !g_signal_parse_name (signal_spec, G_OBJECT_TYPE (object), &sid, &detail, FALSE))
# 3687|-> 	g_critical ("%s: invalid signal name \"%s\"", G_STRFUNC, signal_spec);
# 3688|         else if (!g_signal_handlers_disconnect_matched (object, mask | (detail ? G_SIGNAL_MATCH_DETAIL : 0),
# 3689|   						      sid, detail,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1247]
glib-2.87.0/gobject/gobject.c:3688:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3657:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3660:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3660:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3661:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3663:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3688:17: throw: if ‘g_signal_handlers_disconnect_matched’ throws an exception...
glib-2.87.0/gobject/gobject.c:3688:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 3686|   	  !g_signal_parse_name (signal_spec, G_OBJECT_TYPE (object), &sid, &detail, FALSE))
# 3687|   	g_critical ("%s: invalid signal name \"%s\"", G_STRFUNC, signal_spec);
# 3688|->       else if (!g_signal_handlers_disconnect_matched (object, mask | (detail ? G_SIGNAL_MATCH_DETAIL : 0),
# 3689|   						      sid, detail,
# 3690|   						      NULL, (gpointer)callback, data))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1248]
glib-2.87.0/gobject/gobject.c:3691:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3657:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3658:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3660:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3660:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3661:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3663:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3691:9: throw: if ‘g_log’ throws an exception...
glib-2.87.0/gobject/gobject.c:3691:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 3689|   						      sid, detail,
# 3690|   						      NULL, (gpointer)callback, data))
# 3691|-> 	g_critical ("%s: signal handler %p(%p) is not connected", G_STRFUNC, callback, data);
# 3692|         signal_spec = va_arg (var_args, gchar*);
# 3693|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1249]
glib-2.87.0/gobject/gobject.c:4656:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3421:1: enter_function: entry to ‘g_object_get’
glib-2.87.0/gobject/gobject.c:3428:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3430:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3430:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3431:3: call_function: calling ‘g_object_get_valist’ from ‘g_object_get’
# 4654|     gpointer toggle_data;
# 4655|   
# 4656|->   g_return_val_if_fail (G_IS_OBJECT (object), NULL);
# 4657|   
# 4658|     object = object_ref (object, &toggle_notify, &toggle_data);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1250]
glib-2.87.0/gobject/gobject.c:5593:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3589:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5591|   			 GConnectFlags connect_flags)
# 5592|   {
# 5593|->   g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), 0);
# 5594|     g_return_val_if_fail (detailed_signal != NULL, 0);
# 5595|     g_return_val_if_fail (c_handler != NULL, 0);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1251]
glib-2.87.0/gobject/gobject.c:5595:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3589:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5593|     g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), 0);
# 5594|     g_return_val_if_fail (detailed_signal != NULL, 0);
# 5595|->   g_return_val_if_fail (c_handler != NULL, 0);
# 5596|   
# 5597|     if (gobject)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1252]
glib-2.87.0/gobject/gobject.c:5601:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3589:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5599|         GClosure *closure;
# 5600|   
# 5601|->       g_return_val_if_fail (G_IS_OBJECT (gobject), 0);
# 5602|   
# 5603|         closure = ((connect_flags & G_CONNECT_SWAPPED) ? g_cclosure_new_object_swap : g_cclosure_new_object) (c_handler, gobject);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1253]
glib-2.87.0/gobject/gobject.c:5755:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3589:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5753|   			GClosure *closure)
# 5754|   {
# 5755|->   g_return_if_fail (G_IS_OBJECT (object));
# 5756|     g_return_if_fail (closure != NULL);
# 5757|     g_return_if_fail (closure->is_invalid == FALSE);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1254]
glib-2.87.0/gobject/gobject.c:5820:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3589:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5818|     GClosure *closure;
# 5819|   
# 5820|->   g_return_val_if_fail (G_IS_OBJECT (object), NULL);
# 5821|     g_return_val_if_fail (g_atomic_int_get (&object->ref_count) > 0, NULL);     /* this doesn't work on finalizing objects */
# 5822|     g_return_val_if_fail (callback_func != NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1255]
glib-2.87.0/gobject/gobject.c:5821:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3589:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5819|   
# 5820|     g_return_val_if_fail (G_IS_OBJECT (object), NULL);
# 5821|->   g_return_val_if_fail (g_atomic_int_get (&object->ref_count) > 0, NULL);     /* this doesn't work on finalizing objects */
# 5822|     g_return_val_if_fail (callback_func != NULL, NULL);
# 5823|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1256]
glib-2.87.0/gobject/gobject.c:5824:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3589:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5822|     g_return_val_if_fail (callback_func != NULL, NULL);
# 5823|   
# 5824|->   closure = g_cclosure_new (callback_func, object, NULL);
# 5825|     g_object_watch_closure (object, closure);
# 5826|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1257]
glib-2.87.0/gobject/gobject.c:5849:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3587:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3588:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3587:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3592:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3599:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5847|     GClosure *closure;
# 5848|   
# 5849|->   g_return_val_if_fail (G_IS_OBJECT (object), NULL);
# 5850|     g_return_val_if_fail (g_atomic_int_get (&object->ref_count) > 0, NULL);     /* this doesn't work on finalizing objects */
# 5851|     g_return_val_if_fail (callback_func != NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1258]
glib-2.87.0/gobject/gobject.c:5850:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3587:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3588:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3587:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3592:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3599:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5848|   
# 5849|     g_return_val_if_fail (G_IS_OBJECT (object), NULL);
# 5850|->   g_return_val_if_fail (g_atomic_int_get (&object->ref_count) > 0, NULL);     /* this doesn't work on finalizing objects */
# 5851|     g_return_val_if_fail (callback_func != NULL, NULL);
# 5852|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1259]
glib-2.87.0/gobject/gobject.c:5853:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gobject.c:3567:1: enter_function: entry to ‘g_object_connect’
glib-2.87.0/gobject/gobject.c:3574:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3575:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gobject.c:3577:3: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3577:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gobject.c:3578:10: branch_true: following ‘true’ branch (when ‘signal_spec’ is non-NULL)...
glib-2.87.0/gobject/gobject.c:3580:17: branch_true: ...to here
glib-2.87.0/gobject/gobject.c:3587:15: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3588:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3587:16: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gobject.c:3592:16: branch_false: ...to here
glib-2.87.0/gobject/gobject.c:3599:9: call_function: calling ‘g_signal_connect_object’ from ‘g_object_connect’
# 5851|     g_return_val_if_fail (callback_func != NULL, NULL);
# 5852|   
# 5853|->   closure = g_cclosure_new_swap (callback_func, object, NULL);
# 5854|     g_object_watch_closure (object, closure);
# 5855|   

Error: COMPILER_WARNING (CWE-704): [#def1260]
glib-2.87.0/gobject/gparam.c: scope_hint: In function ‘g_param_spec_pool_lookup’
glib-2.87.0/gobject/gparam.c:1180:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1180 |       delim = strchr (param_name, ':');
#      |             ^
# 1178|         char *delim;
# 1179|   
# 1180|->       delim = strchr (param_name, ':');
# 1181|   
# 1182|         /* strip type prefix */

Error: COMPILER_WARNING (CWE-704): [#def1261]
glib-2.87.0/gobject/gparam.c:1180:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1178|         char *delim;
# 1179|   
# 1180|->       delim = strchr (param_name, ':');
# 1181|   
# 1182|         /* strip type prefix */

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

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

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1264]
glib-2.87.0/gobject/gsignal.c:728:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
#  726|   
#  727|     /* Fast path single-handler without boxing the arguments in GValues */
#  728|->   if (G_TYPE_IS_OBJECT (node->itype) &&
#  729|         (node->flags & (G_SIGNAL_MUST_COLLECT)) == 0 &&
#  730|         (node->emission_hooks == NULL || node->emission_hooks->hooks == NULL))

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1267]
glib-2.87.0/gobject/gsignal.c:1980:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/gobject/gsignal.c:1968:1: enter_function: entry to ‘g_signal_override_class_closure’
glib-2.87.0/gobject/gsignal.c:1978:10: call_function: inlined call to ‘LOOKUP_SIGNAL_NODE’ from ‘g_signal_override_class_closure’
glib-2.87.0/gobject/gsignal.c:1979:3: branch_false: ...to here
glib-2.87.0/gobject/gsignal.c:1979:3: call_function: calling ‘node_check_deprecated’ from ‘g_signal_override_class_closure’
glib-2.87.0/gobject/gsignal.c:1979:3: return_function: returning to ‘g_signal_override_class_closure’ from ‘node_check_deprecated’
glib-2.87.0/gobject/gsignal.c:1980:8: danger: dereference of NULL ‘<unknown>’
# 1978|     node = LOOKUP_SIGNAL_NODE (signal_id);
# 1979|     node_check_deprecated (node);
# 1980|->   if (!g_type_is_a (instance_type, node->itype))
# 1981|       g_critical ("%s: type '%s' cannot be overridden for signal id '%u'", G_STRLOC, type_debug_name (instance_type), signal_id);
# 1982|     else

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1270]
glib-2.87.0/gobject/gsignal.c:2457:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
glib-2.87.0/gobject/gsignal.c:1968:1: enter_function: entry to ‘g_signal_override_class_closure’
glib-2.87.0/gobject/gsignal.c:1978:10: call_function: inlined call to ‘LOOKUP_SIGNAL_NODE’ from ‘g_signal_override_class_closure’
glib-2.87.0/gobject/gsignal.c:1979:3: branch_false: ...to here
glib-2.87.0/gobject/gsignal.c:1979:3: call_function: calling ‘node_check_deprecated’ from ‘g_signal_override_class_closure’
# 2455|     if (g_enable_diagnostic[0] == '1')
# 2456|       {
# 2457|->       if (node->flags & G_SIGNAL_DEPRECATED)
# 2458|           {
# 2459|             g_warning ("The signal %s::%s is deprecated and shouldn't be used "

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

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1272]
glib-2.87.0/gobject/gsignal.c:3277:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
# 3275|   		      va_list  var_args)
# 3276|   {
# 3277|->   SIGNAL_LOCK ();
# 3278|     if (signal_emit_valist_unlocked (instance, signal_id, detail, var_args))
# 3279|       SIGNAL_UNLOCK ();

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1273]
glib-2.87.0/gobject/gsignal.c:3302:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
# 3300|     guint i;
# 3301|   
# 3302|->   g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), TRUE);
# 3303|     g_return_val_if_fail (signal_id > 0, TRUE);
# 3304|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1274]
glib-2.87.0/gobject/gsignal.c:3303:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
# 3301|   
# 3302|     g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), TRUE);
# 3303|->   g_return_val_if_fail (signal_id > 0, TRUE);
# 3304|   
# 3305|     node = LOOKUP_SIGNAL_NODE (signal_id);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1275]
glib-2.87.0/gobject/gsignal.c:3306:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
# 3304|   
# 3305|     node = LOOKUP_SIGNAL_NODE (signal_id);
# 3306|->   if (!node || !g_type_is_a (G_TYPE_FROM_INSTANCE (instance), node->itype))
# 3307|       {
# 3308|         g_critical ("%s: signal id '%u' is invalid for instance '%p'", G_STRLOC, signal_id, instance);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1276]
glib-2.87.0/gobject/gsignal.c:3308:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
# 3306|     if (!node || !g_type_is_a (G_TYPE_FROM_INSTANCE (instance), node->itype))
# 3307|       {
# 3308|->       g_critical ("%s: signal id '%u' is invalid for instance '%p'", G_STRLOC, signal_id, instance);
# 3309|         return TRUE;
# 3310|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1277]
glib-2.87.0/gobject/gsignal.c:3314:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
# 3312|     if (detail && !(node->flags & G_SIGNAL_DETAILED))
# 3313|       {
# 3314|->       g_critical ("%s: signal id '%u' does not support detail (%u)", G_STRLOC, signal_id, detail);
# 3315|         return TRUE;
# 3316|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1278]
glib-2.87.0/gobject/gsignal.c:3340:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/gsignal.c:3590:1: enter_function: entry to ‘g_signal_emit’
glib-2.87.0/gobject/gsignal.c:3597:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/gsignal.c:3598:3: call_function: calling ‘g_signal_emit_valist’ from ‘g_signal_emit’
# 3338|   
# 3339|         if (node->single_va_closure != SINGLE_VA_CLOSURE_EMPTY_MAGIC &&
# 3340|-> 	  !_g_closure_is_void (node->single_va_closure, instance))
# 3341|   	{
# 3342|   	  if (_g_closure_supports_invoke_va (node->single_va_closure))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1279]
glib-2.87.0/gobject/gtype.c:529:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/gobject/gtype.c:4255:1: enter_function: entry to ‘gobject_init’
glib-2.87.0/gobject/gtype.c:4296:10: call_function: calling ‘type_node_fundamental_new_W’ from ‘gobject_init’
#  527|   
#  528|     finfo = type_node_fundamental_info_I (node);
#  529|->   finfo->type_flags = type_flags & TYPE_FUNDAMENTAL_FLAG_MASK;
#  530|   
#  531|     return node;

Error: COMPILER_WARNING (CWE-476): [#def1280]
glib-2.87.0/gobject/gtype.c:529:21: warning[-Wnull-dereference]: potential null pointer dereference
#  529 |   finfo->type_flags = type_flags & TYPE_FUNDAMENTAL_FLAG_MASK;
#      |                     ^
#  527|   
#  528|     finfo = type_node_fundamental_info_I (node);
#  529|->   finfo->type_flags = type_flags & TYPE_FUNDAMENTAL_FLAG_MASK;
#  530|   
#  531|     return node;

Error: COMPILER_WARNING (CWE-476): [#def1281]
glib-2.87.0/gobject/gtype.c: scope_hint: In function ‘check_derivation_I’
glib-2.87.0/gobject/gtype.c:770:14: warning[-Wnull-dereference]: potential null pointer dereference
#  770 |   if (!(finfo->type_flags & G_TYPE_FLAG_DERIVABLE))
#      |         ~~~~~^~~~~~~~~~~~
#  768|     finfo = type_node_fundamental_info_I (pnode);
#  769|     /* ensure flat derivability */
#  770|->   if (!(finfo->type_flags & G_TYPE_FLAG_DERIVABLE))
#  771|       {
#  772|         g_critical ("cannot derive '%s' from non-derivable parent type '%s'",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1282]
glib-2.87.0/gobject/gtype.c:878:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/gobject/gtype.c:1205:1: enter_function: entry to ‘type_data_ref_Wm’
glib-2.87.0/gobject/gtype.c:1209:25: call_function: inlined call to ‘lookup_type_node_I’ from ‘type_data_ref_Wm’
glib-2.87.0/gobject/gtype.c:1213:7: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gtype.c:1215:10: branch_true: ...to here
glib-2.87.0/gobject/gtype.c:1215:10: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gtype.c:1222:7: branch_false: ...to here
glib-2.87.0/gobject/gtype.c:1229:10: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gtype.c:1232:7: branch_false: ...to here
glib-2.87.0/gobject/gtype.c:1232:7: call_function: calling ‘check_type_info_I’ from ‘type_data_ref_Wm’
#  876|     
#  877|     /* check instance members */
#  878|->   if (!(finfo->type_flags & G_TYPE_FLAG_INSTANTIATABLE) &&
#  879|         (info->instance_size || info->instance_init))
#  880|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1283]
glib-2.87.0/gobject/gtype.c:3755:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/gobject/gtype.c:3719:1: enter_function: entry to ‘_g_type_test_flags’
glib-2.87.0/gobject/gtype.c:3725:10: call_function: inlined call to ‘lookup_type_node_I’ from ‘_g_type_test_flags’
glib-2.87.0/gobject/gtype.c:3728:10: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gtype.c:3748:13: branch_false: ...to here
glib-2.87.0/gobject/gtype.c:3751:10: branch_true: following ‘true’ branch (when ‘fflags != 0’)...
glib-2.87.0/gobject/gtype.c:3753:41: branch_true: ...to here
glib-2.87.0/gobject/gtype.c:3753:41: call_function: calling ‘type_node_fundamental_info_I’ from ‘_g_type_test_flags’
glib-2.87.0/gobject/gtype.c:3753:41: return_function: returning to ‘_g_type_test_flags’ from ‘type_node_fundamental_info_I’
glib-2.87.0/gobject/gtype.c:3755:21: danger: dereference of NULL ‘type_node_fundamental_info_I(<unknown>)’
# 3753|   	  GTypeFundamentalInfo *finfo = type_node_fundamental_info_I (node);
# 3754|   	  
# 3755|-> 	  fflags = (finfo->type_flags & fflags) == fflags;
# 3756|   	}
# 3757|         else

Error: COMPILER_WARNING (CWE-476): [#def1284]
glib-2.87.0/gobject/gtype.c:3755:26: warning[-Wnull-dereference]: potential null pointer dereference
# 3755 |           fflags = (finfo->type_flags & fflags) == fflags;
#      |                     ~~~~~^~~~~~~~~~~~
# 3753|   	  GTypeFundamentalInfo *finfo = type_node_fundamental_info_I (node);
# 3754|   	  
# 3755|-> 	  fflags = (finfo->type_flags & fflags) == fflags;
# 3756|   	}
# 3757|         else

Error: COMPILER_WARNING (CWE-476): [#def1285]
glib-2.87.0/glib/glib.h:64: included_from: Included from here.
glib-2.87.0/girepository/girwriter-private.h:26: included_from: Included from here.
glib-2.87.0/girepository/girwriter.c:27: included_from: Included from here.
glib-2.87.0/girepository/girwriter.c: scope_hint: In function ‘gi_ir_writer_write’
glib-2.87.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-476): [#def1286]
glib-2.87.0/gobject/gtypemodule.c:335:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  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): [#def1287]
glib-2.87.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): [#def1288]
glib-2.87.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_type_info’
glib-2.87.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): [#def1289]
glib-2.87.0/gobject/gtypemodule.c:350:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  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): [#def1290]
glib-2.87.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_complete_interface_info’
glib-2.87.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): [#def1291]
glib-2.87.0/gobject/gtypemodule.c:420:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
glib-2.87.0/gobject/gtypemodule.c:379:1: enter_function: entry to ‘g_type_module_register_type’
glib-2.87.0/gobject/gtypemodule.c:388:3: branch_true: following ‘true’ branch (when ‘type_name’ is non-NULL)...
glib-2.87.0/gobject/gtypemodule.c:389:3: branch_true: ...to here
glib-2.87.0/gobject/gtypemodule.c:389:3: branch_true: following ‘true’ branch (when ‘type_info’ is non-NULL)...
glib-2.87.0/gobject/gtypemodule.c:391:6: branch_true: ...to here
glib-2.87.0/gobject/gtypemodule.c:391:6: branch_false: following ‘false’ branch (when ‘module’ is non-NULL)...
glib-2.87.0/gobject/gtypemodule.c:404:10: branch_false: ...to here
glib-2.87.0/gobject/gtypemodule.c:405:6: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/gtypemodule.c:407:33: branch_true: ...to here
glib-2.87.0/gobject/gtypemodule.c:409:10: branch_false: following ‘false’ branch...
glib-2.87.0/gobject/gtypemodule.c:418:26: call_function: inlined call to ‘g_type_module_find_type_info’ from ‘g_type_module_register_type’
glib-2.87.0/gobject/gtypemodule.c:420:11: danger: dereference of NULL ‘<unknown>’
#  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): [#def1292]
glib-2.87.0/gobject/gtypemodule.c: scope_hint: In function ‘g_type_module_register_type’
glib-2.87.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: GCC_ANALYZER_WARNING (CWE-457): [#def1293]
glib-2.87.0/gobject/tests/autoptr.c:28:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘base_class_ptr’
glib-2.87.0/gobject/tests/autoptr.c:214:1: enter_function: entry to ‘test_autoclass’
glib-2.87.0/gobject/tests/autoptr.c:219:20: call_function: calling ‘test_base_auto_cleanup_get_type’ from ‘test_autoclass’
glib-2.87.0/gobject/tests/autoptr.c:216:40: call_function: inlined call to ‘glib_autoptr_cleanup_TestAutoCleanupBaseClass’ from ‘test_autoclass’
#   26|   #include <string.h>
#   27|   
#   28|-> G_DECLARE_DERIVABLE_TYPE (TestAutoCleanupBase, test_base_auto_cleanup, TEST, BASE_AUTO_CLEANUP, GObject)
#   29|   
#   30|   struct _TestAutoCleanupBaseClass {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1294]
glib-2.87.0/gobject/tests/autoptr.c:46:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘l’
glib-2.87.0/gobject/tests/autoptr.c:129:9: throw: if ‘g_list_prepend’ throws an exception...
glib-2.87.0/gobject/tests/autoptr.c:127:34: call_function: inlined call to ‘glib_listautoptr_cleanup_TestAutoCleanup’ from ‘test_autolist’
#   44|   }
#   45|   
#   46|-> G_DECLARE_FINAL_TYPE (TestAutoCleanup, test_auto_cleanup, TEST, AUTO_CLEANUP, TestAutoCleanupBase)
#   47|   
#   48|   struct _TestAutoCleanup

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1295]
glib-2.87.0/gobject/tests/closure.c:158:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
glib-2.87.0/gobject/tests/closure.c:155:8: acquire_resource: opened here
glib-2.87.0/gobject/tests/closure.c:156:3: branch_true: following ‘true’ branch...
glib-2.87.0/gobject/tests/closure.c:158:12: branch_true: ...to here
glib-2.87.0/gobject/tests/closure.c:158:12: throw: if ‘g_unix_fd_source_new’ throws an exception...
glib-2.87.0/gobject/tests/closure.c:158:12: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  156|     g_assert (fd != -1);
#  157|   
#  158|->   source = g_unix_fd_source_new (fd, G_IO_IN);
#  159|     test_source (source, G_CALLBACK (fd_quit_callback));
#  160|     g_source_unref (source);

Error: CPPCHECK_WARNING (CWE-758): [#def1296]
glib-2.87.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-404): [#def1297]
glib-2.87.0/gobject/tests/performance/performance-threaded.c:33:10: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/tests/performance/performance-threaded.c:53:1: enter_function: entry to ‘register_types’
glib-2.87.0/gobject/tests/performance/performance-threaded.c:58:33: call_function: calling ‘simple_register_class’ from ‘register_types’
#   31|   
#   32|     va_start (args, parent);
#   33|->   type = g_type_register_static_simple (parent, name, sizeof (GObjectClass),
#   34|         NULL, parent == G_TYPE_INTERFACE ? 0 : sizeof (GObject), NULL, 0);
#   35|     for (;;)

Error: GCC_ANALYZER_WARNING (CWE-686): [#def1298]
glib-2.87.0/gobject/tests/performance/performance-threaded.c:37:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘GType’ {{aka ‘long unsigned int’}} but received ‘int’ for variadic argument 1 of ‘args’
glib-2.87.0/gobject/tests/performance/performance-threaded.c:53:1: enter_function: entry to ‘register_types’
glib-2.87.0/gobject/tests/performance/performance-threaded.c:58:33: call_function: calling ‘simple_register_class’ from ‘register_types’ with 1 variadic argument
#   35|     for (;;)
#   36|       {
#   37|->       interface = va_arg (args, GType);
#   38|         if (interface == 0)
#   39|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1299]
glib-2.87.0/gobject/tests/performance/performance-threaded.c:40:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/tests/performance/performance-threaded.c:53:1: enter_function: entry to ‘register_types’
glib-2.87.0/gobject/tests/performance/performance-threaded.c:58:33: call_function: calling ‘simple_register_class’ from ‘register_types’
#   38|         if (interface == 0)
#   39|           break;
#   40|->       g_type_add_interface_static (type, interface, &interface_info);
#   41|       }
#   42|     va_end (args);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1300]
glib-2.87.0/gobject/tests/threadtests.c:364:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/gobject/tests/threadtests.c:364:11: danger: infinite loop here
glib-2.87.0/gobject/tests/threadtests.c:364:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/gobject/tests/threadtests.c:360:1: branch_true: ...to here
#  362|   
#  363|     /* Wait until the thread has started */
#  364|->   while (!g_atomic_int_get (&thread_data->started))
#  365|       continue;
#  366|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1301]
glib-2.87.0/gobject/tests/threadtests.c:370:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/gobject/tests/threadtests.c:370:11: danger: infinite loop here
glib-2.87.0/gobject/tests/threadtests.c:370:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/gobject/tests/threadtests.c:360:1: branch_true: ...to here
#  368|   
#  369|     /* Wait for the thread to act, so that the object is still valid */
#  370|->   while (!g_atomic_int_get (&thread_data->finished))
#  371|       continue;
#  372|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1302]
glib-2.87.0/gobject/tests/threadtests.c:385:11: warning[-Wanalyzer-infinite-loop]: infinite loop
glib-2.87.0/gobject/tests/threadtests.c:385:11: danger: infinite loop here
glib-2.87.0/gobject/tests/threadtests.c:385:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
glib-2.87.0/gobject/tests/threadtests.c:378:1: branch_true: ...to here
#  383|   
#  384|     /* Ensure we've started disposal */
#  385|->   while (!g_atomic_int_get (&thread_data->disposing))
#  386|       continue;
#  387|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def1303]
glib-2.87.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’
glib-2.87.0/gobject/tests/value.c:139:1: enter_function: entry to ‘test_collection’
glib-2.87.0/gobject/tests/value.c:145:11: call_function: calling ‘collect’ from ‘test_collection’ with 1 variadic argument
#  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): [#def1304]
glib-2.87.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’
glib-2.87.0/gobject/tests/value.c:139:1: enter_function: entry to ‘test_collection’
glib-2.87.0/gobject/tests/value.c:145:11: call_function: calling ‘collect’ from ‘test_collection’ with 1 variadic argument
#  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): [#def1305]
glib-2.87.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’
glib-2.87.0/gobject/tests/value.c:139:1: enter_function: entry to ‘test_collection’
glib-2.87.0/gobject/tests/value.c:145:11: call_function: calling ‘collect’ from ‘test_collection’ with 1 variadic argument
#  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): [#def1306]
glib-2.87.0/gobject/tests/value.c:117:3: warning[-Wanalyzer-va-list-exhausted]: ‘var_args’ has no more arguments (1 consumed)
glib-2.87.0/gobject/tests/value.c:139:1: enter_function: entry to ‘test_collection’
glib-2.87.0/gobject/tests/value.c:145:11: call_function: calling ‘collect’ from ‘test_collection’ with 1 variadic argument
#  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-404): [#def1307]
glib-2.87.0/gobject/tests/value.c:117:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/tests/value.c:116:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/tests/value.c:117:3: throw: if ‘g_type_value_table_peek’ throws an exception...
glib-2.87.0/gobject/tests/value.c:117:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  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): [#def1308]
glib-2.87.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’
glib-2.87.0/gobject/tests/value.c:233:1: enter_function: entry to ‘test_copying’
glib-2.87.0/gobject/tests/value.c:243:13: call_function: calling ‘lcopy’ from ‘test_copying’ with 1 variadic argument
#  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): [#def1309]
glib-2.87.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’
glib-2.87.0/gobject/tests/value.c:233:1: enter_function: entry to ‘test_copying’
glib-2.87.0/gobject/tests/value.c:243:13: call_function: calling ‘lcopy’ from ‘test_copying’ with 1 variadic argument
#  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): [#def1310]
glib-2.87.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’
glib-2.87.0/gobject/tests/value.c:233:1: enter_function: entry to ‘test_copying’
glib-2.87.0/gobject/tests/value.c:243:13: call_function: calling ‘lcopy’ from ‘test_copying’ with 1 variadic argument
#  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): [#def1311]
glib-2.87.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-list-exhausted]: ‘var_args’ has no more arguments (1 consumed)
glib-2.87.0/gobject/tests/value.c:233:1: enter_function: entry to ‘test_copying’
glib-2.87.0/gobject/tests/value.c:243:13: call_function: calling ‘lcopy’ from ‘test_copying’ with 1 variadic argument
#  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-404): [#def1312]
glib-2.87.0/gobject/tests/value.c:132:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/gobject/tests/value.c:131:3: acquire_resource: ‘va_start’ called here
glib-2.87.0/gobject/tests/value.c:132:3: throw: if ‘g_type_value_table_peek’ throws an exception...
glib-2.87.0/gobject/tests/value.c:132:3: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  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-404): [#def1313]
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:194:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:177:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:193:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:194:13: throw: if ‘g_param_spec_ref’ throws an exception...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:194:13: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  192|     arg12 = (gpointer) va_arg (args_copy, gpointer);
#  193|     if ((param_types[12] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg12 != NULL)
#  194|->     arg12 = g_param_spec_ref (arg12);
#  195|     arg13 = (gpointer) va_arg (args_copy, gpointer);
#  196|     if ((param_types[13] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg13 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1314]
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:197:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:177:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:196:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:197:13: throw: if ‘g_boxed_copy’ throws an exception...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:197:13: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  195|     arg13 = (gpointer) va_arg (args_copy, gpointer);
#  196|     if ((param_types[13] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg13 != NULL)
#  197|->     arg13 = g_boxed_copy (param_types[13] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg13);
#  198|     arg14 = (gpointer) va_arg (args_copy, gpointer);
#  199|     arg15 = (gpointer) va_arg (args_copy, gpointer);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1315]
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:201:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:177:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:200:6: branch_true: following ‘true’ branch (when ‘arg15’ is non-NULL)...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:201:13: branch_true: ...to here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:201:13: throw: if ‘g_object_ref’ throws an exception...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:201:13: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  199|     arg15 = (gpointer) va_arg (args_copy, gpointer);
#  200|     if (arg15 != NULL)
#  201|->     arg15 = g_object_ref (arg15);
#  202|     arg16 = (gpointer) va_arg (args_copy, gpointer);
#  203|     if ((param_types[16] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg16 != NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1316]
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:204:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:177:3: acquire_resource: ‘va_copy’ called here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:200:6: branch_false: following ‘false’ branch (when ‘arg15’ is NULL)...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:202:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:203:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:204:13: throw: if ‘g_variant_ref_sink’ throws an exception...
glib-2.87.0/redhat-linux-build/gobject/tests/marshalers.c:204:13: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  202|     arg16 = (gpointer) va_arg (args_copy, gpointer);
#  203|     if ((param_types[16] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg16 != NULL)
#  204|->     arg16 = g_variant_ref_sink (arg16);
#  205|     arg17 = (gint64) va_arg (args_copy, gint64);
#  206|     arg18 = (guint64) va_arg (args_copy, guint64);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1317]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1318]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1319]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1320]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1321]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1322]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1323]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1324]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1325]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1326]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1327]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1328]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1329]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1330]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1331]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1332]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1333]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1334]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1335]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1336]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1337]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:599:1: enter_function: entry to ‘dump_error_quark’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1338]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1339]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1340]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1341]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1342]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1343]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1344]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1345]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1346]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1347]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1348]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1349]
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect3p16_oiv/GIRepository-3.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1350]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1351]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1352]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1353]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1354]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1355]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1356]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1357]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1358]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1359]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1360]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1361]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1362]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1363]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1364]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1365]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1366]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1367]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1368]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1369]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1370]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:599:1: enter_function: entry to ‘dump_error_quark’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1371]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1372]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1373]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1374]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1375]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1376]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1377]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1378]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1379]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1380]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1381]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1382]
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspect9lpplg8c/GLibUnix-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1383]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1384]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1385]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1386]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1387]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1388]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1389]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1390]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1391]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1392]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1393]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1394]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1395]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1396]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1397]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1398]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1399]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1400]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1401]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1402]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1403]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:599:1: enter_function: entry to ‘dump_error_quark’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1404]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1405]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1406]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1407]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1408]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1409]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1410]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1411]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1412]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1413]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1414]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1415]
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectfu6cpskn/GioUnix-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1416]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1417]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1418]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1419]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1420]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1421]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1422]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1423]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1424]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1425]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1426]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1427]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1428]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1429]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1430]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1431]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1432]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1433]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1434]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1435]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1436]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:599:1: enter_function: entry to ‘dump_error_quark’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1437]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1438]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1439]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1440]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1441]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1442]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1443]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1444]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1445]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1446]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1447]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1448]
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectotfy388r/GObject-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1449]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1450]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1451]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1452]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1453]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1454]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1455]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1456]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1457]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1458]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1459]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1460]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1461]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1462]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1463]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1464]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1465]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1466]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1467]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1468]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1469]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:599:1: enter_function: entry to ‘dump_error_quark’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1470]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1471]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1472]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1473]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1474]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1475]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1476]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1477]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1478]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1479]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1480]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1481]
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectsve1h6u0/GModule-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1482]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1483]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1484]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1485]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1486]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1487]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1488]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1489]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1490]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1491]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1492]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1493]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1494]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1495]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1496]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1497]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1498]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1499]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1500]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1501]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1502]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:599:1: enter_function: entry to ‘dump_error_quark’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1503]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1504]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1505]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1506]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1507]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1508]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1509]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1510]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1511]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1512]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1513]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1514]
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectszf8u5ql/Gio-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1515]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1516]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1517]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1518]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1519]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1520]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1521]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1522]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1523]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1524]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1525]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1526]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1527]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1528]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1529]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1530]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1531]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1532]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1533]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1534]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1535]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:599:1: enter_function: entry to ‘dump_error_quark’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1536]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1537]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1538]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1539]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1540]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1541]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1542]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1543]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_true: following ‘true’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:685:25: branch_true: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1544]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1545]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_resource: opened here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1546]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1547]
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:630:1: enter_function: entry to ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:645:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:654:15: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:658:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:669:11: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:670:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:682:12: acquire_memory: allocated here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:683:6: branch_false: following ‘false’ branch...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: branch_false: ...to here
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
glib-2.87.0/redhat-linux-build/tmp-introspectxf8bso66/GLib-2.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-213.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameglib2-2.87.0-3.fc44
store-results-to/tmp/tmpwqhefumj/glib2-2.87.0-3.fc44.tar.xz
time-created2026-01-08 16:33:48
time-finished2026-01-08 16:46:12
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpwqhefumj/glib2-2.87.0-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpwqhefumj/glib2-2.87.0-3.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9