flatpak-1.15.8-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-bundle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-commit-from.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-commit-from.c:388:11: warning[deadcode.DeadStores]: Value stored to 'n_dst_refs' is never read
#  386|                   g_ptr_array_add (src_refs, g_strdup (keys[i]));
#  387|               }
#  388|->           n_dst_refs = src_refs->len;
#  389|             dst_refs = (const char **) src_refs->pdata;
#  390|           }

Error: CLANG_WARNING: [#def4]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-commit-from.c:649:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  647|         timestamp = ostree_commit_get_timestamp (src_commitv);
#  648|         if (opt_timestamp)
#  649|->         timestamp = ts.tv_sec;
#  650|   
#  651|         metadata = g_variant_ref_sink (g_variant_builder_end (&metadata_builder));

Error: CPPCHECK_WARNING: [#def5]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-export.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-finish.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-import-bundle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build-update-repo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-build.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-config.c: scope_hint: In function ‘looks_like_a_locale’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-config.c:112:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-config.c:28: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-config.c:109:30: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-config.c: scope_hint: In function ‘looks_like_a_locale’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#  110|     gchar *language, *territory, *codeset, *modifier;
#  111|   
#  112|->   modifier = strchr (locale, '@');
#  113|     if (modifier != NULL)
#  114|       *modifier++ = '\0';

Error: CPPCHECK_WARNING: [#def13]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-create-usb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-export.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-export.c: scope_hint: In function ‘flatpak_builtin_document_export’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-export.c:134:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_path_get_dirname(file), 2621440)’
#  132|   
#  133|     if (opt_noexist)
#  134|->     fd = open (dirname, O_PATH | O_CLOEXEC);
#  135|     else
#  136|       fd = open (file, O_PATH | O_CLOEXEC);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-export.c:136:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(file, 2621440)’
#  134|       fd = open (dirname, O_PATH | O_CLOEXEC);
#  135|     else
#  136|->     fd = open (file, O_PATH | O_CLOEXEC);
#  137|   
#  138|     if (fd == -1)

Error: CPPCHECK_WARNING: [#def17]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-unexport.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-unexport.c: scope_hint: In function ‘flatpak_builtin_document_unexport’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-unexport.c:90:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘doc_id’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-unexport.c:29: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-unexport.c:86:14: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-document-unexport.c: scope_hint: In function ‘flatpak_builtin_document_unexport’
#   88|       return FALSE;
#   89|   
#   90|->   if (strcmp (doc_id, "") == 0)
#   91|       {
#   92|         g_print (_("Not exported\n"));

Error: CPPCHECK_WARNING: [#def21]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:214:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:116:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:116:3: note: in expansion of macro ‘g_assert’
#  212|           user_base_ino = path_stat.st_ino;
#  213|   
#  214|->       ns_fd[i] = open (path, O_RDONLY);
#  215|         if (ns_fd[i] == -1)
#  216|           return flatpak_fail (error, _("Can't open %s namespace: %s"), ns_name[i], g_strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:248:68: warning[-Wanalyzer-null-argument]: use of NULL ‘e’ where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:116:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:116:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:170:46: note: in expansion of macro ‘_G_STR_NONNULL’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:251:12: note: in expansion of macro ‘g_str_has_prefix’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:252:12: note: in expansion of macro ‘g_str_has_prefix’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:252:12: note: in expansion of macro ‘g_str_has_prefix’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:253:12: note: in expansion of macro ‘g_str_has_prefix’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:253:12: note: in expansion of macro ‘g_str_has_prefix’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:254:12: note: in expansion of macro ‘g_str_has_prefix’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:254:12: note: in expansion of macro ‘g_str_has_prefix’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:255:12: note: in expansion of macro ‘g_str_has_prefix’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:255:12: note: in expansion of macro ‘g_str_has_prefix’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:257:15: note: in expansion of macro ‘g_str_has_prefix’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:257:15: note: in expansion of macro ‘g_str_has_prefix’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:259:40: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c: scope_hint: In function ‘flatpak_builtin_enter’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  246|   
#  247|     envp_array = g_ptr_array_new_with_free_func (g_free);
#  248|->   for (e = environment; e < environment + environment_len; e = e + strlen (e) + 1)
#  249|       {
#  250|         if (*e != 0 &&

Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c: scope_hint: In function ‘flatpak_builtin_enter’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:299:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ns_fd[0]’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:30: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:116:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:116:3: note: in expansion of macro ‘g_assert’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c: scope_hint: In function ‘flatpak_builtin_enter’
/usr/include/glib-2.0/glib/gi18n.h:25: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c:191:44: note: in expansion of macro ‘_’
/usr/include/glib-2.0/glib/gmacros.h:1358:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
/usr/include/glib-2.0/glib/glib-autocleanups.h:63:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
/usr/include/glib-2.0/glib/gmacros.h:1372:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
/usr/include/glib-2.0/glib/glib-autocleanups.h:63:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c: scope_hint: In function ‘flatpak_builtin_enter’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-enter.c: scope_hint: In function ‘flatpak_builtin_enter’
#  297|   
#  298|     exit (status);
#  299|-> }
#  300|   
#  301|   gboolean

Error: CPPCHECK_WARNING: [#def25]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-history.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c: scope_hint: In function ‘flatpak_builtin_info’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:238:11: warning[-Wanalyzer-null-argument]: use of NULL ‘latest’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:28: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:196:28: note: in expansion of macro ‘_’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:196:18: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c: scope_hint: In function ‘flatpak_builtin_info’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:933:29: note: in definition of macro ‘MAX’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:217:38: note: in expansion of macro ‘_’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:218:13: note: in expansion of macro ‘MAX’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:219:13: note: in expansion of macro ‘MAX’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:220:13: note: in expansion of macro ‘MAX’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:228:13: note: in expansion of macro ‘MAX’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:26: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  236|         if (subject)
#  237|           len = MAX (len, g_utf8_strlen (_("Subject:"), -1));
#  238|->       if (strcmp (commit, latest) != 0)
#  239|           {
#  240|             len = MAX (len, g_utf8_strlen (_("Active commit:"), -1));

Error: CLANG_WARNING: [#def28]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-info.c:481:15: warning[deadcode.DeadStores]: Value stored to 'size' is never read
#  479|                 origin = NULL;
#  480|                 ext_installation = g_strdup (_("unknown"));
#  481|->               size = 0;
#  482|                 ext_formatted_size = g_strdup (_("unknown"));
#  483|                 ext_subpaths = NULL;

Error: CPPCHECK_WARNING: [#def29]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-install.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-make-current.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-override.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-permission-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-permission-set.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-ps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-add.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-delete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def38]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-ls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def41]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-ls.c:218:49: warning[core.NullDereference]: Array access (from variable 'arches') results in a null pointer dereference
#  216|             if (!opt_all && opt_arch == NULL &&
#  217|                 /* Hide non-primary arches if the primary arch exists */
#  218|->               !flatpak_decomposed_is_arch (ref, arches[0]))
#  219|               {
#  220|                 g_autoptr(FlatpakDecomposed) alt_arch = flatpak_decomposed_new_from_decomposed (ref, 0, NULL, arches[0], NULL, NULL);

Error: CLANG_WARNING: [#def42]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-ls.c:336:48: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  334|                 else if (strcmp (columns[j].name, "installed-size") == 0)
#  335|                   {
#  336|->                   g_autofree char *installed = g_format_size (installed_size);
#  337|                     flatpak_table_printer_add_decimal_column (printer, installed);
#  338|                   }

Error: CLANG_WARNING: [#def43]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-ls.c:341:47: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  339|                 else if (strcmp (columns[j].name, "download-size") == 0)
#  340|                   {
#  341|->                   g_autofree char *download = g_format_size (download_size);
#  342|                     flatpak_table_printer_add_decimal_column (printer, download);
#  343|                   }

Error: CPPCHECK_WARNING: [#def44]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-remote-modify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-repair.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-repo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-run.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-uninstall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-update.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def52]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-utils.c:875:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'result'
#  873|         int idx = find_column (columns, cols[i], error);
#  874|         if (idx < 0)
#  875|->         return NULL;
#  876|         result[i] = columns[idx];
#  877|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-utils.c: scope_hint: In function ‘ellipsize_string_full’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-utils.c:1030:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-utils.c:23: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-utils.c:1011:26: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-builtins-utils.c: scope_hint: In function ‘ellipsize_string_full’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1028|   
# 1029|         p = ret;
# 1030|->       q = ret + strlen (ret);
# 1031|   
# 1032|         for (i = 0; i < l1; i++)

Error: CPPCHECK_WARNING: [#def54]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-cli-transaction.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-complete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def56]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-complete.c:273:15: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  271|              * not for "org.foo" or other shorter prefixes.
#  272|              */
#  273|->           if (strncmp (parts[element], cur_parts[element], last_dot - parts[element] - 1) != 0)
#  274|               continue;
#  275|           }

Error: CLANG_WARNING: [#def57]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-complete.c:278:47: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  276|   
#  277|         comp = g_string_new (pref);
#  278|->       g_string_append (comp, parts[element] + strlen (cur_parts[element]));
#  279|   
#  280|         /* Only complete on the last part if the user explicitly adds a / */

Error: CPPCHECK_WARNING: [#def58]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def59]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-main.c:466: error[legacyUninitvar]: Uninitialized variable: dir
#  464|               g_assert_not_reached ();
#  465|   
#  466|->           g_ptr_array_add (dirs, dir);
#  467|           }
#  468|   

Error: CLANG_WARNING: [#def60]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-main.c:840:5: warning[deadcode.DeadStores]: Value stored to 'polkit_agent' is never read
#  838|         g_strcmp0 (command->name, "build") != 0 &&
#  839|         g_strcmp0 (command->name, "history") != 0)
#  840|->     polkit_agent = install_polkit_agent ();
#  841|   
#  842|     /* g_vfs_get_default can spawn threads */

Error: CPPCHECK_WARNING: [#def61]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-polkit-agent-text-listener.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-quiet-transaction.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-table-printer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def64]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-table-printer.c:507:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'rwidths'
#  505|       }
#  506|   
#  507|->   width = printer->n_columns - 1;
#  508|     for (i = 0; i < printer->n_columns; i++)
#  509|       width += widths[i];

Error: CLANG_WARNING: [#def65]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-table-printer.c:639:15: warning[deadcode.DeadStores]: Value stored to 'freeme' is never read
#  637|               {
#  638|                 len -= shrinks[i];
#  639|->               freeme = title = ellipsize_string (title, len);
#  640|               }
#  641|   

Error: CLANG_WARNING: [#def66]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-table-printer.c:684:15: warning[deadcode.DeadStores]: Value stored to 'freeme' is never read
#  682|               {
#  683|                 len -= shrinks[j];
#  684|->               freeme = text = ellipsize_string_full (text, len, col->ellipsize);
#  685|               }
#  686|   

Error: CLANG_WARNING: [#def67]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-table-printer.c:711:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'lwidths'
#  709|       }
#  710|   
#  711|->   if (table_width)
#  712|       *table_width = width;
#  713|     if (table_height)

Error: CLANG_WARNING: [#def68]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-table-printer.c:711:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'shrinks'
#  709|       }
#  710|   
#  711|->   if (table_width)
#  712|       *table_width = width;
#  713|     if (table_height)

Error: CLANG_WARNING: [#def69]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-table-printer.c:711:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'widths'
#  709|       }
#  710|   
#  711|->   if (table_width)
#  712|       *table_width = width;
#  713|     if (table_height)

Error: CPPCHECK_WARNING: [#def70]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-tty-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def71]
flatpak-1.15.8-build/flatpak-1.15.8/app/flatpak-tty-utils.c:376:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'choice'
#  374|         numbers = flatpak_parse_numbers (buf, min, max);
#  375|         if (numbers)
#  376|->         return numbers;
#  377|       }
#  378|   }

Error: CPPCHECK_WARNING: [#def72]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-appdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def73]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-appdata.c:298:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  296|     /* avoid picking up <id> elements from e.g. <provides> */
#  297|     if (g_str_equal (element_name, "id") &&
#  298|->       g_str_equal (parent, "component"))
#  299|       {
#  300|         component->id = g_steal_pointer (&text);

Error: CPPCHECK_WARNING: [#def74]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def75]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-bwrap.c:378:8: warning[unix.Malloc]: Potential leak of memory pointed to by 'ptr'
#  376|       return FALSE;
#  377|   
#  378|->   fd = g_steal_fd (&args_tmpf.fd);
#  379|   
#  380|     g_debug ("bwrap --args %d = ...", fd);

Error: CPPCHECK_WARNING: [#def76]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def77]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c: scope_hint: In function ‘get_xdg_user_dir_from_string’
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c:583:11: warning[-Wanalyzer-null-argument]: use of NULL ‘filesystem’ where non-null expected
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/libglnx.h:24: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context-private.h:24: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c:22: included_from: Included from here.
/usr/lib64/glib-2.0/include/glibconfig.h:103:51: note: in definition of macro ‘GPOINTER_TO_INT’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c:2586:7: note: in expansion of macro ‘g_info’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c:2610:11: note: in expansion of macro ‘g_str_has_prefix’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:166:11: note: in expansion of macro ‘G_UNLIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c:2610:11: note: in expansion of macro ‘g_str_has_prefix’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#  581|     gsize len;
#  582|   
#  583|->   slash = strchr (filesystem, '/');
#  584|   
#  585|     if (slash)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c: scope_hint: In function ‘flatpak_context_export’
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c:2534:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/")’
/usr/lib64/glib-2.0/include/glibconfig.h:103:51: note: in definition of macro ‘GPOINTER_TO_INT’
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-context.c:2530:7: note: in expansion of macro ‘g_info’
# 2532|   
# 2533|         /* Bind mount most dirs in / into the new root */
# 2534|->       dir = opendir ("/");
# 2535|         if (dir != NULL)
# 2536|           {

Error: CPPCHECK_WARNING: [#def79]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-dir.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def80]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-dir.c:844: error[legacyUninitvar]: Uninitialized variable: meta
#  842|       g_assert_not_reached ();
#  843|   
#  844|->   return meta;
#  845|   }
#  846|   

Error: CPPCHECK_WARNING: [#def81]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-exports.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def82]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-exports.c:674:10: warning[deadcode.DeadStores]: Although the value stored to 'canonical' is used in the enclosing expression, the value is never actually read from 'canonical'
#  672|   
#  673|     /* Syntactic canonicalization only, no need to use host_fd */
#  674|->   path = canonical = flatpak_canonicalize_filename (path);
#  675|   
#  676|     parts = g_strsplit (path + 1, "/", -1);

Error: CPPCHECK_WARNING: [#def83]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-installation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def84]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-instance.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def85]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-json-oci.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def86]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-json.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def87]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-locale-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def88]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-oci-registry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def89]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-oci-registry.c:1023:13: warning[deadcode.DeadStores]: Although the value stored to 'default_scope' is used in the enclosing expression, the value is never actually read from 'default_scope'
# 1021|     scope = g_hash_table_lookup (params, "scope");
# 1022|     if (scope == NULL)
# 1023|->     scope = default_scope = g_strdup_printf("repository:%s:pull", repository);
# 1024|   
# 1025|     flatpak_uri_encode_query_arg (args, "scope", (char *)scope);

Error: CLANG_WARNING: [#def90]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-oci-registry.c:1884:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer1'
# 1882|   
# 1883|     if (!g_input_stream_read_all (in_raw, header, sizeof(header), NULL, cancellable, error))
# 1884|->     return FALSE;
# 1885|   
# 1886|     if (memcmp (header, DELTA_HEADER, DELTA_HEADER_LEN) != 0)

Error: CLANG_WARNING: [#def91]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-oci-registry.c:1884:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer2'
# 1882|   
# 1883|     if (!g_input_stream_read_all (in_raw, header, sizeof(header), NULL, cancellable, error))
# 1884|->     return FALSE;
# 1885|   
# 1886|     if (memcmp (header, DELTA_HEADER, DELTA_HEADER_LEN) != 0)

Error: CPPCHECK_WARNING: [#def92]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-parental-controls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def93]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-prune.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def94]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-prune.c:753:36: warning[unix.Malloc]: Potential leak of memory pointed to by 'reachable'
#  751|     if (ostree_repo_get_mode (repo) != OSTREE_REPO_MODE_ARCHIVE)
#  752|       {
#  753|->       OstreeRepoPruneFlags flags = OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY;
#  754|         if (dry_run)
#  755|           flags |= OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE;

Error: CPPCHECK_WARNING: [#def95]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-ref-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def96]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-ref-utils.c:1502:26: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1500|     const char *end;
# 1501|   
# 1502|->   slash = (const char *) strchr (*partial_ref, '/');
# 1503|     if (slash != NULL)
# 1504|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-ref-utils.c: scope_hint: In function ‘_flatpak_split_partial_ref_arg’
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-ref-utils.c:1576:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
# 1574|   
# 1575|     if (validate && !flatpak_is_valid_name (id, -1, &local_error))
# 1576|->     return flatpak_fail_error (error, FLATPAK_ERROR_INVALID_REF, _("Invalid id %s: %s"), id, local_error->message);
# 1577|   
# 1578|     arch_start = partial_ref;

Error: CPPCHECK_WARNING: [#def98]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-remote-ref.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-remote.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def100]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-cups.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def101]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-dbus.c: scope_hint: In function ‘add_bwrap_wrapper’
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-dbus.c:44:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(app_info_path, 524288)’
#   42|     g_autofree char *proxy_socket_dir = g_build_filename (user_runtime_dir, ".dbus-proxy/", NULL);
#   43|   
#   44|->   app_info_fd = open (app_info_path, O_RDONLY | O_CLOEXEC);
#   45|     if (app_info_fd == -1)
#   46|       return glnx_throw_errno_prefix (error, _("Failed to open app info file"));

Error: CPPCHECK_WARNING: [#def103]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-pulseaudio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def104]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-sockets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def105]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-wayland.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def106]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-x11.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def107]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def108]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-transaction.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def109]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-transaction.c:4130:9: warning[deadcode.DeadStores]: Value stored to 'old' is never read
# 4128|           g_hash_table_insert (need_token_ht, op->remote, g_list_append (NULL, op));
# 4129|         else
# 4130|->         old = g_list_append (old, op);
# 4131|       }
# 4132|   

Error: CPPCHECK_WARNING: [#def110]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-uri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def111]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-utils-http.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def112]
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def113]
flatpak-1.15.8-build/flatpak-1.15.8/common/test-lib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def114]
flatpak-1.15.8-build/flatpak-1.15.8/icon-validator/validate-icon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def115]
flatpak-1.15.8-build/flatpak-1.15.8/oci-authenticator/flatpak-oci-authenticator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def116]
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def117]
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:1054:54: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
# 1052|                                                        G_DBUS_ERROR_INVALID_ARGS,
# 1053|                                                        "Could not load environment for \"flatpak run\": %s",
# 1054|->                                                      error->message);
# 1055|                 return G_DBUS_METHOD_INVOCATION_HANDLED;
# 1056|               }

Error: CLANG_WARNING: [#def118]
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:1269:7: warning[deadcode.DeadStores]: Value stored to 'instance_id_out_stream' is never read
# 1267|         GInputStream *in_stream = G_INPUT_STREAM (g_unix_input_stream_new (pipe_fds[0], TRUE));
# 1268|         /* This is saved to ensure the portal's end gets closed after the exec. */
# 1269|->       instance_id_out_stream = G_OUTPUT_STREAM (g_unix_output_stream_new (pipe_fds[1], TRUE));
# 1270|   
# 1271|         instance_id_read_data = g_new0 (InstanceIdReadData, 1);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def119]
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c: scope_hint: In function ‘handle_spawn’
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:1466:6: warning[-Wanalyzer-deref-before-check]: check of ‘arg_cwd_path’ for NULL after already dereferencing it
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib-unix.h:36: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:811:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:816:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:818:3: note: in expansion of macro ‘g_info’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c:1061:36: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/portal/flatpak-portal.c: scope_hint: In function ‘handle_spawn’
# 1464|       }
# 1465|   
# 1466|->   if (arg_cwd_path != NULL)
# 1467|       g_ptr_array_add (flatpak_argv, g_strdup_printf ("--cwd=%s", arg_cwd_path));
# 1468|   

Error: CPPCHECK_WARNING: [#def120]
flatpak-1.15.8-build/flatpak-1.15.8/portal/portal-impl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def121]
flatpak-1.15.8-build/flatpak-1.15.8/portal/portal-impl.c:56:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'impl'
#   54|   
#   55|     if (!g_key_file_load_from_file (keyfile, path, G_KEY_FILE_NONE, error))
#   56|->     return FALSE;
#   57|   
#   58|     impl->source = g_path_get_basename (path);

Error: CPPCHECK_WARNING: [#def122]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/app/flatpak-permission-dbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def123]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/app/parse-datetime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def124]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/common/flatpak-dbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def125]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/common/flatpak-document-dbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def126]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/common/flatpak-systemd-dbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def127]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/flatpak-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def128]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/flatpak-scan.c:202:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'

Error: CPPCHECK_WARNING: [#def129]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/portal/flatpak-permission-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def130]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/portal/flatpak-portal-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def131]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/tmp-introspectgwywob6m/Flatpak-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def132]
flatpak-1.15.8-build/flatpak-1.15.8/redhat-linux-build/tmp-introspectgwywob6m/Flatpak-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def133]
flatpak-1.15.8-build/flatpak-1.15.8/revokefs/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def134]
flatpak-1.15.8-build/flatpak-1.15.8/revokefs/writer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def135]
flatpak-1.15.8-build/flatpak-1.15.8/revokefs/writer.c:91:3: warning[deadcode.DeadStores]: Value stored to 'locker' is never read
#   89|       }
#   90|   
#   91|->   locker = g_mutex_locker_new (&mutex);
#   92|     written_size = TEMP_FAILURE_RETRY (writev (writer_socket, write_vecs, n_write_vecs));
#   93|     if (written_size == -1)

Error: CLANG_WARNING: [#def136]
flatpak-1.15.8-build/flatpak-1.15.8/revokefs/writer.c:112:7: warning[deadcode.DeadStores]: Value stored to 'response_max_size' is never read
#  110|         read_vecs[n_read_vecs].iov_base = response_data;
#  111|         read_vecs[n_read_vecs++].iov_len = response_data_size;
#  112|->       response_max_size += response_data_size;
#  113|       }
#  114|   

Error: CPPCHECK_WARNING: [#def137]
flatpak-1.15.8-build/flatpak-1.15.8/session-helper/flatpak-session-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def138]
flatpak-1.15.8-build/flatpak-1.15.8/session-helper/flatpak-session-helper.c:867:3: warning[deadcode.DeadStores]: Value stored to 'm_resolv_conf' is never read
#  865|       }
#  866|   
#  867|->   m_resolv_conf = setup_file_monitor ("/etc/resolv.conf");
#  868|     m_host_conf   = setup_file_monitor ("/etc/host.conf");
#  869|     m_hosts       = setup_file_monitor ("/etc/hosts");

Error: CLANG_WARNING: [#def139]
flatpak-1.15.8-build/flatpak-1.15.8/session-helper/flatpak-session-helper.c:868:3: warning[deadcode.DeadStores]: Value stored to 'm_host_conf' is never read
#  866|   
#  867|     m_resolv_conf = setup_file_monitor ("/etc/resolv.conf");
#  868|->   m_host_conf   = setup_file_monitor ("/etc/host.conf");
#  869|     m_hosts       = setup_file_monitor ("/etc/hosts");
#  870|     m_gai_conf    = setup_file_monitor ("/etc/gai.conf");

Error: CLANG_WARNING: [#def140]
flatpak-1.15.8-build/flatpak-1.15.8/session-helper/flatpak-session-helper.c:869:3: warning[deadcode.DeadStores]: Value stored to 'm_hosts' is never read
#  867|     m_resolv_conf = setup_file_monitor ("/etc/resolv.conf");
#  868|     m_host_conf   = setup_file_monitor ("/etc/host.conf");
#  869|->   m_hosts       = setup_file_monitor ("/etc/hosts");
#  870|     m_gai_conf    = setup_file_monitor ("/etc/gai.conf");
#  871|     m_localtime   = setup_file_monitor ("/etc/localtime");

Error: CLANG_WARNING: [#def141]
flatpak-1.15.8-build/flatpak-1.15.8/session-helper/flatpak-session-helper.c:870:3: warning[deadcode.DeadStores]: Value stored to 'm_gai_conf' is never read
#  868|     m_host_conf   = setup_file_monitor ("/etc/host.conf");
#  869|     m_hosts       = setup_file_monitor ("/etc/hosts");
#  870|->   m_gai_conf    = setup_file_monitor ("/etc/gai.conf");
#  871|     m_localtime   = setup_file_monitor ("/etc/localtime");
#  872|   

Error: CLANG_WARNING: [#def142]
flatpak-1.15.8-build/flatpak-1.15.8/session-helper/flatpak-session-helper.c:871:3: warning[deadcode.DeadStores]: Value stored to 'm_localtime' is never read
#  869|     m_hosts       = setup_file_monitor ("/etc/hosts");
#  870|     m_gai_conf    = setup_file_monitor ("/etc/gai.conf");
#  871|->   m_localtime   = setup_file_monitor ("/etc/localtime");
#  872|   
#  873|     flags = G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT;

Error: CPPCHECK_WARNING: [#def143]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-console.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def144]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-dirfd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def145]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-fdio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def146]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-fdio.c:526:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf'
#  524|   
#  525|         if (g_cancellable_set_error_if_cancelled (cancellable, error))
#  526|->         return FALSE;
#  527|   
#  528|         gssize bytes_read;

Error: CLANG_WARNING: [#def147]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-fdio.c:674:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'c'
#  672|         ssize_t n = TEMP_FAILURE_RETRY (readlinkat (dfd, subpath, c, l-1));
#  673|         if (n < 0)
#  674|->         return glnx_null_throw_errno_prefix (error, "readlinkat");
#  675|   
#  676|         if ((size_t) n < l-1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def148]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/libglnx.h:30: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-dbus-private.h:23: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/common/flatpak-run-dbus.c:22: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-local-alloc.h: scope_hint: In function ‘glnx_close_fd’
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-local-alloc.h:74:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/libglnx.h:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-local-alloc.h:64:3: note: in expansion of macro ‘g_assert’
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-local-alloc.h: scope_hint: In function ‘glnx_close_fd’
#   72|         errno = errsv;
#   73|       }
#   74|-> }
#   75|   
#   76|   /**

Error: CPPCHECK_WARNING: [#def149]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-lockfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def150]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-lockfile.c: scope_hint: In function ‘glnx_make_lock_file’
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-lockfile.c:91:22: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-backport-autoptr.h:27: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-lockfile.h:26: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-lockfile.c:40: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-lockfile.c:80:13: note: in expansion of macro ‘g_strdup’
/usr/include/features.h:511: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdlib.h:26: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-lockfile.c:28: included_from: Included from here.
/usr/include/fcntl.h:237:12: note: argument 2 of ‘openat’ must be non-null
#   89|                   struct stat st;
#   90|   
#   91|->                 fd = openat(dfd, p, O_CREAT|O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NOCTTY, 0600);
#   92|                   if (fd < 0)
#   93|                           return glnx_throw_errno(error);

Error: CPPCHECK_WARNING: [#def151]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-shutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def152]
flatpak-1.15.8-build/flatpak-1.15.8/subprojects/libglnx/glnx-xattrs.c:200:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'xattr_names'
#  198|       }
#  199|   
#  200|->   ret_xattrs = g_variant_builder_end (&builder);
#  201|     builder_initialized = FALSE;
#  202|     g_variant_ref_sink (ret_xattrs);

Error: CPPCHECK_WARNING: [#def153]
flatpak-1.15.8-build/flatpak-1.15.8/system-helper/flatpak-system-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def154]
flatpak-1.15.8-build/flatpak-1.15.8/system-helper/flatpak-system-helper.c:1473:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf'
# 1471|                 continue;
# 1472|               }
# 1473|->           else if (err == 0)     /* User SYSTEM_HELPER_USER 's record was not found*/
# 1474|               {
# 1475|                 g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
flatpak-1.15.8-build/flatpak-1.15.8/system-helper/flatpak-system-helper.c: scope_hint: In function ‘flatpak_authorize_method_handler’
flatpak-1.15.8-build/flatpak-1.15.8/system-helper/flatpak-system-helper.c:2086:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sys_error’
# 2084|             if (system == NULL)
# 2085|               {
# 2086|->               g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED,
# 2087|                                                        "Error getting installation %s: %s", installation, sys_error->message);
# 2088|                 return FALSE;

Error: CLANG_WARNING: [#def156]
flatpak-1.15.8-build/flatpak-1.15.8/system-helper/flatpak-system-helper.c:2087:105: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'sys_error')
# 2085|               {
# 2086|                 g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED,
# 2087|->                                                      "Error getting installation %s: %s", installation, sys_error->message);
# 2088|                 return FALSE;
# 2089|               }

Error: CPPCHECK_WARNING: [#def157]
flatpak-1.15.8-build/flatpak-1.15.8/tests/can-use-fuse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def158]
flatpak-1.15.8-build/flatpak-1.15.8/tests/hold-lock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def159]
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-685): [#def160]
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c: scope_hint: In function ‘context_parse_args’
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c:151:15: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (2 consumed)
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c:22: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c:152:28: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c: scope_hint: In function ‘context_parse_args’
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c:152:28: note: in expansion of macro ‘g_strdup’
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-context.c: scope_hint: In function ‘context_parse_args’
#  149|     va_start (ap, error);
#  150|   
#  151|->   while ((arg = va_arg (ap, const char *)) != NULL)
#  152|       g_ptr_array_add (args, g_strdup (arg));
#  153|   

Error: CPPCHECK_WARNING: [#def161]
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-exports.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def162]
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-instance.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def163]
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-portal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def164]
flatpak-1.15.8-build/flatpak-1.15.8/tests/test-update-portal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def165]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-685): [#def166]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c: scope_hint: In function ‘assert_numbers’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:150:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:7: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  148|     for (i = 0; num[i]; i++)
#  149|       {
#  150|->       n = va_arg (args, int);
#  151|         g_assert_true (n == num[i]);
#  152|       }

Error: GCC_ANALYZER_WARNING (CWE-685): [#def167]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:150:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (2 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  148|     for (i = 0; num[i]; i++)
#  149|       {
#  150|->       n = va_arg (args, int);
#  151|         g_assert_true (n == num[i]);
#  152|       }

Error: GCC_ANALYZER_WARNING (CWE-685): [#def168]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:150:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (3 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  148|     for (i = 0; num[i]; i++)
#  149|       {
#  150|->       n = va_arg (args, int);
#  151|         g_assert_true (n == num[i]);
#  152|       }

Error: GCC_ANALYZER_WARNING (CWE-685): [#def169]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:150:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (4 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  148|     for (i = 0; num[i]; i++)
#  149|       {
#  150|->       n = va_arg (args, int);
#  151|         g_assert_true (n == num[i]);
#  152|       }

Error: GCC_ANALYZER_WARNING (CWE-685): [#def170]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:150:9: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (5 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:188:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:188:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  148|     for (i = 0; num[i]; i++)
#  149|       {
#  150|->       n = va_arg (args, int);
#  151|         g_assert_true (n == num[i]);
#  152|       }

Error: GCC_ANALYZER_WARNING (CWE-685): [#def171]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:154:5: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  152|       }
#  153|   
#  154|->   n = va_arg (args, int);
#  155|     g_assert_true (n == 0);
#  156|     va_end (args);

Error: GCC_ANALYZER_WARNING (CWE-685): [#def172]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:154:5: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (2 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  152|       }
#  153|   
#  154|->   n = va_arg (args, int);
#  155|     g_assert_true (n == 0);
#  156|     va_end (args);

Error: GCC_ANALYZER_WARNING (CWE-685): [#def173]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:154:5: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (3 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  152|       }
#  153|   
#  154|->   n = va_arg (args, int);
#  155|     g_assert_true (n == 0);
#  156|     va_end (args);

Error: GCC_ANALYZER_WARNING (CWE-685): [#def174]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:154:5: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (4 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  152|       }
#  153|   
#  154|->   n = va_arg (args, int);
#  155|     g_assert_true (n == 0);
#  156|     va_end (args);

Error: GCC_ANALYZER_WARNING (CWE-685): [#def175]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:154:5: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (5 consumed)
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:166:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:170:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:174:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:178:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:155:3: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:188:3: note: in expansion of macro ‘g_clear_pointer’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:188:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testapp.c:151:7: note: in expansion of macro ‘g_assert_true’
#  152|       }
#  153|   
#  154|->   n = va_arg (args, int);
#  155|     g_assert_true (n == 0);
#  156|     va_end (args);

Error: CPPCHECK_WARNING: [#def176]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testcommon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def177]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c: scope_hint: In function ‘tests_dbus_daemon_setup’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:223:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newline’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.h:21: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:19: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:175:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:176:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:176:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:177:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:177:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:178:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:178:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:222:3: note: in expansion of macro ‘g_assert_nonnull’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:222:3: note: in expansion of macro ‘g_assert_nonnull’
#  221|     newline = strchr (address_buffer, '\n');
#  222|     g_assert_nonnull (newline);
#  223|->   *newline = '\0';
#  224|     self->dbus_address = g_strdup (address_buffer);
#  225|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def179]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c: scope_hint: In function ‘tests_stdout_to_stderr_begin’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:265:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(2, 1)’
#  263|       g_error ("fcntl F_DUPFD_CLOEXEC: %s", g_strerror (errno));
#  264|   
#  265|->   if (dup2 (STDERR_FILENO, STDOUT_FILENO) < 0)
#  266|       g_error ("dup2: %s", g_strerror (errno));
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def180]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c: scope_hint: In function ‘tests_stdout_to_stderr_end’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:279:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*original.fd, 1)’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:276:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:277:3: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlib.c:277:3: note: in expansion of macro ‘g_return_if_fail’
#  277|     g_return_if_fail (original->fd >= 0);
#  278|   
#  279|->   if (dup2 (original->fd, STDOUT_FILENO) < 0)
#  280|       g_error ("dup2: %s", g_strerror (errno));
#  281|   

Error: CPPCHECK_WARNING: [#def181]
flatpak-1.15.8-build/flatpak-1.15.8/tests/testlibrary.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def182]
flatpak-1.15.8-build/flatpak-1.15.8/tests/try-syscall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def183]
flatpak-1.15.8-build/flatpak-1.15.8/tests/try-syscall.c: scope_hint: In function ‘main’
flatpak-1.15.8-build/flatpak-1.15.8/tests/try-syscall.c:166:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘-1’
#  164|           {
#  165|             /* If not blocked by seccomp, this will fail with EBADF */
#  166|->           if (listen (-1, 42) != 0)
#  167|               {
#  168|                 errsv = errno;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-97.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameflatpak-1.15.8-1.fc41
store-results-to/tmp/tmpcmaqp74q/flatpak-1.15.8-1.fc41.tar.xz
time-created2024-07-03 12:40:36
time-finished2024-07-03 12:44:40
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcmaqp74q/flatpak-1.15.8-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcmaqp74q/flatpak-1.15.8-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9