summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectgetinfo.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-04 23:05:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-04 23:05:37 +0000
commitd8d373a1f24624aa8098e182d49cd8b4af9eea72 (patch)
treeb02fef3e828d60ed03d0329488982b04c5cfc070 /cpukit/score/src/objectgetinfo.c
parent2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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.c3
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;