From f6c2c30ed4e89e49b34bc08d4b8a10ff1b96503e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 27 Jan 2003 16:16:26 +0000 Subject: 2003-01-27 Dan Smisko * 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. --- cpukit/libmisc/ChangeLog | 6 ++++++ cpukit/libmisc/stackchk/check.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/libmisc/ChangeLog b/cpukit/libmisc/ChangeLog index b4ce8bedc1..b555db7791 100644 --- a/cpukit/libmisc/ChangeLog +++ b/cpukit/libmisc/ChangeLog @@ -1,3 +1,9 @@ +2003-01-27 Dan Smisko + + * 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 * monitor/mon-command.c: Correct two potential NULL references. 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 { -- cgit v1.2.3