[PATCH xserver] xwayland: Fix use after free of cursors

2016-11-30 Thread Olivier Fourdan
Sometimes, Xwayland will try to use a cursor that has just been freed, leading to a crash when trying to access that cursor data either in miPointerUpdateSprite() or AnimCurTimerNotify(). CheckMotion() updates the pointer's cursor based on which xwindow XYToWindow() returns, and Xwayland

Re: [PATCH xserver] xwayland: Fix use after free of cursors

2016-11-18 Thread Olivier Fourdan
> Sometimes, Xwayland will try to use a cursor that has just been freed, > leading to a crash when trying to access that cursor data either in > miPointerUpdateSprite() or elsewhere. > [...] Right, I think I have to withdraw this patch, because it probably doesn't fix the issue... I still

[PATCH xserver] xwayland: Fix use after free of cursors

2016-11-15 Thread Olivier Fourdan
Sometimes, Xwayland will try to use a cursor that has just been freed, leading to a crash when trying to access that cursor data either in miPointerUpdateSprite() or elsewhere. This issue is very random and hard to reproduce. Typical backtraces include: miPointerUpdateSprite () at mipointer.c