mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
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.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user