D6741: [client] Properly track enteredSurface in Keyboard
Martin Flöser
noreply at phabricator.kde.org
Sun Jul 16 18:25:16 UTC 2017
graesslin created this revision.
Restricted Application added projects: Plasma on Wayland, Frameworks.
Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY
ASAN found a heap-use-after-free when deleting the focused keyboard
surface in the client library. Keyboard did not track the lifetime of
the focused surface and thus one can access already freed memory.
TEST PLAN
Adjusted auto test to verify the variable gets cleared
REPOSITORY
R127 KWayland
BRANCH
keyboard-entered-surface-cleanup
REVISION DETAIL
https://phabricator.kde.org/D6741
AFFECTED FILES
autotests/client/test_wayland_seat.cpp
src/client/keyboard.cpp
To: graesslin, #frameworks, #plasma
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, eliasp, sebas, apol, mart, hein, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170716/d0308b09/attachment.html>
More information about the Plasma-devel
mailing list