mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-03 20:40:27 +01:00
Passing a NULL UpClient to up_client_get_devices2() led to the following error message and crash since up_client_get_devices_full() returned immediately, without properly setting up a GError with an error message. The input UpClient pointer verification was moved from the internal function to the API entry to ensure only a valid UpClient is passed to the internal function. Moreover, GError will be properly set by the GLib dbus APIs and the internal function. (upower:21076): libupower-glib-CRITICAL **: 16:33:53.919: up_client_get_devices_full: assertion 'UP_IS_CLIENT (client)' failed Segmentation fault (core dumped) ./upower -d Related: https://gitlab.freedesktop.org/upower/upower/-/merge_requests/296 Reported-by: Mathias Krause <minipli@grsecurity.net> Signed-off-by: Kate Hsuan <hpa@redhat.com> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| up-autocleanups.h | ||
| up-client.c | ||
| up-client.h | ||
| up-device.c | ||
| up-device.h | ||
| up-history-item.c | ||
| up-history-item.h | ||
| up-stats-item.c | ||
| up-stats-item.h | ||
| up-types.c | ||
| up-types.h | ||
| up-version.h.in | ||
| upower.h | ||