[vlc-commits] Fix potential Freetype crash

Jean-Baptiste Kempf git at videolan.org
Sun Dec 11 18:10:18 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Dec 11 18:06:21 2011 +0100| [e58a689e830f183b649f0ce1908407f8c4636e61] | committer: Jean-Baptiste Kempf

Fix potential Freetype crash

Close #5648

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e58a689e830f183b649f0ce1908407f8c4636e61
---

 modules/text_renderer/freetype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 674731b..3849e5a 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -625,7 +625,7 @@ static char* Win32_Select( filter_t *p_filter, const char* family,
 {
     VLC_UNUSED( i_size );
 
-    if( strlen( family ) < 1 )
+    if( !family || strlen( family ) < 1 )
         goto fail;
 
     /* */



More information about the vlc-commits mailing list