Re: [PATCH wayland] tests: Test for use after free in resource destruction signals

2018-02-22 Thread Pekka Paalanen
On Wed, 21 Feb 2018 13:08:51 -0600 Derek Foreman wrote: > For years it's been common practice to free the object containing > the wl_listner inside resource destruction notifiers, but not > remove the listener from the list. > > That is: It's been safe to assume that the wl_listener will never b

[PATCH wayland] tests: Test for use after free in resource destruction signals

2018-02-21 Thread Derek Foreman
For years it's been common practice to free the object containing the wl_listner inside resource destruction notifiers, but not remove the listener from the list. That is: It's been safe to assume that the wl_listener will never be touched again, since this is a destruction callback. Recently som