• spiiroin's avatar
    [dbus] Deal with NULL strings on D-Bus signal broadcast attempts · fdc32b06
    spiiroin authored
    Corrupted settings, empty lists and other hiccups can lead to usb-moded
    attempting to send D-Bus signal with NULL strings - which either leads
    to omitting signal sending when checked / crashing when not checked.
    
    To avoid crashing, make umdbus_send_signal_ex() send empty string when
    signal with null content is given, and add sufficient checks / diagnostic
    logging to umdbus_send_config_signal().
    
    Remove null checks from common_send_hidden_modes_signal() and
    common_send_whitelisted_modes_signal() so that NULL set gets equated
    with empty set and signal broadcasting is never skipped.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    fdc32b06
Name
Last commit
Last update
..
Makefile.am Loading commit data...
com.meego.usb_moded.xml Loading commit data...
usb_moded-android.c Loading commit data...
usb_moded-android.h Loading commit data...
usb_moded-appsync-dbus-private.h Loading commit data...
usb_moded-appsync-dbus.c Loading commit data...
usb_moded-appsync-dbus.h Loading commit data...
usb_moded-appsync.c Loading commit data...
usb_moded-appsync.h Loading commit data...
usb_moded-common.c Loading commit data...
usb_moded-common.h Loading commit data...
usb_moded-config-private.h Loading commit data...
usb_moded-config.c Loading commit data...
usb_moded-config.h Loading commit data...
usb_moded-configfs.c Loading commit data...
usb_moded-configfs.h Loading commit data...
usb_moded-control.c Loading commit data...
usb_moded-control.h Loading commit data...
usb_moded-dbus-private.h Loading commit data...
usb_moded-dbus.c Loading commit data...
usb_moded-dbus.h Loading commit data...
usb_moded-devicelock.c Loading commit data...
usb_moded-devicelock.h Loading commit data...
usb_moded-dsme.c Loading commit data...
usb_moded-dsme.h Loading commit data...
usb_moded-dyn-config.c Loading commit data...
usb_moded-dyn-config.h Loading commit data...
usb_moded-log.c Loading commit data...
usb_moded-log.h Loading commit data...
usb_moded-mac.c Loading commit data...
usb_moded-mac.h Loading commit data...
usb_moded-modes.h Loading commit data...
usb_moded-modesetting.c Loading commit data...
usb_moded-modesetting.h Loading commit data...
usb_moded-modules.c Loading commit data...
usb_moded-modules.h Loading commit data...
usb_moded-network.c Loading commit data...
usb_moded-network.h Loading commit data...
usb_moded-sigpipe.c Loading commit data...
usb_moded-sigpipe.h Loading commit data...
usb_moded-ssu.c Loading commit data...
usb_moded-ssu.h Loading commit data...
usb_moded-systemd.c Loading commit data...
usb_moded-systemd.h Loading commit data...
usb_moded-trigger.c Loading commit data...
usb_moded-trigger.h Loading commit data...
usb_moded-udev.c Loading commit data...
usb_moded-udev.h Loading commit data...
usb_moded-util.c Loading commit data...
usb_moded-worker.c Loading commit data...
usb_moded-worker.h Loading commit data...
usb_moded.c Loading commit data...
usb_moded.h Loading commit data...