]> git.sesse.net Git - vlc/commitdiff
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 3209b464d70bd92a387fb09e0d251a1dbd436ce1..7fdf8dd25352b62fb8089e259e3d107d461d85d5 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 )