Skip to content

Commit 1c59d34

Browse files
committed
Add assert to am_pal_task_create()
1 parent 802b3b6 commit 1c59d34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/pal/posix/pal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ int am_pal_task_create(
166166
(void)stack;
167167
AM_ASSERT(entry);
168168
AM_ASSERT(prio >= 0);
169+
AM_ASSERT(prio < AM_PAL_TASK_NUM_MAX);
169170

170171
int index = -1;
171172
struct am_pal_task *me = NULL;

0 commit comments

Comments
 (0)