Description: a11y atspi: Don't crash when using DBus Properties GetAll
 GetAll only takes one argument, so reading the second one accesses the
 arguments list out of bounds and the application segfaults when an
 AT-SPI client calls org.freedesktop.DBus.Properties.GetAll.
Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=4316e9a67ff7993bd3e097f660c4fdc516d5a125
Bug: https://bugreports.qt.io/browse/QTBUG-137344
Author: Nicolas Fella <nicolas.fella@kde.org>
Last-Update: 2026-11-10

diff --git a/src/platformsupport/linuxaccessibility/atspiadaptor.cpp b/src/platformsupport/linuxaccessibility/atspiadaptor.cpp
index d30ed5b6dc..2b1b493b1d 100644
--- a/src/platformsupport/linuxaccessibility/atspiadaptor.cpp
+++ b/src/platformsupport/linuxaccessibility/atspiadaptor.cpp
@@ -1291,9 +1291,12 @@ bool AtSpiAdaptor::handleMessage(const QDBusMessage &message, const QDBusConnect
 
     // handle properties like regular functions
     if (interface == QLatin1String("org.freedesktop.DBus.Properties")) {
-        interface = message.arguments().at(0).toString();
-        // Get/Set + Name
-        function = message.member() + message.arguments().at(1).toString();
+        const auto arguments = message.arguments();
+        if (arguments.size() > 0) {
+            interface = arguments.at(0).toString();
+            if (arguments.size() > 1) // e.g. Get/Set + Name
+                function = function + arguments.at(1).toString();
+        }
     }
 
     // switch interface to call
