Win32: stop stacktrace on bad pointer
authorHannes Domani <ssbssa@yahoo.de>
Mon, 20 Oct 2014 16:06:13 +0000 (18:06 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 20 Oct 2014 16:34:32 +0000 (18:34 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
bin/winvlc.c

index 3209b46..7fdf8dd 100644 (file)
@@ -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 )