Changeset b87d2a6 in rtems


Ignore:
Timestamp:
May 14, 2021, 7:14:11 AM (2 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
57be57c7
Parents:
410317a
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/21 07:14:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/14/21 07:20:26)
Message:

rtems: Check entry point in rtems_task_start()

Close #4410.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/taskstart.c

    r410317a rb87d2a6  
    4444  Status_Control    status;
    4545
     46  if ( entry_point == NULL ) {
     47    return RTEMS_INVALID_ADDRESS;
     48  }
     49
    4650  the_thread = _Thread_Get( id, &lock_context );
    4751
  • testsuites/sptests/sptask_err04/task1.c

    r410317a rb87d2a6  
    166166  puts( "TA1 - rtems_task_start - RTEMS_INVALID_ID" );
    167167
     168  /* NULL entry point */
     169  status = rtems_task_start( RTEMS_SELF, NULL, 0 );
     170  fatal_directive_status(
     171    status,
     172    RTEMS_INVALID_ADDRESS,
     173    "rtems_task_start with NULL entry point"
     174  );
     175  puts( "TA1 - rtems_task_start - RTEMS_INVALID_ADDRESS" );
     176
    168177  /* already started */
    169178  status = rtems_task_start( RTEMS_SELF, Task_1, 0 );
Note: See TracChangeset for help on using the changeset viewer.