From 47e20e1ae6d5ff3d32d30190043e2bb25dddd830 Mon Sep 17 00:00:00 2001 From: darktux Date: Thu, 11 Apr 2024 18:37:31 +0200 Subject: [PATCH] Fixed potential null-dereference in Fiber::DestroyThreadFiber() --- src/common/fiber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index b9c87686cf..aa0d5e4d92 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp @@ -73,7 +73,7 @@ void Fiber::DestroyWorkFiber() { } void Fiber::DestroyThreadFiber() { - if (*impl->next_fiber_ptr) { + if (impl->next_fiber_ptr && *impl->next_fiber_ptr) { *impl->next_fiber_ptr = nullptr; } }