Commit af2dc827 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: do not create too big stacktraces

We can't analyze them anyway, and they take space and bandwidth.
(cherry picked from commit f5b88cbb5bb716ef38b1754bd6f7be9f2b151c98)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 33af8ddf
......@@ -330,6 +330,7 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
DWORD pEbp = pContext->Ebp;
DWORD caller = *((DWORD*)pEbp + 1);
unsigned i_line = 0;
do
{
VirtualQuery( (DWORD *)caller, &mbi, sizeof( mbi ) ) ;
......@@ -338,8 +339,9 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
fwprintf( fd, L"%08x|%s\n", caller, module );
pEbp = *(DWORD*)pEbp ;
caller = *((DWORD*)pEbp + 1) ;
i_line++;
/*The last EBP points to NULL!*/
}while(caller);
}while(caller && i_line< 100);
fclose( fd );
fflush( stderr );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment