Matthew Leeds
20c9d8477d
app: Fix a use-after-free in flatpak_find_installed_pref()
...
Currently "flatpak --installation=default info ..." leads to an
assertion failure:
$ flatpak --installation=default info us.zoom.Zoom
(flatpak info:24593): GLib-GObject-CRITICAL **: 10:01:36.040: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
This is because in flatpak_find_installed_pref(), we set "dir =
installation_dir" but then installation_dir is freed by g_autoptr before
we try to return dir.
Fix the problem by stealing the pointer, and doing the same for the
other places dir is set.
Closes : #3077
Approved by: alexlarsson
2019-09-09 10:01:15 +00:00
..
2019-09-06 12:49:40 +00:00
2019-05-28 12:46:13 +00:00
2019-05-09 09:12:26 +00:00
2019-02-25 18:12:30 +00:00
2019-09-06 12:49:40 +00:00
2019-06-12 06:23:07 +00:00
2019-05-09 09:12:26 +00:00
2019-08-16 09:13:43 +00:00
2019-04-12 08:59:35 +00:00
2019-01-14 11:10:17 +00:00
2019-04-24 13:28:21 +00:00
2018-05-24 11:59:52 +00:00
2018-05-24 11:59:52 +00:00
2019-04-23 13:05:14 +00:00
2018-05-24 11:59:52 +00:00
2019-05-01 16:39:18 +00:00
2019-04-23 13:05:14 +00:00
2019-02-25 18:12:30 +00:00
2019-05-30 12:12:12 +00:00
2019-02-25 18:12:30 +00:00
2019-04-24 13:31:35 +00:00
2019-01-14 11:10:17 +00:00
2019-02-25 18:12:30 +00:00
2018-09-25 12:17:16 +00:00
2018-09-25 12:17:16 +00:00
2019-04-23 07:54:06 +00:00
2018-09-25 12:17:16 +00:00
2019-04-23 13:05:14 +00:00
2019-05-08 08:13:52 +00:00
2019-06-12 07:07:30 +00:00
2019-05-13 10:57:11 +00:00
2019-05-06 13:58:58 +00:00
2019-04-26 08:00:27 +00:00
2019-05-06 13:58:58 +00:00
2019-02-25 18:12:30 +00:00
2019-05-09 09:12:26 +00:00
2019-03-30 13:02:10 +00:00
2019-04-24 13:31:35 +00:00
2019-05-30 12:12:12 +00:00
2019-05-30 12:12:12 +00:00
2019-09-09 10:01:15 +00:00
2019-04-26 08:00:27 +00:00
2019-04-08 12:50:42 +00:00
2019-09-09 10:01:15 +00:00
2019-05-30 12:12:12 +00:00
2019-02-25 18:12:30 +00:00
2019-01-11 14:00:59 +00:00
2019-09-09 10:01:15 +00:00
2019-01-11 22:34:24 +00:00
2018-12-06 15:01:14 +00:00
2019-04-25 10:01:14 +00:00
2019-02-25 18:12:30 +00:00
2019-06-07 03:48:33 +00:00
2019-04-23 13:05:14 +00:00
2019-08-16 09:13:43 +00:00
2018-07-08 10:05:37 +00:00
2018-04-04 15:08:49 +00:00