[PATCH] mfplat/tests: Avoid crash by async cancel callback in linux.

Nikolay Sivov nsivov at codeweavers.com
Sun Dec 12 11:33:29 CST 2021



On 12/12/21 18:50, Bernhard Übelacker wrote:
> Signed-off-by: Bernhard Übelacker <bernhardu at mailbox.org>
> ---
> The cancel in test_scheduled_items puts a work item to the
> queue by invoke_async_callback.
> But when this work item is processed the function test_scheduled_items
> is possibly already left, and the stack memory overwritten by
> the next test.
Thank you for working on this.

I think it's better to make "struct test_callback*" heap-allocated 
instead, for all tests, not just for scheduled items.



More information about the wine-devel mailing list