[vlc-commits] vlc_input_title_Duplicate: fix possible crash

Jean-Baptiste Kempf git at videolan.org
Wed Jun 22 12:02:45 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 22 11:54:15 2016 +0200| [aefbd1cb8481b1ecad92caabb0470e3afda04e47] | committer: Jean-Baptiste Kempf

vlc_input_title_Duplicate: fix possible crash

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

 include/vlc_input.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 22f3dfa..93b06f2 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -131,6 +131,8 @@ static inline void vlc_input_title_Delete( input_title_t *t )
 static inline input_title_t *vlc_input_title_Duplicate( const input_title_t *t )
 {
     input_title_t *dup = vlc_input_title_New( );
+    if( dup == NULL) return NULL;
+
     int i;
 
     if( t->psz_name ) dup->psz_name = strdup( t->psz_name );



More information about the vlc-commits mailing list