[vlc-commits] zip: NULL dereference

Rémi Denis-Courmont git at videolan.org
Wed Apr 23 19:05:12 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 23 20:05:03 2014 +0300| [ae226d5a52c423a34556ba1ebc4dc33e655b4e90] | committer: Rémi Denis-Courmont

zip: NULL dereference

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

 modules/access/zip/zipaccess.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/zip/zipaccess.c b/modules/access/zip/zipaccess.c
index bb7f1ed..2f2b4dc 100644
--- a/modules/access/zip/zipaccess.c
+++ b/modules/access/zip/zipaccess.c
@@ -116,7 +116,7 @@ int AccessOpen( vlc_object_t *p_this )
         return VLC_ENOMEM;
 
     /* Split the MRL */
-    psz_path = strdup( p_access->psz_location );
+    psz_path = xstrdup( p_access->psz_location );
     psz_sep = strstr( psz_path, ZIP_SEP );
 
     *psz_sep = '\0';



More information about the vlc-commits mailing list