GNOME Bugzilla – Bug 785817
gio: Fix crash in open URI portal when no callback is provided
Last modified: 2017-08-07 16:08:42 UTC
Needs review from whoever wrote the open URI portal code, since the changes are not 100% obvious.
Created attachment 356954 [details] [review] gio: Fix crash in open URI portal when no callback is provided If no callback is provided, token is never set, but it’s then passed to g_variant_new_string(), which requires a non-NULL input. Fix that by moving all the option handling inside the (callback != NULL) case. Spotted by Coverity (CID #1378714). Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 356954 [details] [review]: this looks right to me
Attachment 356954 [details] pushed as 05abc6c - gio: Fix crash in open URI portal when no callback is provided