ozone/wayland: dnd: Fix UAF crashes when the entered window is destroyed
The case where the entered surface in a drag session (through wl_data_device::enter event) is suddenly destroyed at client-side, was not being properly handled, causing use-after-free crashes. This fixes it as well as adds a unit test to prevent future similar regressions. Bug: 1143707 Test: ozone_unittest --gtest_filter='*WaylandDataDragControllerTest.*' Change-Id: I0fb0b7abbc257398c3a114f1c2d438ecc8d9adf5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593572 Commit-Queue: Nick Yamane <nickdiego@igalia.com> Reviewed-by:Maksim Sisov <msisov@igalia.com> Reviewed-by:
Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#840688}
Showing
Please register or sign in to comment