Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nimo-labs committed Feb 27, 2024
1 parent 70a4598 commit 7599e41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FreeRTOS/Source/tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,8 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
#if ( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
{
/* Fill the stack with a known value to assist debugging. */
( void ) memset_s( pxNewTCB->pxStack, sizeof(pxNewTCB->pxStack), ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
//NOLINTNEXTLINE(clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling) memset_s doesn't exist on this platform
( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
}
#endif /* tskSET_NEW_STACKS_TO_KNOWN_VALUE */

Expand Down Expand Up @@ -981,7 +982,9 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,

#if ( configUSE_TASK_NOTIFICATIONS == 1 )
{
//NOLINTNEXTLINE(clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling) memset_s doesn't exist on this platform
memset( ( void * ) &( pxNewTCB->ulNotifiedValue[ 0 ] ), 0x00, sizeof( pxNewTCB->ulNotifiedValue ) );
//NOLINTNEXTLINE(clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling) memset_s doesn't exist on this platform
memset( ( void * ) &( pxNewTCB->ucNotifyState[ 0 ] ), 0x00, sizeof( pxNewTCB->ucNotifyState ) );
}
#endif
Expand Down

0 comments on commit 7599e41

Please sign in to comment.