PackageKit-1.3.1-6.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/etc/cron.daily/packagekit-background.cron:41:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   39|   	pkcon $PKCON_OPTIONS $ONLY_DOWNLOAD update &> $PKTMP
#   40|   	PKCON_RETVAL=$?
#   41|-> 	if [ $PKCON_RETVAL -eq 0 -a "$UPDATE_OFFLINE" = "yes" ]; then
#   42|   		pkcon $PKCON_OPTIONS offline-trigger &>> $PKTMP
#   43|   	fi

Error: SHELLCHECK_WARNING (CWE-758): [#def2]
/etc/profile.d/PackageKit.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> # Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
#    2|   #
#    3|   # Licensed under the GNU General Public License Version 2

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:75:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:66:1: enter_function: entry to ‘pk_cnf_find_alternatives_swizzle’
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:73:21: branch_true: following ‘true’ branch...
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:74:28: call_function: inlined call to ‘g_strdup_inline’ from ‘pk_cnf_find_alternatives_swizzle’
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:75:17: danger: dereference of NULL ‘<unknown> + (sizetype)i’
#   73|   	for (i = 0; i < len-1; i++) {
#   74|   		possible = g_strdup (cmd);
#   75|-> 		swap = possible[i];
#   76|   		possible[i] = possible[i+1];
#   77|   		possible[i+1] = swap;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:162:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:149:1: enter_function: entry to ‘pk_cnf_find_alternatives_truncate’
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:161:21: branch_true: following ‘true’ branch...
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:162:40: branch_true: ...to here
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:162:17: danger: dereference of NULL ‘<unknown> + (sizetype)i’
#  160|   	possible = g_strdup (cmd);
#  161|   	for (i = 0; i < len-1; i++)
#  162|-> 		possible[i] = possible[i+1];
#  163|   	possible[len-1] = '\0';
#  164|   	g_ptr_array_add (array, possible);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:315:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:290:1: enter_function: entry to ‘pk_cnf_find_alternatives_case’
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:313:21: branch_false: following ‘false’ branch (when ‘i >= len’)...
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:315:13: branch_false: ...to here
PackageKit-1.3.1/contrib/command-not-found/pk-command-not-found.c:315:13: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#  313|   	for (i = 0; i < len; i++)
#  314|   		possible[i] = g_ascii_tolower (cmd[i]);
#  315|-> 	if (strcmp (possible, cmd) != 0)
#  316|   		g_ptr_array_add (array, possible);
#  317|   	else

Error: COMPILER_WARNING: [#def6]
PackageKit-1.3.1/lib/packagekit-glib2/pk-bitfield.c: scope_hint: In function ‘pk_bitfield_contain_priority’
PackageKit-1.3.1/lib/packagekit-glib2/pk-bitfield.c:52:15: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
#   52 |         guint i;
#      |               ^
#   50|   {
#   51|   	va_list args;
#   52|-> 	guint i;
#   53|   	gint value_temp;
#   54|   	gint retval = -1;

Error: COMPILER_WARNING: [#def7]
PackageKit-1.3.1/lib/packagekit-glib2/pk-bitfield.c: scope_hint: In function ‘pk_bitfield_from_enums’
PackageKit-1.3.1/lib/packagekit-glib2/pk-bitfield.c:93:15: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
#   93 |         guint i;
#      |               ^
#   91|   {
#   92|   	va_list args;
#   93|-> 	guint i;
#   94|   	gint value_temp;
#   95|   	PkBitfield values;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:88:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘state’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:4261:1: enter_function: entry to ‘pk_client_get_progress_async’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:4270:9: call_function: calling ‘pk_client_get_type’ from ‘pk_client_get_progress_async’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:4268:27: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘pk_client_get_progress_async’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:4267:34: call_function: inlined call to ‘glib_autoptr_cleanup_PkClientState’ from ‘pk_client_get_progress_async’
#   86|   #define PK_TYPE_CLIENT_STATE (pk_client_state_get_type ())
#   87|   
#   88|-> G_DECLARE_FINAL_TYPE (PkClientState, pk_client_state, PK, CLIENT_STATE, GObject)
#   89|   
#   90|   static GWeakRef *

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.h:87:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘client’
PackageKit-1.3.1/lib/packagekit-glib2/pk-test-daemon.c:594:18: throw: if ‘pk_client_new’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-test-daemon.c:561:29: call_function: inlined call to ‘glib_autoptr_cleanup_PkClient’ from ‘pk_test_client_func’
#   85|   
#   86|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   87|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkClient, g_object_unref)
#   88|   #endif
#   89|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:105:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tty_name, "r+")’
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:91:12: branch_false: following ‘false’ branch (when ‘tty_name’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: acquire_resource: opened here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:98:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:104:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:105:9: throw: if ‘fflush’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:105:9: danger: ‘fopen(tty_name, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  103|   
#  104|   	fprintf (tty, "%s", prompt);
#  105|-> 	fflush (tty);
#  106|   	setbuf (tty, NULL);
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tty_name, "r+")’
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:91:12: branch_false: following ‘false’ branch (when ‘tty_name’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: acquire_memory: allocated here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:98:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:104:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:105:9: throw: if ‘fflush’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:105:9: danger: ‘fopen(tty_name, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  103|   
#  104|   	fprintf (tty, "%s", prompt);
#  105|-> 	fflush (tty);
#  106|   	setbuf (tty, NULL);
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:111:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tty_name, "r+")’
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:91:12: branch_false: following ‘false’ branch (when ‘tty_name’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: acquire_resource: opened here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:98:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:104:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:114:15: throw: if ‘g_string_new’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:111:9: danger: ‘fopen(tty_name, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  109|   	tcgetattr (fileno (tty), &ts);
#  110|   	ots = ts;
#  111|-> 	ts.c_lflag &= ~(ECHONL);
#  112|   	tcsetattr (fileno (tty), TCSAFLUSH, &ts);
#  113|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:111:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tty_name, "r+")’
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:91:12: branch_false: following ‘false’ branch (when ‘tty_name’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:97:15: acquire_memory: allocated here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:98:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:104:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:114:15: throw: if ‘g_string_new’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-console-shared.c:111:9: danger: ‘fopen(tty_name, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  109|   	tcgetattr (fileno (tty), &ts);
#  110|   	ots = ts;
#  111|-> 	ts.c_lflag &= ~(ECHONL);
#  112|   	tcsetattr (fileno (tty), TCSAFLUSH, &ts);
#  113|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def14]
PackageKit-1.3.1/lib/packagekit-glib2/pk-control.h:50:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘control’
PackageKit-1.3.1/client/pk-monitor.c:314:1: enter_function: entry to ‘main’
PackageKit-1.3.1/client/pk-monitor.c:347:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-monitor.c:353:20: branch_false: ...to here
PackageKit-1.3.1/client/pk-monitor.c:354:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-monitor.c:359:21: branch_false: ...to here
PackageKit-1.3.1/client/pk-monitor.c:368:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-monitor.c:374:16: branch_false: ...to here
PackageKit-1.3.1/client/pk-monitor.c:325:31: call_function: inlined call to ‘glib_autoptr_cleanup_GDBusProxy’ from ‘main’
PackageKit-1.3.1/client/pk-monitor.c:324:36: call_function: inlined call to ‘glib_autoptr_cleanup_GDBusConnection’ from ‘main’
PackageKit-1.3.1/client/pk-monitor.c:323:38: call_function: inlined call to ‘glib_autoptr_cleanup_PkTransactionList’ from ‘main’
PackageKit-1.3.1/client/pk-monitor.c:322:30: call_function: inlined call to ‘glib_autoptr_cleanup_PkControl’ from ‘main’
#   48|   
#   49|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   50|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkControl, g_object_unref)
#   51|   #endif
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
PackageKit-1.3.1/lib/packagekit-glib2/pk-error.h:48:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘error_code’
PackageKit-1.3.1/client/pk-monitor.c:93:1: enter_function: entry to ‘pk_monitor_adopt_cb’
PackageKit-1.3.1/client/pk-monitor.c:105:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-monitor.c:111:9: branch_false: ...to here
PackageKit-1.3.1/client/pk-monitor.c:99:31: call_function: inlined call to ‘glib_autoptr_cleanup_PkProgress’ from ‘pk_monitor_adopt_cb’
PackageKit-1.3.1/client/pk-monitor.c:98:28: call_function: inlined call to ‘glib_autoptr_cleanup_PkError’ from ‘pk_monitor_adopt_cb’
#   46|   
#   47|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   48|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkError, g_object_unref)
#   49|   #endif
#   50|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
PackageKit-1.3.1/lib/packagekit-glib2/pk-error.h:48:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pk_error’
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:651:1: enter_function: entry to ‘pk_offline_get_results’
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:667:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:676:16: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:681:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:691:19: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:662:23: call_function: inlined call to ‘glib_auto_cleanup_GStrv’ from ‘pk_offline_get_results’
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:661:30: call_function: inlined call to ‘glib_autoptr_cleanup_PkResults’ from ‘pk_offline_get_results’
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:660:28: call_function: inlined call to ‘glib_autoptr_cleanup_PkError’ from ‘pk_offline_get_results’
#   46|   
#   47|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   48|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkError, g_object_unref)
#   49|   #endif
#   50|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
PackageKit-1.3.1/lib/packagekit-glib2/pk-files.h:47:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘item’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:968:20: throw: if ‘g_path_get_basename’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:964:28: call_function: inlined call to ‘glib_autoptr_cleanup_PkFiles’ from ‘pk_client_copy_downloaded_file’
#   45|   
#   46|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   47|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkFiles, g_object_unref)
#   48|   #endif
#   49|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
PackageKit-1.3.1/lib/packagekit-glib2/pk-package-id.c:171:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  169|   	sections1 = pk_package_id_split (package_id1);
#  170|   	sections2 = pk_package_id_split (package_id2);
#  171|-> 	if (g_strcmp0 (sections1[0], sections2[0]) == 0 &&
#  172|   	    g_strcmp0 (sections1[1], sections2[1]) == 0 &&
#  173|   	    pk_package_id_equal_fuzzy_arch_section (sections1[2], sections2[2]))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def19]
PackageKit-1.3.1/lib/packagekit-glib2/pk-package-sack.h:50:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘results_sack’
PackageKit-1.3.1/src/pk-engine.c:1619:1: enter_function: entry to ‘pk_engine_offline_method_call’
PackageKit-1.3.1/src/pk-engine.c:1629:9: branch_false: following ‘false’ branch (when ‘user_data’ is non-NULL)...
PackageKit-1.3.1/src/pk-engine.c:1629:9: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1637:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1651:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1651:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1665:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1665:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1701:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1701:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1737:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1737:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1758:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1758:12: branch_true: following ‘true’ branch...
PackageKit-1.3.1/src/pk-engine.c:1763:35: branch_true: ...to here
PackageKit-1.3.1/src/pk-engine.c:1767:27: throw: if ‘pk_offline_get_results’ throws an exception...
PackageKit-1.3.1/src/pk-engine.c:1763:35: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘pk_engine_offline_method_call’
PackageKit-1.3.1/src/pk-engine.c:1760:42: call_function: inlined call to ‘glib_autoptr_cleanup_PkPackageSack’ from ‘pk_engine_offline_method_call’
#   48|   
#   49|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   50|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkPackageSack, g_object_unref)
#   51|   #endif
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def20]
PackageKit-1.3.1/lib/packagekit-glib2/pk-package-sack.h:50:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sack’
PackageKit-1.3.1/lib/packagekit-glib2/pk-task-wrapper.c:125:16: throw: if ‘pk_results_get_package_sack’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-task-wrapper.c:118:34: call_function: inlined call to ‘glib_autoptr_cleanup_PkPackageSack’ from ‘pk_task_wrapper_simulate_question’
#   48|   
#   49|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   50|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkPackageSack, g_object_unref)
#   51|   #endif
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:193:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘package_id’
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:171:1: enter_function: entry to ‘pk_package_set_id’
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:177:9: branch_false: following ‘false’ branch (when ‘package’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:177:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:180:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:184:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:189:9: release_memory: ‘package_id’ is NULL
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:192:21: branch_true: following ‘true’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:193:31: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.c:193:21: danger: dereference of NULL ‘package_id + (sizetype)i’
#  191|   	priv->package_id_split[PK_PACKAGE_ID_NAME] = priv->package_id_data;
#  192|   	for (i = 0; priv->package_id_data[i] != '\0'; i++) {
#  193|-> 		if (package_id[i] == ';') {
#  194|   			if (++cnt > 3)
#  195|   				continue;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def22]
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.h:49:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘package’
PackageKit-1.3.1/lib/packagekit-glib2/pk-package-sack.c:293:19: throw: if ‘pk_package_new’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-package-sack.c:290:30: call_function: inlined call to ‘glib_autoptr_cleanup_PkPackage’ from ‘pk_package_sack_add_packages_from_line’
#   47|   
#   48|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   49|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkPackage, g_object_unref)
#   50|   #endif
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.h:49:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pk_package’
PackageKit-1.3.1/backends/dnf/dnf-backend.c:52:1: enter_function: entry to ‘dnf_emit_package_list’
PackageKit-1.3.1/backends/dnf/dnf-backend.c:58:27: branch_true: following ‘true’ branch...
PackageKit-1.3.1/backends/dnf/dnf-backend.c:64:35: branch_true: ...to here
PackageKit-1.3.1/backends/dnf/dnf-backend.c:67:30: throw: if ‘dnf_package_get_package_id’ throws an exception...
PackageKit-1.3.1/backends/dnf/dnf-backend.c:64:35: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘dnf_emit_package_list’
PackageKit-1.3.1/backends/dnf/dnf-backend.c:60:38: call_function: inlined call to ‘glib_autoptr_cleanup_PkPackage’ from ‘dnf_emit_package_list’
#   47|   
#   48|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   49|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkPackage, g_object_unref)
#   50|   #endif
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
PackageKit-1.3.1/lib/packagekit-glib2/pk-package.h:49:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pkg’
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:667:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:676:16: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:681:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:691:19: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:694:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:713:17: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:727:12: branch_true: following ‘true’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:728:31: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:729:29: branch_true: following ‘true’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:731:31: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:731:31: throw: if ‘pk_package_new’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:730:46: call_function: inlined call to ‘glib_autoptr_cleanup_PkPackage’ from ‘pk_offline_get_results’
#   47|   
#   48|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   49|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkPackage, g_object_unref)
#   50|   #endif
#   51|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
PackageKit-1.3.1/lib/packagekit-glib2/pk-progress-bar.h:50:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘progressbar’
PackageKit-1.3.1/client/pk-offline-update.c:473:17: throw: if ‘g_print’ throws an exception...
PackageKit-1.3.1/client/pk-offline-update.c:462:34: call_function: inlined call to ‘glib_autoptr_cleanup_PkProgressBar’ from ‘main’
#   48|   
#   49|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   50|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkProgressBar, g_object_unref)
#   51|   #endif
#   52|   

Error: COMPILER_WARNING (CWE-9001): [#def26]
PackageKit-1.3.1/lib/packagekit-glib2/pk-progress.c:157:1: warning[-Winline]: inlining failed in call to ‘pk_progress_invoke_callback’: call is unlikely and code size would grow
#  157 | pk_progress_invoke_callback (PkProgress *progress, PkProgressType type)
#      | ^
lto1: note: called from here
#  155|   
#  156|   static inline void
#  157|-> pk_progress_invoke_callback (PkProgress *progress, PkProgressType type)
#  158|   {
#  159|   	PkProgressPrivate *priv = pk_progress_get_instance_private (progress);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def27]
PackageKit-1.3.1/lib/packagekit-glib2/pk-results.h:61:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘results’
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:667:14: throw: if ‘g_file_test’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-offline.c:661:30: call_function: inlined call to ‘glib_autoptr_cleanup_PkResults’ from ‘pk_offline_get_results’
#   59|   
#   60|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   61|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkResults, g_object_unref)
#   62|   #endif
#   63|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:99:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
#   97|   		 * not delay this indefinitely by because we
#   98|   		 * keep an unused copy of stdin around. */
#   99|-> 		fd = open("/dev/tty", O_WRONLY);
#  100|   		if (fd < 0) {
#  101|   			g_error ("Failed to open /dev/tty: %m");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:101:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
#   99|   		fd = open("/dev/tty", O_WRONLY);
#  100|   		if (fd < 0) {
#  101|-> 			g_error ("Failed to open /dev/tty: %m");
#  102|   			_exit(EXIT_FAILURE);
#  103|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:111:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 1)’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:57:9: branch_true: following ‘true’ branch (when ‘pid’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:58:9: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:58:9: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:60:22: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:66:12: branch_false: following ‘false’ branch (when ‘n_agent_pid >= 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:69:12: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:69:12: branch_false: following ‘false’ branch (when ‘n_agent_pid == 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:78:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:78:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:83:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:83:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:88:25: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:91:12: branch_true: following ‘true’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:99:22: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:99:22: acquire_resource: opened here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:100:20: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:105:20: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:105:20: branch_true: following ‘true’ branch (when ‘stdout_is_tty == 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:106:25: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:108:20: branch_false: following ‘false’ branch (when ‘stderr_is_tty != 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:111:20: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:111:20: danger: ‘open("/dev/tty", 1)’ leaks here; was opened at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
#  109|   			dup2(fd, STDERR_FILENO);
#  110|   
#  111|-> 		if (fd > 2)
#  112|   			close(fd);
#  113|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:112:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 1)’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:57:9: branch_true: following ‘true’ branch (when ‘pid’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:58:9: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:58:9: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:60:22: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:66:12: branch_false: following ‘false’ branch (when ‘n_agent_pid >= 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:69:12: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:69:12: branch_false: following ‘false’ branch (when ‘n_agent_pid == 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:78:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:78:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:83:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:83:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:88:25: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:91:12: branch_true: following ‘true’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:99:22: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:99:22: acquire_resource: opened here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:100:20: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:105:20: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:105:20: branch_true: following ‘true’ branch (when ‘stdout_is_tty == 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:106:25: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:108:20: branch_false: following ‘false’ branch (when ‘stderr_is_tty != 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:111:20: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:111:20: branch_true: following ‘true’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:112:25: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:112:25: danger: ‘open("/dev/tty", 1)’ leaks here; was opened at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  110|   
#  111|   		if (fd > 2)
#  112|-> 			close(fd);
#  113|   	}
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:112:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
#  110|   
#  111|   		if (fd > 2)
#  112|-> 			close(fd);
#  113|   	}
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:136:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: return_function: returning to ‘pk_polkit_agent_open’ from ‘fork_agent’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:220:9: call_function: calling ‘close_nointr_nofail’ from ‘pk_polkit_agent_open’
#  134|   static int
#  135|   close_nointr (int fd) {
#  136|->         g_assert (fd >= 0);
#  137|   
#  138|           for (;;) {

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def34]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:141:21: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:136:9: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:136:9: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:141:21: release_resource: first ‘close’ here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:142:20: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:145:21: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:145:20: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:145:20: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:141:21: danger: second ‘close’ here; first ‘close’ was at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  139|                   int r;
#  140|   
#  141|->                 r = close (fd);
#  142|                   if (r >= 0)
#  143|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:141:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: return_function: returning to ‘pk_polkit_agent_open’ from ‘fork_agent’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:220:9: call_function: calling ‘close_nointr_nofail’ from ‘pk_polkit_agent_open’
#  139|                   int r;
#  140|   
#  141|->                 r = close (fd);
#  142|                   if (r >= 0)
#  143|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:156:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: return_function: returning to ‘pk_polkit_agent_open’ from ‘fork_agent’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:220:9: call_function: calling ‘close_nointr_nofail’ from ‘pk_polkit_agent_open’
#  154|   	/* cannot fail, and guarantees errno is unchanged */
#  155|   
#  156|-> 	g_assert (close_nointr (fd) == 0);
#  157|   
#  158|   	errno = saved_errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:170:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: return_function: returning to ‘pk_polkit_agent_open’ from ‘fork_agent’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:220:9: call_function: calling ‘close_nointr_nofail’ from ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:220:9: return_function: returning to ‘pk_polkit_agent_open’ from ‘close_nointr_nofail’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:222:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:226:17: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:226:17: call_function: calling ‘fd_wait_for_event’ from ‘pk_polkit_agent_open’
#  168|   	pollfd.events = event;
#  169|   
#  170|-> 	r = poll(&pollfd, 1, t == (uint64_t) -1 ? -1 : (int) (t / 1000));
#  171|   	if (r < 0)
#  172|   		return -errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:223:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fd[0]’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:196:1: enter_function: entry to ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:201:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:14: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:206:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:13: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:209:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:212:9: branch_false: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: call_function: calling ‘fork_agent’ from ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:215:13: return_function: returning to ‘pk_polkit_agent_open’ from ‘fork_agent’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:220:9: call_function: calling ‘close_nointr_nofail’ from ‘pk_polkit_agent_open’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:220:9: return_function: returning to ‘pk_polkit_agent_open’ from ‘close_nointr_nofail’
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:222:12: branch_true: following ‘true’ branch...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:223:17: branch_true: ...to here
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:223:17: throw: if ‘g_log’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-spawn-polkit-agent.c:223:17: danger: ‘pipe_fd[0]’ leaks here
#  221|   
#  222|   	if (r < 0)
#  223|-> 		g_warning ("Failed to fork TTY ask password agent: %s", strerror (-r));
#  224|   	else
#  225|   		/* Wait until the agent closes the fd */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
PackageKit-1.3.1/lib/packagekit-glib2/pk-task.h:51:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘task’
PackageKit-1.3.1/client/pk-offline-update.c:471:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-offline-update.c:480:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-offline-update.c:485:13: branch_false: ...to here
PackageKit-1.3.1/client/pk-offline-update.c:514:9: throw: if ‘pk_client_set_interactive’ throws an exception...
PackageKit-1.3.1/client/pk-offline-update.c:463:27: call_function: inlined call to ‘glib_autoptr_cleanup_PkTask’ from ‘main’
#   49|   
#   50|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   51|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkTask, g_object_unref)
#   52|   #endif
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def40]
PackageKit-1.3.1/lib/packagekit-glib2/pk-transaction-list.h:45:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tlist’
PackageKit-1.3.1/client/pk-monitor.c:314:1: enter_function: entry to ‘main’
PackageKit-1.3.1/client/pk-monitor.c:347:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-monitor.c:353:20: branch_false: ...to here
PackageKit-1.3.1/client/pk-monitor.c:354:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/client/pk-monitor.c:359:21: branch_false: ...to here
PackageKit-1.3.1/client/pk-monitor.c:325:31: call_function: inlined call to ‘glib_autoptr_cleanup_GDBusProxy’ from ‘main’
PackageKit-1.3.1/client/pk-monitor.c:324:36: call_function: inlined call to ‘glib_autoptr_cleanup_GDBusConnection’ from ‘main’
PackageKit-1.3.1/client/pk-monitor.c:323:38: call_function: inlined call to ‘glib_autoptr_cleanup_PkTransactionList’ from ‘main’
#   43|   
#   44|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   45|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkTransactionList, g_object_unref)
#   46|   #endif
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
PackageKit-1.3.1/lib/packagekit-glib2/pk-update-detail.h:48:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘item’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1098:1: enter_function: entry to ‘results_add_update_detail_from_variant’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1113:9: throw: if ‘g_variant_get’ throws an exception...
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1109:28: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘results_add_update_detail_from_variant’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1108:28: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘results_add_update_detail_from_variant’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1107:28: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘results_add_update_detail_from_variant’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1106:28: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘results_add_update_detail_from_variant’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1105:28: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘results_add_update_detail_from_variant’
PackageKit-1.3.1/lib/packagekit-glib2/pk-client.c:1103:35: call_function: inlined call to ‘glib_autoptr_cleanup_PkUpdateDetail’ from ‘results_add_update_detail_from_variant’
#   46|   
#   47|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   48|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkUpdateDetail, g_object_unref)
#   49|   #endif
#   50|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:68:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:81:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:81:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:93:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:93:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:99:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:99:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:102:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:102:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:704:20: call_function: calling ‘read_line’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-404): [#def62]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:120:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:599:1: enter_function: entry to ‘dump_error_quark’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:601:3: call_function: calling ‘escaped_printf’ from ‘dump_error_quark’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:138:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:138:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’

Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_true: following ‘true’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:685:25: branch_true: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/199/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_true: following ‘true’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:685:25: branch_true: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:7: throw: if ‘g_file_error_quark’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:7: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/200/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_true: following ‘true’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:685:25: branch_true: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/203/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_true: following ‘true’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:685:25: branch_true: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:41: throw: if ‘g_file_error_from_errno’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:686:41: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/204/codeFlows/0/threadFlows/0/locations/4)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was opened at [(6)](sarif:/runs/0/results/205/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_resource: opened here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was opened at [(8)](sarif:/runs/0/results/206/codeFlows/0/threadFlows/0/locations/7)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: danger: ‘fopen(input_filename, "rb")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/207/codeFlows/0/threadFlows/0/locations/5)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wb")’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:630:1: enter_function: entry to ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:645:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:654:15: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:658:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:669:11: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:670:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:682:12: acquire_memory: allocated here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:683:6: branch_false: following ‘false’ branch...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: branch_false: ...to here
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:696:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: call_function: calling ‘goutput_write’ from ‘dump_irepository’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:697:3: return_function: returning to ‘dump_irepository’ from ‘goutput_write’
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: throw: if ‘g_hash_table_new’ throws an exception...
PackageKit-1.3.1/redhat-linux-build/tmp-introspect9q2nvux0/PackageKitGlib-1.0.c:699:18: danger: ‘fopen(output_filename, "wb")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/208/codeFlows/0/threadFlows/0/locations/7)

Error: COMPILER_WARNING: [#def75]
PackageKit-1.3.1/src/pk-backend-spawn.c: scope_hint: In function ‘pk_backend_spawn_va_list_to_argv’
PackageKit-1.3.1/src/pk-backend-spawn.c:809:15: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
#  809 |         guint i;
#      |               ^
#  807|   	GPtrArray *ptr_array;
#  808|   	gchar *value_temp;
#  809|-> 	guint i;
#  810|   
#  811|   	g_return_val_if_fail (args != NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
PackageKit-1.3.1/src/pk-engine.c:1352:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
PackageKit-1.3.1/src/pk-engine.c:1298:1: enter_function: entry to ‘pk_engine_daemon_method_call’
PackageKit-1.3.1/src/pk-engine.c:1313:27: release_memory: ‘error’ is NULL
PackageKit-1.3.1/src/pk-engine.c:1317:9: branch_false: following ‘false’ branch (when ‘user_data’ is non-NULL)...
PackageKit-1.3.1/src/pk-engine.c:1317:9: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1318:9: branch_true: following ‘true’ branch...
PackageKit-1.3.1/src/pk-engine.c:1321:9: call_function: inlined call to ‘pk_engine_reset_timer’ from ‘pk_engine_daemon_method_call’
PackageKit-1.3.1/src/pk-engine.c:1323:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1332:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1332:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1339:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-engine.c:1339:12: branch_true: following ‘true’ branch...
PackageKit-1.3.1/src/pk-engine.c:1340:36: branch_true: ...to here
PackageKit-1.3.1/src/pk-engine.c:1343:20: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-engine.c:1350:25: call_function: calling ‘pk_engine_get_package_history’ from ‘pk_engine_daemon_method_call’
PackageKit-1.3.1/src/pk-engine.c:1350:25: return_function: returning to ‘pk_engine_daemon_method_call’ from ‘pk_engine_get_package_history’
PackageKit-1.3.1/src/pk-engine.c:1351:20: branch_true: following ‘true’ branch...
PackageKit-1.3.1/src/pk-engine.c:1357:69: branch_true: ...to here
PackageKit-1.3.1/src/pk-engine.c:1357:69: release_memory: ‘error’ is NULL
PackageKit-1.3.1/src/pk-engine.c:1352:25: danger: dereference of NULL ‘error’
# 1350|   		value = pk_engine_get_package_history (engine, package_names, size, &error);
# 1351|   		if (value == NULL) {
# 1352|-> 			g_dbus_method_invocation_return_error (invocation,
# 1353|   							       PK_ENGINE_ERROR,
# 1354|   							       PK_ENGINE_ERROR_NOT_SUPPORTED,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def77]
PackageKit-1.3.1/src/pk-engine.h:56:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘engine’
PackageKit-1.3.1/src/pk-main.c:152:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-main.c:160:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-main.c:167:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-main.c:171:15: branch_false: ...to here
PackageKit-1.3.1/src/pk-main.c:173:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-main.c:179:9: branch_false: ...to here
PackageKit-1.3.1/src/pk-main.c:225:9: throw: if ‘g_signal_connect_data’ throws an exception...
PackageKit-1.3.1/src/pk-main.c:112:29: call_function: inlined call to ‘glib_autoptr_cleanup_PkEngine’ from ‘main’
#   54|   
#   55|   #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
#   56|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkEngine, g_object_unref)
#   57|   #endif
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def78]
PackageKit-1.3.1/src/pk-main.c:275:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘helper.timer_id’
PackageKit-1.3.1/src/pk-main.c:152:12: branch_false: following ‘false’ branch...
PackageKit-1.3.1/src/pk-main.c:160:13: branch_false: ...to here
PackageKit-1.3.1/src/pk-main.c:167:12: branch_true: following ‘true’ branch...
PackageKit-1.3.1/src/pk-main.c:168:17: branch_true: ...to here
PackageKit-1.3.1/src/pk-main.c:275:13: danger: use of uninitialized value ‘helper.timer_id’ here
#  273|   #endif
#  274|   
#  275|-> 	if (helper.timer_id > 0)
#  276|   		g_source_remove (helper.timer_id);
#  277|   	if (loop != NULL)

Error: COMPILER_WARNING: [#def79]
PackageKit-1.3.1/src/pk-scheduler.c:858:15: warning[-Wunused-but-set-variable=]: variable ‘running’ set but not used
#  858 |         guint running = 0;
#      |               ^~~~~~~
#  856|   	guint i;
#  857|   	guint length;
#  858|-> 	guint running = 0;
#  859|   	guint waiting = 0;
#  860|   	guint no_commit = 0;

Error: COMPILER_WARNING: [#def80]
PackageKit-1.3.1/src/pk-scheduler.c: scope_hint: In function ‘pk_scheduler_get_state’
PackageKit-1.3.1/src/pk-scheduler.c:860:15: warning[-Wunused-but-set-variable=]: variable ‘no_commit’ set but not used
#  860 |         guint no_commit = 0;
#      |               ^~~~~~~~~
#  858|   	guint running = 0;
#  859|   	guint waiting = 0;
#  860|-> 	guint no_commit = 0;
#  861|   	PkRoleEnum role;
#  862|   	PkSchedulerItem *item;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def81]
PackageKit-1.3.1/src/pk-transaction.c:335:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
PackageKit-1.3.1/src/pk-transaction.c:2397:1: enter_function: entry to ‘pk_transaction_vanished_cb’
PackageKit-1.3.1/src/pk-transaction.c:2408:9: call_function: inlined call to ‘pk_transaction_emit_property_changed’ from ‘pk_transaction_vanished_cb’
#  333|   	     property_name != NULL;
#  334|   	     property_name = va_arg (args, const gchar *), property_value = (property_name != NULL) ? va_arg (args, GVariant *) : NULL) {
#  335|-> 		g_variant_builder_add (&builder,
#  336|   				       "{sv}",
#  337|   				       property_name,

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-132.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namePackageKit-1.3.1-6.fc43
store-results-to/tmp/tmplfy2_pg9/PackageKit-1.3.1-6.fc43.tar.xz
time-created2026-01-08 13:22:51
time-finished2026-01-08 13:26:27
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmplfy2_pg9/PackageKit-1.3.1-6.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmplfy2_pg9/PackageKit-1.3.1-6.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9