From 9b7810acc299645874387d3bad1a988519bcb520 Mon Sep 17 00:00:00 2001 From: John Boiles Date: Fri, 24 Jan 2025 16:43:08 -0800 Subject: [PATCH] Assert that thread_data != NULL --- portable/ThirdParty/GCC/Posix/port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/portable/ThirdParty/GCC/Posix/port.c b/portable/ThirdParty/GCC/Posix/port.c index a81227069..c4eacb2ba 100644 --- a/portable/ThirdParty/GCC/Posix/port.c +++ b/portable/ThirdParty/GCC/Posix/port.c @@ -142,6 +142,7 @@ static void prvMarkAsFreeRTOSThread( pthread_t thread ) { prvInitThreadKey(); uint8_t * thread_data = malloc( 1 ); + configASSERT( thread_data != NULL ); *thread_data = 1; pthread_setspecific( xThreadKey, thread_data ); }