diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-14 09:14:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-14 09:20:26 +0200 |
commit | b87d2a6364ecc9f11572eac1bb557336b5f3736d (patch) | |
tree | e1059bf892229eadd367d9de4e148fad0c4fe0f4 /cpukit/rtems | |
parent | validation: Add INVALID_ID to tx-support.h (diff) | |
download | rtems-b87d2a6364ecc9f11572eac1bb557336b5f3736d.tar.bz2 |
rtems: Check entry point in rtems_task_start()
Close #4410.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/taskstart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/rtems/src/taskstart.c b/cpukit/rtems/src/taskstart.c index eca9b5795d..57dbfc83b9 100644 --- a/cpukit/rtems/src/taskstart.c +++ b/cpukit/rtems/src/taskstart.c @@ -43,6 +43,10 @@ rtems_status_code rtems_task_start( ISR_lock_Context lock_context; Status_Control status; + if ( entry_point == NULL ) { + return RTEMS_INVALID_ADDRESS; + } + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { |