mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:55:44 +00:00
fix infinite loop in KeRosDumpStackFrames()
svn path=/trunk/; revision=12108
This commit is contained in:
parent
6484c7e5b5
commit
be95834e02
1 changed files with 5 additions and 4 deletions
|
@ -659,13 +659,14 @@ KeRosDumpStackFrames ( PULONG Frame, ULONG FrameCount )
|
||||||
}
|
}
|
||||||
while ( MmIsAddressValid(Frame) && i++ < FrameCount )
|
while ( MmIsAddressValid(Frame) && i++ < FrameCount )
|
||||||
{
|
{
|
||||||
if (!KeRosPrintAddress((PVOID)Frame[1]))
|
ULONG Addr = Frame[1];
|
||||||
|
if (!KeRosPrintAddress((PVOID)Addr))
|
||||||
{
|
{
|
||||||
DbgPrint("<%X>", (PVOID)Frame[1]);
|
DbgPrint("<%X>", Addr);
|
||||||
}
|
}
|
||||||
if (Frame[1] == 0xdeadbeef)
|
if ( Addr == 0 || Addr == 0xDEADBEEF )
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Frame = (PULONG)Frame[0];
|
Frame = (PULONG)Frame[0];
|
||||||
DbgPrint(" ");
|
DbgPrint(" ");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue