diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-01-27 16:16:26 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-01-27 16:16:26 +0000 |
commit | f6c2c30ed4e89e49b34bc08d4b8a10ff1b96503e (patch) | |
tree | 435605ee29506778c7f7756b922dc6722cd9b201 /cpukit/libmisc | |
parent | 2003-01-27 Dan Smisko <dan@balanced.com> (diff) | |
download | rtems-f6c2c30ed4e89e49b34bc08d4b8a10ff1b96503e.tar.bz2 |
2003-01-27 Dan Smisko <dan@balanced.com>
* stackchk/check.c: Fix problem where _Objects_Get_information()
will dereference a null pointer when checking the interrupt stack.
If there's something at 0, you may be ok at run time but it is wrong.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/libmisc/ChangeLog b/cpukit/libmisc/ChangeLog index b4ce8bedc1..b555db7791 100644 --- a/cpukit/libmisc/ChangeLog +++ b/cpukit/libmisc/ChangeLog @@ -1,5 +1,11 @@ 2003-01-27 Dan Smisko <dan@balanced.com> + * stackchk/check.c: Fix problem where _Objects_Get_information() + will dereference a null pointer when checking the interrupt stack. + If there's something at 0, you may be ok at run time but it is wrong. + +2003-01-27 Dan Smisko <dan@balanced.com> + * monitor/mon-command.c: Correct two potential NULL references. 2002-01-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de> diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index c0f1cca992..896375e85c 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -454,9 +454,9 @@ void Stack_check_Dump_threads_usage( else used = 0; - info = _Objects_Get_information(the_thread->Object.id); name = name_str; if ( the_thread ) { + info = _Objects_Get_information(the_thread->Object.id); if ( info->is_string ) { name = (char *) the_thread->Object.name; } else { |