From 972b3e13341d4580cb85a34260225ca9b59ca98d Mon Sep 17 00:00:00 2001 From: Tobias Reinhard <16916681+tobireinhard@users.noreply.github.com> Date: Fri, 30 Dec 2022 14:10:31 -0500 Subject: [PATCH 1/2] Fixed buffer underflow in `prvSelectHighestPriorityTask`. --- tasks.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks.c b/tasks.c index 046aed9aace..d74561ff535 100644 --- a/tasks.c +++ b/tasks.c @@ -938,7 +938,9 @@ static void prvYieldForTask( TCB_t * pxTCB, { if( xDecrementTopPriority != pdFALSE ) { - uxTopReadyPriority--; + if(uxTopReadyPriority > 0) { + uxTopReadyPriority--; + } #if ( ( configRUN_MULTIPLE_PRIORITIES == 0 ) && ( configNUM_CORES > 1 ) ) { xPriorityDropped = pdTRUE; @@ -956,7 +958,9 @@ static void prvYieldForTask( TCB_t * pxTCB, } configASSERT( ( uxCurrentPriority > tskIDLE_PRIORITY ) || ( xTaskScheduled == pdTRUE ) ); - uxCurrentPriority--; + if(uxCurrentPriority > 0) { + uxCurrentPriority--; + } } configASSERT( taskTASK_IS_RUNNING( pxCurrentTCBs[ xCoreID ]->xTaskRunState ) ); From 26f07a1fe3259ce90fc18b74ae051f54023638b5 Mon Sep 17 00:00:00 2001 From: Kody Stribrny Date: Fri, 6 Jan 2023 08:48:50 -0800 Subject: [PATCH 2/2] Update kernel header check python version Python 3.7.10 is no longer supported. Python 3.11.0 is preferred. --- .github/workflows/kernel-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kernel-checks.yml b/.github/workflows/kernel-checks.yml index b23b38f94d9..3fca2e0ecf1 100644 --- a/.github/workflows/kernel-checks.yml +++ b/.github/workflows/kernel-checks.yml @@ -11,7 +11,7 @@ jobs: - name: Tool Setup uses: actions/setup-python@v2 with: - python-version: 3.7.10 + python-version: 3.11.0 architecture: x64 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}