vlc | branch: master | Hannes Domani <[email protected]> | 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 <[email protected]> > 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 ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
