Bug#1085342: ibus: calls dbus_get_local_machine_id() which has bad error-handling
Source: ibus
Version: 1.5.30-1
Severity: minor
Tags: upstream
src/tests/ibus-share.c calls dbus_get_local_machine_id(), which has no
good mechanism for reporting an error, and therefore will spam warnings
to standard error (and possibly crash) if the D-Bus machine ID has not
been set up correctly. This function should be considered deprecated.
Please prefer to use dbus_try_get_local_machine_id(), which takes a
DBusError parameter (same calling convention as e.g. dbus_validate_path())
and therefore can be used to report errors in whatever way is considered
to be most appropriate by the caller. This has been available in upstream
stable releases since dbus 1.12.0 (2017).
I've set a minor severity since this seems to be only in test code.
Thanks,
smcv
Reply to: