diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-04 23:05:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-04 23:05:37 +0000 |
commit | d8d373a1f24624aa8098e182d49cd8b4af9eea72 (patch) | |
tree | b02fef3e828d60ed03d0329488982b04c5cfc070 /cpukit/score/src/objectgetinfo.c | |
parent | 2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-d8d373a1f24624aa8098e182d49cd8b4af9eea72.tar.bz2 |
2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/objectgetinfo.c, score/src/objectidtoname.c,
score/src/threadget.c: Make sure the pointer to the API object table
is valid before derefencing it.
Diffstat (limited to 'cpukit/score/src/objectgetinfo.c')
-rw-r--r-- | cpukit/score/src/objectgetinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/score/src/objectgetinfo.c b/cpukit/score/src/objectgetinfo.c index 8697c227e6..c7d7d81b06 100644 --- a/cpukit/score/src/objectgetinfo.c +++ b/cpukit/score/src/objectgetinfo.c @@ -31,6 +31,9 @@ Objects_Information *_Objects_Get_information( if ( !the_class || the_class > _Objects_API_maximum_class(the_api) ) return NULL; + if ( !_Objects_Information_table[ the_api ] ) + return NULL; + info = _Objects_Information_table[ the_api ][ the_class ]; if ( !info ) return NULL; |