[vlc-commits] Win32: stop stacktrace on bad pointer
Hannes Domani
git at videolan.org
Mon Oct 20 18:35:26 CEST 2014
vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Mon Oct 20 18:06:13 2014 +0200| [ec603a11813f7606576c33eaf097f8b5cc3df152] | committer: Jean-Baptiste Kempf
Win32: stop stacktrace on bad pointer
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 7e92a492766d31dfa91aaea2eafb37d35e8886a1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=ec603a11813f7606576c33eaf097f8b5cc3df152
---
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