From 7e92a492766d31dfa91aaea2eafb37d35e8886a1 Mon Sep 17 00:00:00 2001 From: Hannes Domani Date: Mon, 20 Oct 2014 18:06:13 +0200 Subject: [PATCH] Win32: stop stacktrace on bad pointer Signed-off-by: Jean-Baptiste Kempf --- bin/winvlc.c | 3 +++ 1 file changed, 3 insertions(+) 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 )