[vlc-commits] Win32: stop stacktrace on bad pointer
Hannes Domani
git at videolan.org
Mon Oct 20 18:34:40 CEST 2014
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Mon Oct 20 18:06:13 2014 +0200| [7e92a492766d31dfa91aaea2eafb37d35e8886a1] | committer: Jean-Baptiste Kempf
Win32: stop stacktrace on bad pointer
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7e92a492766d31dfa91aaea2eafb37d35e8886a1
---
bin/winvlc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index 3209b46..7fdf8dd 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 )
More information about the vlc-commits
mailing list