Skip to content

fwupd: Avoid crash due to NULL dereference when applying update

Milan Crha requested to merge wip/fwupd-crash-on-update into main

The call to gs_plugin_fwupd_install_async() dereferences the app_data, but it also calls g_steal_pointer (&app_data) and even it's the last argument of the call, it's execute before the dereference of the app_data and causes the variable to be NULL, thus the app crashes.


There can be more similar places, this is the one I faced while testing other things.

Merge request reports