Changeset df54012 in rtems


Ignore:
Timestamp:
05/06/04 19:20:44 (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
ca6c741
Parents:
17bbadd
Message:

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

PR 618/rtems

  • include/rtems/score/object.h, src/coretodvalidate.c, src/objectnametoid.c: Add NULL checks.
Location:
cpukit/score
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/ChangeLog

    r17bbadd rdf54012  
     12004-05-06      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 618/rtems
     4        * include/rtems/score/object.h, src/coretodvalidate.c,
     5        src/objectnametoid.c: Add NULL checks.
     6
    172004-01-11  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • cpukit/score/include/rtems/score/object.h

    r17bbadd rdf54012  
    457457  OBJECTS_SUCCESSFUL,
    458458  OBJECTS_INVALID_NAME,
     459  OBJECTS_INVALID_ADDRESS,
    459460  OBJECTS_INVALID_NODE
    460461} Objects_Name_to_id_errors;
  • cpukit/score/src/coretodvalidate.c

    r17bbadd rdf54012  
    4141  unsigned32 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

    r17bbadd rdf54012  
    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.