[vlc-commits] asx: handle FindPrefix() failure
Rémi Denis-Courmont
git at videolan.org
Mon Jul 25 23:44:45 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 26 00:00:27 2016 +0300| [e73a376d60195a9e1d8a255df533a1b0d9ac4926] | committer: Rémi Denis-Courmont
asx: handle FindPrefix() failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e73a376d60195a9e1d8a255df533a1b0d9ac4926
---
modules/demux/playlist/asx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 803d87a..7925ff7 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -316,6 +316,9 @@ static int Demux( demux_t *p_demux )
const char *psz_node = NULL;
char *psz_txt = NULL;
char *psz_base = FindPrefix( p_demux );
+ if (unlikely(psz_base == NULL))
+ return VLC_DEMUXER_EOF;
+
char *psz_title_asx = NULL;
char *psz_entryref = NULL;
More information about the vlc-commits
mailing list