From: Hannes Domani Date: Mon, 20 Oct 2014 16:06:13 +0000 (+0200) Subject: Win32: stop stacktrace on bad pointer X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=7e92a492766d31dfa91aaea2eafb37d35e8886a1;p=vlc Win32: stop stacktrace on bad pointer Signed-off-by: Jean-Baptiste Kempf --- diff --git a/bin/winvlc.c b/bin/winvlc.c index 3209b464d7..7fdf8dd253 100644 --- a/bin/winvlc.c +++ b/bin/winvlc.c @@ -356,6 +356,9 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo) GetModuleFileName( mbi.AllocationBase, module, 256 ); fwprintf( fd, L"%p|%ls\n", caller, module ); + if( IsBadReadPtr( pBase, 2 * sizeof( void* ) ) ) + break; + /*The last BP points to NULL!*/ caller = *(pBase + 1); if( !caller )