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:
Joel Sherrill
2003-01-27 16:16:26 +00:00
parent 62e080e114
commit f6c2c30ed4
2 changed files with 7 additions and 1 deletions

View File

@@ -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.

View File

@@ -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 {