mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
- Try to avoid crashing when dumping out a corrupted stack.
svn path=/trunk/; revision=8360
This commit is contained in:
parent
f8a6374074
commit
446f263ed3
|
@ -500,8 +500,20 @@ KiDumpTrapFrame(PKTRAP_FRAME Tf, ULONG Parameter1, ULONG Parameter2)
|
|||
Frame = (PULONG)Tf->Ebp;
|
||||
while (Frame != NULL)
|
||||
{
|
||||
print_address((PVOID)Frame[1]);
|
||||
Frame = (PULONG)Frame[0];
|
||||
NTSTATUS Status;
|
||||
PVOID Eip;
|
||||
Status = MmSafeCopyFromUser(&Eip, Frame + 1, sizeof(Eip));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DbgPrint("<INVALID>");
|
||||
break;
|
||||
}
|
||||
print_address(Eip);
|
||||
Status = MmSafeCopyFromUser(&Frame, Frame, sizeof(Frame));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
DbgPrint(" ");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue