• 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
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...