From 98cabb9ce5fc1a7e9ed3808b60f8b2c73d2d91ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Artur=20=C5=9Awigo=C5=84?= Date: Fri, 24 Feb 2023 09:49:55 +0100 Subject: [PATCH] Null-check dbus_message_get_path() result Change-Id: I0abcb6981030269af20b796e4cf68bec055328c7 --- atspi/atspi-device-listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atspi/atspi-device-listener.c b/atspi/atspi-device-listener.c index 9776ebd..f09ff41 100644 --- a/atspi/atspi-device-listener.c +++ b/atspi/atspi-device-listener.c @@ -357,7 +357,7 @@ _atspi_dbus_handle_DeviceEvent (DBusConnection *bus, DBusMessage *message, void goto done; } - if (sscanf (path, "/org/a11y/atspi/listeners/%d", &id) != 1) + if (!path || sscanf (path, "/org/a11y/atspi/listeners/%d", &id) != 1) { g_warning ("AT-SPI: Bad listener path: %s\n", path); goto done; -- 2.7.4