Limit StackWalk iterations to prevent infinite loop.

This commit is contained in:
Robert Shearman 2004-11-06 03:44:44 +00:00 committed by Alexandre Julliard
parent 64dce8a579
commit abfcc0bdad
1 changed files with 3 additions and 0 deletions

View File

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