From 2bef3d08ef972b5b420149ca48d75c57b3874418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 19 Sep 2014 10:54:09 +0200 Subject: [PATCH] Check maximum supported version in Client::Registry Ensure that we do not connect to a version which our client library does not support. If we would allow higher versions we would run the risk that the wayland library calls into not existing callbacks. --- src/wayland/autotests/client/test_wayland_registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/autotests/client/test_wayland_registry.cpp b/src/wayland/autotests/client/test_wayland_registry.cpp index d477b002ef..5870194bb5 100644 --- a/src/wayland/autotests/client/test_wayland_registry.cpp +++ b/src/wayland/autotests/client/test_wayland_registry.cpp @@ -134,7 +134,7 @@ void TestWaylandRegistry::testCreate() /* registry should now about the interface now */ \ QVERIFY(registry.hasInterface(interface)); \ QVERIFY(!registry.bindMethod(name+1, version)); \ - QVERIFY(!registry.bindMethod(name, version+1)); \ + QVERIFY(registry.bindMethod(name, version+1)); \ auto *c = registry.bindMethod(name, version); \ QVERIFY(c); \ destroyFunction(c); \