Changeset e980b219 in rtems


Ignore:
Timestamp:
05/06/04 19:21:40 (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f8892c9
Parents:
ca66d01
Message:

2004-05-06 Joel Sherrill <joel@…>

PR 618/rtems

  • rtems/include/rtems/rtems/status.h, rtems/src/clockget.c, rtems/src/clockset.c, rtems/src/dpmemcreate.c, rtems/src/dpmemexternal2internal.c, rtems/src/dpmeminternal2external.c, rtems/src/eventmp.c, rtems/src/eventreceive.c, rtems/src/eventsend.c, rtems/src/msgqbroadcast.c, rtems/src/msgqcreate.c, rtems/src/msgqflush.c, rtems/src/msgqgetnumberpending.c, rtems/src/msgqreceive.c, rtems/src/msgqsubmit.c, rtems/src/partcreate.c, rtems/src/partdelete.c, rtems/src/partgetbuffer.c, rtems/src/ratemoncancel.c, rtems/src/ratemoncreate.c, rtems/src/ratemondelete.c, rtems/src/ratemongetstatus.c, rtems/src/ratemonident.c, rtems/src/ratemonperiod.c, rtems/src/regioncreate.c, rtems/src/regiondelete.c, rtems/src/regionextend.c, rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c, rtems/src/regionreturnsegment.c, rtems/src/semcreate.c, rtems/src/semdelete.c, rtems/src/semflush.c, rtems/src/semident.c, rtems/src/taskcreate.c, rtems/src/taskgetnote.c, rtems/src/taskmode.c, rtems/src/taskrestart.c, rtems/src/taskresume.c, rtems/src/tasksetnote.c, rtems/src/tasksuspend.c, rtems/src/taskvariableadd.c, rtems/src/taskvariabledelete.c, rtems/src/taskvariableget.c, rtems/src/taskwakewhen.c, rtems/src/timercreate.c, rtems/src/timerdelete.c, rtems/src/timerfireafter.c, rtems/src/timerfirewhen.c, rtems/src/timerserverfireafter.c, rtems/src/timerserverfirewhen.c, score/include/rtems/score/object.h, score/src/coretodvalidate.c, score/src/objectnametoid.c: Add NULL checks.
Location:
cpukit
Files:
56 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rca66d01 re980b219  
     12004-05-06      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 618/rtems
     4        * rtems/include/rtems/rtems/status.h, rtems/src/clockget.c,
     5        rtems/src/clockset.c, rtems/src/dpmemcreate.c,
     6        rtems/src/dpmemexternal2internal.c,
     7        rtems/src/dpmeminternal2external.c, rtems/src/eventmp.c,
     8        rtems/src/eventreceive.c, rtems/src/eventsend.c,
     9        rtems/src/msgqbroadcast.c, rtems/src/msgqcreate.c,
     10        rtems/src/msgqflush.c, rtems/src/msgqgetnumberpending.c,
     11        rtems/src/msgqreceive.c, rtems/src/msgqsubmit.c,
     12        rtems/src/partcreate.c, rtems/src/partdelete.c,
     13        rtems/src/partgetbuffer.c, rtems/src/ratemoncancel.c,
     14        rtems/src/ratemoncreate.c, rtems/src/ratemondelete.c,
     15        rtems/src/ratemongetstatus.c, rtems/src/ratemonident.c,
     16        rtems/src/ratemonperiod.c, rtems/src/regioncreate.c,
     17        rtems/src/regiondelete.c, rtems/src/regionextend.c,
     18        rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c,
     19        rtems/src/regionreturnsegment.c, rtems/src/semcreate.c,
     20        rtems/src/semdelete.c, rtems/src/semflush.c, rtems/src/semident.c,
     21        rtems/src/taskcreate.c, rtems/src/taskgetnote.c,
     22        rtems/src/taskmode.c, rtems/src/taskrestart.c,
     23        rtems/src/taskresume.c, rtems/src/tasksetnote.c,
     24        rtems/src/tasksuspend.c, rtems/src/taskvariableadd.c,
     25        rtems/src/taskvariabledelete.c, rtems/src/taskvariableget.c,
     26        rtems/src/taskwakewhen.c, rtems/src/timercreate.c,
     27        rtems/src/timerdelete.c, rtems/src/timerfireafter.c,
     28        rtems/src/timerfirewhen.c, rtems/src/timerserverfireafter.c,
     29        rtems/src/timerserverfirewhen.c, score/include/rtems/score/object.h,
     30        score/src/coretodvalidate.c, score/src/objectnametoid.c: Add NULL
     31        checks.
     32
    1332004-04-30      Joel Sherrill <joel@OARcorp.com>
    234
  • cpukit/rtems/include/rtems/rtems/status.h

    rca66d01 re980b219  
    6464#ifdef RTEMS_API_INIT
    6565rtems_status_code _Status_Object_name_errors_to_status[] = {
    66   RTEMS_SUCCESSFUL,      /* OBJECTS_ID_NAME_OR_ID_LOOKUP_SUCCESSFUL */
     66  RTEMS_SUCCESSFUL,      /* OBJECTS_SUCCESSFUL */
    6767  RTEMS_INVALID_NAME,    /* OBJECTS_INVALID_NAME */
     68  RTEMS_INVALID_ADDRESS, /* OBJECTS_INVALID_ADDRESS */
    6869  RTEMS_INVALID_ID,      /* OBJECTS_INVALID_ID */
    6970  RTEMS_INVALID_NODE     /* OBJECTS_INVALID_NODE */
  • cpukit/rtems/src/clockget.c

    rca66d01 re980b219  
    4646  rtems_interval tmp;
    4747
     48   if ( !time_buffer )
     49     return RTEMS_INVALID_ADDRESS;
     50
    4851  switch ( option ) {
    4952    case RTEMS_CLOCK_GET_TOD:
  • cpukit/rtems/src/clockset.c

    rca66d01 re980b219  
    4040  rtems_interval     seconds;
    4141
     42  if ( !time_buffer )
     43    return RTEMS_INVALID_ADDRESS;
     44
    4245  if ( _TOD_Validate( time_buffer ) ) {
    4346    seconds = _TOD_To_seconds( time_buffer );
  • cpukit/rtems/src/clocktodvalidate.c

    rca66d01 re980b219  
    4141  uint32_t   days_in_month;
    4242
    43   if ((the_tod->ticks  >= _TOD_Ticks_per_second)  ||
     43  if ((!the_tod)                                  ||
     44      (the_tod->ticks  >= _TOD_Ticks_per_second)  ||
    4445      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
    4546      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||
  • cpukit/rtems/src/dpmemcreate.c

    rca66d01 re980b219  
    5353    return RTEMS_INVALID_NAME;
    5454
     55  if ( !id )
     56    return RTEMS_INVALID_ADDRESS;
     57
    5558  if ( !_Addresses_Is_aligned( internal_start ) ||
    5659       !_Addresses_Is_aligned( external_start ) )
  • cpukit/rtems/src/dpmemexternal2internal.c

    rca66d01 re980b219  
    5050  uint32_t                             ending;
    5151
     52  if ( !internal )
     53    return RTEMS_INVALID_ADDRESS;
     54
    5255  the_port = _Dual_ported_memory_Get( id, &location );
    5356  switch ( location ) {
  • cpukit/rtems/src/dpmeminternal2external.c

    rca66d01 re980b219  
    5050  uint32_t                             ending;
    5151
     52  if ( !external )
     53    return RTEMS_INVALID_ADDRESS;
     54
    5255  the_port = _Dual_ported_memory_Get( id, &location );
    5356  switch ( location ) {
  • cpukit/rtems/src/eventmp.c

    rca66d01 re980b219  
    4141  Event_MP_Remote_operations operation,
    4242  Objects_Id                 event_id,
    43   rtems_event_set         event_in
     43  rtems_event_set            event_in
    4444)
    4545{
  • cpukit/rtems/src/eventreceive.c

    rca66d01 re980b219  
    4949  RTEMS_API_Control       *api;
    5050
     51  if ( !event_out )
     52    return RTEMS_INVALID_ADDRESS;
     53
    5154  api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
    5255
  • cpukit/rtems/src/eventsend.c

    rca66d01 re980b219  
    3838
    3939rtems_status_code rtems_event_send(
    40   Objects_Id         id,
    41   rtems_event_set event_in
     40  Objects_Id        id,
     41  rtems_event_set   event_in
    4242)
    4343{
  • cpukit/rtems/src/msgqbroadcast.c

    rca66d01 re980b219  
    6161  CORE_message_queue_Status       core_status;
    6262
     63  if ( !buffer )
     64    return RTEMS_INVALID_ADDRESS;
     65
     66  if ( !count )
     67    return RTEMS_INVALID_ADDRESS;
     68
    6369  the_message_queue = _Message_queue_Get( id, &location );
    6470  switch ( location ) {
  • cpukit/rtems/src/msgqcreate.c

    rca66d01 re980b219  
    6767  if ( !rtems_is_name_valid( name ) )
    6868    return RTEMS_INVALID_NAME;
     69
     70  if ( !id )
     71    return RTEMS_INVALID_ADDRESS;
    6972
    7073#if defined(RTEMS_MULTIPROCESSING)
  • cpukit/rtems/src/msgqflush.c

    rca66d01 re980b219  
    5757  Objects_Locations               location;
    5858
     59  if ( !count )
     60    return RTEMS_INVALID_ADDRESS;
     61
    5962  the_message_queue = _Message_queue_Get( id, &location );
    6063  switch ( location ) {
  • cpukit/rtems/src/msgqgetnumberpending.c

    rca66d01 re980b219  
    5555  Objects_Locations               location;
    5656
     57  if ( !count )
     58    return RTEMS_INVALID_ADDRESS;
     59
    5760  the_message_queue = _Message_queue_Get( id, &location );
    5861  switch ( location ) {
  • cpukit/rtems/src/msgqreceive.c

    rca66d01 re980b219  
    6262  boolean                         wait;
    6363
     64  if ( !buffer )
     65    return RTEMS_INVALID_ADDRESS;
     66
     67  if ( !size )
     68    return RTEMS_INVALID_ADDRESS;
     69
    6470  the_message_queue = _Message_queue_Get( id, &location );
    6571  switch ( location ) {
  • cpukit/rtems/src/msgqsubmit.c

    rca66d01 re980b219  
    6969  Objects_Locations                location;
    7070  CORE_message_queue_Status        msg_status;
     71
     72  if ( !buffer )
     73    return RTEMS_INVALID_ADDRESS;
    7174
    7275  the_message_queue = _Message_queue_Get( id, &location );
  • cpukit/rtems/src/partcreate.c

    rca66d01 re980b219  
    3838 *
    3939 *  Output parameters:
    40  *    id                - partition id
     40 *    id               - partition id
    4141 *    RTEMS_SUCCESSFUL - if successful
    42  *    error code        - if unsuccessful
     42 *    error code       - if unsuccessful
    4343 */
    4444
     
    4848  uint32_t            length,
    4949  uint32_t            buffer_size,
    50   rtems_attribute  attribute_set,
     50  rtems_attribute     attribute_set,
    5151  Objects_Id         *id
    5252)
     
    5656  if ( !rtems_is_name_valid( name ) )
    5757    return RTEMS_INVALID_NAME;
     58
     59  if ( !starting_address )
     60    return RTEMS_INVALID_ADDRESS;
     61
     62  if ( !id )
     63    return RTEMS_INVALID_ADDRESS;
    5864
    5965  if ( length == 0 || buffer_size == 0 || length < buffer_size ||
  • cpukit/rtems/src/partdelete.c

    rca66d01 re980b219  
    3535 *  Output parameters:
    3636 *    RTEMS_SUCCESSFUL - if successful
    37  *    error code        - if unsuccessful
     37 *    error code       - if unsuccessful
    3838 */
    3939
     
    4343{
    4444  register Partition_Control *the_partition;
    45   Objects_Locations                  location;
     45  Objects_Locations           location;
    4646
    4747  the_partition = _Partition_Get( id, &location );
  • cpukit/rtems/src/partgetbuffer.c

    rca66d01 re980b219  
    4747  void                       *the_buffer;
    4848
     49  if ( !buffer )
     50    return RTEMS_INVALID_ADDRESS;
     51
    4952  the_partition = _Partition_Get( id, &location );
    5053  switch ( location ) {
  • cpukit/rtems/src/ratemoncancel.c

    rca66d01 re980b219  
    3232 *  Output parameters:
    3333 *    RTEMS_SUCCESSFUL - if successful and caller is not the owning thread
    34  *    error code        - if unsuccessful
     34 *    error code       - if unsuccessful
    3535 */
    3636
     
    4040{
    4141  Rate_monotonic_Control *the_period;
    42   Objects_Locations              location;
     42  Objects_Locations       location;
    4343
    4444  the_period = _Rate_monotonic_Get( id, &location );
  • cpukit/rtems/src/ratemoncreate.c

    rca66d01 re980b219  
    3333 *
    3434 *  Output parameters:
    35  *    id                - rate monotonic id
     35 *    id               - rate monotonic id
    3636 *    RTEMS_SUCCESSFUL - if successful
    37  *    error code        - if unsuccessful
     37 *    error code       - if unsuccessful
    3838 */
    3939
     
    4747  if ( !rtems_is_name_valid( name ) )
    4848    return RTEMS_INVALID_NAME;
     49
     50  if ( !id )
     51    return RTEMS_INVALID_ADDRESS;
    4952
    5053  _Thread_Disable_dispatch();            /* to prevent deletion */
  • cpukit/rtems/src/ratemondelete.c

    rca66d01 re980b219  
    3232 *  Output parameters:
    3333 *    RTEMS_SUCCESSFUL - if successful
    34  *    error code        - if unsuccessful
     34 *    error code       - if unsuccessful
    3535 */
    3636
     
    4040{
    4141  Rate_monotonic_Control *the_period;
    42   Objects_Locations              location;
     42  Objects_Locations       location;
    4343
    4444  the_period = _Rate_monotonic_Get( id, &location );
  • cpukit/rtems/src/ratemongetstatus.c

    rca66d01 re980b219  
    4646  Rate_monotonic_Control        *the_period;
    4747
    48   if ( status == NULL )
     48  if ( !status )
    4949    return RTEMS_INVALID_ADDRESS;
    5050
  • cpukit/rtems/src/ratemonident.c

    rca66d01 re980b219  
    3333 *
    3434 *  Output parameters:
    35  *    *id               - region id
     35 *    *id              - region id
    3636 *    RTEMS_SUCCESSFUL - if successful
    37  *    error code        - if unsuccessful
     37 *    error code       - if unsuccessful
    3838 */
    3939
  • cpukit/rtems/src/ratemonperiod.c

    rca66d01 re980b219  
    3333 *  Output parameters:
    3434 *    RTEMS_SUCCESSFUL - if successful
    35  *    error code        - if unsuccessful
     35 *    error code       - if unsuccessful
    3636 */
    3737
  • cpukit/rtems/src/regioncreate.c

    rca66d01 re980b219  
    3939 *
    4040 *  Output parameters:
    41  *    id       - region id
     41 *    id               - region id
    4242 *    RTEMS_SUCCESSFUL - if successful
    43  *    error code - if unsuccessful
     43 *    error code       - if unsuccessful
    4444 */
    4545
     
    4949  uint32_t            length,
    5050  uint32_t            page_size,
    51   rtems_attribute  attribute_set,
     51  rtems_attribute     attribute_set,
    5252  Objects_Id         *id
    5353)
     
    5757  if ( !rtems_is_name_valid( name ) )
    5858    return RTEMS_INVALID_NAME;
     59
     60  if ( !starting_address )
     61    return RTEMS_INVALID_ADDRESS;
     62
     63  if ( !id )
     64    return RTEMS_INVALID_ADDRESS;
    5965
    6066  if ( !_Addresses_Is_aligned( starting_address ) )
  • cpukit/rtems/src/regiondelete.c

    rca66d01 re980b219  
    3636 *  Output parameters:
    3737 *    RTEMS_SUCCESSFUL - if successful
    38  *    error code - if unsuccessful
     38 *    error code       - if unsuccessful
    3939 */
    4040
     
    4444{
    4545  register Region_Control *the_region;
    46   Objects_Locations               location;
     46  Objects_Locations        location;
    4747
    4848  _RTEMS_Lock_allocator();
  • cpukit/rtems/src/regionextend.c

    rca66d01 re980b219  
    5252  rtems_status_code   status;
    5353
     54  if ( !starting_address )
     55    return RTEMS_INVALID_ADDRESS;
     56
    5457  status = RTEMS_SUCCESSFUL;
    5558
  • cpukit/rtems/src/regiongetsegment.c

    rca66d01 re980b219  
    5454  Thread_Control          *executing;
    5555  void                    *the_segment;
     56
     57  if ( !segment )
     58    return RTEMS_INVALID_ADDRESS;
    5659
    5760  *segment = NULL;
  • cpukit/rtems/src/regiongetsegmentsize.c

    rca66d01 re980b219  
    5050  Thread_Control          *executing;
    5151
     52  if ( !segment )
     53    return RTEMS_INVALID_ADDRESS;
     54
     55  if ( !size )
     56    return RTEMS_INVALID_ADDRESS;
     57
    5258  _RTEMS_Lock_allocator();
    5359  executing  = _Thread_Executing;
  • cpukit/rtems/src/regionreturnsegment.c

    rca66d01 re980b219  
    4343 *  Output parameters:
    4444 *    RTEMS_SUCCESSFUL - if successful
    45  *    error code        - if unsuccessful
     45 *    error code       - if unsuccessful
    4646 */
    4747
  • cpukit/rtems/src/semcreate.c

    rca66d01 re980b219  
    8181  if ( !rtems_is_name_valid( name ) )
    8282    return RTEMS_INVALID_NAME;
     83
     84  if ( !id )
     85    return RTEMS_INVALID_ADDRESS;
    8386
    8487#if defined(RTEMS_MULTIPROCESSING)
  • cpukit/rtems/src/semdelete.c

    rca66d01 re980b219  
    5959 *  Output parameters:
    6060 *    RTEMS_SUCCESSFUL - if successful
    61  *    error code        - if unsuccessful
     61 *    error code       - if unsuccessful
    6262 */
    6363
  • cpukit/rtems/src/semflush.c

    rca66d01 re980b219  
    4949 *  Output parameters:
    5050 *    RTEMS_SUCCESSFUL - if successful
    51  *    error code        - if unsuccessful
     51 *    error code       - if unsuccessful
    5252 */
    5353
  • cpukit/rtems/src/semident.c

    rca66d01 re980b219  
    5959 *
    6060 *  Output parameters:
    61  *    *id      - semaphore id
     61 *    *id              - semaphore id
    6262 *    RTEMS_SUCCESSFUL - if successful
    63  *    error code - if unsuccessful
     63 *    error code       - if unsuccessful
    6464 */
    6565
  • cpukit/rtems/src/taskcreate.c

    rca66d01 re980b219  
    7373
    7474
     75  if ( !id )
     76   return RTEMS_INVALID_ADDRESS;
     77
    7578  if ( !rtems_is_name_valid( name ) )
    7679    return RTEMS_INVALID_NAME;
  • cpukit/rtems/src/taskgetnote.c

    rca66d01 re980b219  
    4242 *
    4343 *  Output parameters:
    44  *    note              - filled in if successful
     44 *    note             - filled in if successful
    4545 *    RTEMS_SUCCESSFUL - if successful
    46  *    error code        - if unsuccessful
     46 *    error code       - if unsuccessful
    4747 */
    4848
     
    5656  Objects_Locations        location;
    5757  RTEMS_API_Control       *api;
     58
     59  if ( !note )
     60    return RTEMS_INVALID_ADDRESS;
    5861
    5962  /*
  • cpukit/rtems/src/taskmode.c

    rca66d01 re980b219  
    5858  boolean             needs_asr_dispatching = FALSE;
    5959  rtems_mode          old_mode;
     60
     61  if ( !previous_mode_set )
     62    return RTEMS_INVALID_ADDRESS;
    6063
    6164  executing     = _Thread_Executing;
  • cpukit/rtems/src/taskrestart.c

    rca66d01 re980b219  
    4444 *  Output parameters:
    4545 *    RTEMS_SUCCESSFUL - if successful
    46  *    error code        - if unsuccessful
     46 *    error code       - if unsuccessful
    4747 */
    4848
  • cpukit/rtems/src/taskresume.c

    rca66d01 re980b219  
    4141 *  Output parameters:
    4242 *    RTEMS_SUCCESSFUL - if successful
    43  *    error code        - if unsuccessful
     43 *    error code       - if unsuccessful
    4444 */
    4545
  • cpukit/rtems/src/tasksetnote.c

    rca66d01 re980b219  
    4343 *  Output parameters:
    4444 *    RTEMS_SUCCESSFUL - if successful
    45  *    error code        - if unsuccessful
     45 *    error code       - if unsuccessful
    4646 */
    4747
  • cpukit/rtems/src/tasksuspend.c

    rca66d01 re980b219  
    5050{
    5151  register Thread_Control *the_thread;
    52   Objects_Locations               location;
     52  Objects_Locations        location;
    5353
    5454  the_thread = _Thread_Get( id, &location );
  • cpukit/rtems/src/taskvariableadd.c

    rca66d01 re980b219  
    3232  Objects_Locations      location;
    3333  rtems_task_variable_t *tvp, *new;
     34
     35  if ( !ptr )
     36    return RTEMS_INVALID_ADDRESS;
    3437
    3538  the_thread = _Thread_Get (tid, &location);
  • cpukit/rtems/src/taskvariabledelete.c

    rca66d01 re980b219  
    3131  Objects_Locations      location;
    3232  rtems_task_variable_t *tvp, *prev;
     33
     34  if ( !ptr )
     35    return RTEMS_INVALID_ADDRESS;
    3336
    3437  prev = NULL;
  • cpukit/rtems/src/taskvariableget.c

    rca66d01 re980b219  
    3232  Objects_Locations      location;
    3333  rtems_task_variable_t *tvp;
     34
     35  if ( !ptr )
     36    return RTEMS_INVALID_ADDRESS;
     37
     38  if ( !result )
     39    return RTEMS_INVALID_ADDRESS;
    3440
    3541  the_thread = _Thread_Get (tid, &location);
  • cpukit/rtems/src/taskwakewhen.c

    rca66d01 re980b219  
    4141 *  Output parameters:
    4242 *    RTEMS_SUCCESSFUL - if successful
    43  *    error code        - if unsuccessful
     43 *    error code       - if unsuccessful
    4444 */
    4545
    4646rtems_status_code rtems_task_wake_when(
    47 rtems_time_of_day *time_buffer
     47  rtems_time_of_day *time_buffer
    4848)
    4949{
     
    5252  if ( !_TOD_Is_set )
    5353    return RTEMS_NOT_DEFINED;
     54
     55  if ( !time_buffer )
     56    return RTEMS_INVALID_ADDRESS;
    5457
    5558  time_buffer->ticks = 0;
  • cpukit/rtems/src/timercreate.c

    rca66d01 re980b219  
    4848    return RTEMS_INVALID_NAME;
    4949
     50  if ( !id )
     51    return RTEMS_INVALID_ADDRESS;
     52
    5053  _Thread_Disable_dispatch();         /* to prevent deletion */
    5154
  • cpukit/rtems/src/timerdelete.c

    rca66d01 re980b219  
    4040)
    4141{
    42   Timer_Control   *the_timer;
    43   Objects_Locations       location;
     42  Timer_Control     *the_timer;
     43  Objects_Locations  location;
    4444
    4545  the_timer = _Timer_Get( id, &location );
  • cpukit/rtems/src/timerfireafter.c

    rca66d01 re980b219  
    5252    return RTEMS_INVALID_NUMBER;
    5353
     54  if ( !routine )
     55    return RTEMS_INVALID_ADDRESS;
     56
    5457  the_timer = _Timer_Get( id, &location );
    5558  switch ( location ) {
  • cpukit/rtems/src/timerfirewhen.c

    rca66d01 re980b219  
    5656    return RTEMS_INVALID_CLOCK;
    5757
     58  if ( !routine )
     59    return RTEMS_INVALID_ADDRESS;
     60
    5861  seconds = _TOD_To_seconds( wall_time );
    5962  if ( seconds <= _TOD_Seconds_since_epoch )
  • cpukit/rtems/src/timerserverfireafter.c

    rca66d01 re980b219  
    5454    return RTEMS_INCORRECT_STATE;
    5555
     56  if ( !routine )
     57    return RTEMS_INVALID_ADDRESS;
     58
    5659  if ( ticks == 0 )
    5760    return RTEMS_INVALID_NUMBER;
  • cpukit/rtems/src/timerserverfirewhen.c

    rca66d01 re980b219  
    5858    return RTEMS_NOT_DEFINED;
    5959
     60  if ( !routine )
     61    return RTEMS_INVALID_ADDRESS;
     62
    6063  if ( !_TOD_Validate( wall_time ) )
    6164    return RTEMS_INVALID_CLOCK;
  • cpukit/score/include/rtems/score/object.h

    rca66d01 re980b219  
    458458  OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL,
    459459  OBJECTS_INVALID_NAME,
     460  OBJECTS_INVALID_ADDRESS,
    460461  OBJECTS_INVALID_ID,
    461462  OBJECTS_INVALID_NODE
  • cpukit/score/src/coretodvalidate.c

    rca66d01 re980b219  
    4141  uint32_t   days_in_month;
    4242
    43   if ((the_tod->ticks  >= _TOD_Ticks_per_second)  ||
     43  if ((!the_tod)                                  ||
     44      (the_tod->ticks  >= _TOD_Ticks_per_second)  ||
    4445      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
    4546      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||
  • cpukit/score/src/objectnametoid.c

    rca66d01 re980b219  
    5757  Objects_Name_comparators   compare_them;
    5858
     59  if ( !id )
     60    return OBJECTS_INVALID_ADDRESS;
     61
    5962  if ( name == 0 )
    6063    return OBJECTS_INVALID_NAME;
Note: See TracChangeset for help on using the changeset viewer.