Bug 763778 - Segfault when org.freedesktop.fwupd service doesn't exist
Segfault when org.freedesktop.fwupd service doesn't exist
Status: RESOLVED OBSOLETE
Product: gnome-software
Classification: Applications
Component: General
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2016-03-16 19:07 UTC by William Hua
Modified: 2016-08-15 08:23 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set error when org.freedesktop.fwupd has no service (960 bytes, patch)
2016-03-16 19:07 UTC, William Hua
none Details | Diff | Review
Set error when org.freedesktop.fwupd has no service (968 bytes, patch)
2016-03-24 18:44 UTC, William Hua
none Details | Diff | Review

Description William Hua 2016-03-16 19:07:48 UTC
Created attachment 324133 [details] [review]
Set error when org.freedesktop.fwupd has no service

In the fwupd plugin, gs_plugin_add_updates() can return FALSE (when org.freedesktop.fwupd service doesn't exist) without setting the error, causing a segfault. The fix is to steal the error_local and set error manually.
Comment 1 William Hua 2016-03-24 18:44:33 UTC
Created attachment 324718 [details] [review]
Set error when org.freedesktop.fwupd has no service
Comment 2 Richard Hughes 2016-08-15 08:23:12 UTC
I think we've got new code in 3.22 for some time.

Note You need to log in before you can comment on or make changes to this bug.