Re: [Live-devel] [PATCH] fix remaining use-after-free resulting from unscheduleDelayedTask

2020-01-09 Thread Ross Finlayson
> On Jan 9, 2020, at 3:36 AM, Helmut Grohne wrote: […] > Accordingly, we update all task handler functions to clear their > corresponding TaskToken once they are run. A subsequent call to > unscheduleDelayedTask will harmlessly unschedule the NULL token. > > Note that clearing a token after uns

[Live-devel] [PATCH] fix remaining use-after-free resulting from unscheduleDelayedTask

2020-01-09 Thread Helmut Grohne
When scheduling a delayed task, one receives a TaskToken. This token can be used lateron for cancelling the task. Or the task could be run in the interim and the token could be reissued for a different task. If the task is unscheduled at this point, this consitutues a use-after-free scenario. Accor