diff --git a/programs/winedbg/stack.c b/programs/winedbg/stack.c index 0141dee61cd..b743d3b5106 100644 --- a/programs/winedbg/stack.c +++ b/programs/winedbg/stack.c @@ -219,6 +219,9 @@ void stack_backtrace(DWORD tid, BOOL noisy) dbg_printf(")\n"); } nf++; + /* we've probably gotten ourselves into an infinite loop so bail */ + if (nf > 200) + break; } dbg_context = saved_dbg_context;