X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/120678ee96cd38c8d10ead6e60135004b8e97f9e..3c832d589dccf8cf9cb499ab61d2e7dae058ad0e:/src/msw/debughlp.cpp diff --git a/src/msw/debughlp.cpp b/src/msw/debughlp.cpp index 5f5e75037e..3752aa10b2 100644 --- a/src/msw/debughlp.cpp +++ b/src/msw/debughlp.cpp @@ -373,6 +373,13 @@ wxDbgHelpDLL::DumpField(PSYMBOL_INFO pSym, void *pVariable, unsigned level) wxDbgHelpDLL::DumpUDT(PSYMBOL_INFO pSym, void *pVariable, unsigned level) { wxString s; + + // we have to limit the depth of UDT dumping as otherwise we get in + // infinite loops trying to dump linked lists... 10 levels seems quite + // reasonable, full information is in minidump file anyhow + if ( level > 10 ) + return s; + s.reserve(512); s = GetSymbolName(pSym);