Limit StackWalk iterations to prevent infinite loop.
This commit is contained in:
parent
64dce8a579
commit
abfcc0bdad
|
@ -219,6 +219,9 @@ void stack_backtrace(DWORD tid, BOOL noisy)
|
||||||
dbg_printf(")\n");
|
dbg_printf(")\n");
|
||||||
}
|
}
|
||||||
nf++;
|
nf++;
|
||||||
|
/* we've probably gotten ourselves into an infinite loop so bail */
|
||||||
|
if (nf > 200)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg_context = saved_dbg_context;
|
dbg_context = saved_dbg_context;
|
||||||
|
|
Loading…
Reference in New Issue