My KWIN fork where I work on features like per-output virtual desktops
Find a file
Martin Gräßlin 49d57b342c [client] Fix nullptr dereference in ConfinedPointer and LockedPointer
The setRegion call allows a null region. This means nullptr is an
allowed value which can be passed to ConfinedPointer::setRegion and
LockedPointer::setRegion.

In that case we crash if we try to convert the Region into a wl_region.
Thus add proper nullptr check, just like in
PointerConstraints::lockPointer and ::confinePointer.

Auto test adjusted to cover the condition.
2016-11-25 13:14:14 +01:00
src/wayland [client] Fix nullptr dereference in ConfinedPointer and LockedPointer 2016-11-25 13:14:14 +01:00