[vlc-commits] wpl: add missing error check
Thomas Guillem
git at videolan.org
Mon Oct 30 10:33:44 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Oct 30 10:33:18 2017 +0100| [596572338251be72104f62a7e3c75b9bc4111f46] | committer: Thomas Guillem
wpl: add missing error check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=596572338251be72104f62a7e3c75b9bc4111f46
---
modules/demux/playlist/wpl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/playlist/wpl.c b/modules/demux/playlist/wpl.c
index 82622fb181..f90918fb8b 100644
--- a/modules/demux/playlist/wpl.c
+++ b/modules/demux/playlist/wpl.c
@@ -317,6 +317,8 @@ int Import_WPL( vlc_object_t* p_this )
p_demux->p_sys = xml_ReaderReset( p_reader, p_demux->p_source );
vlc_stream_Delete( p_probestream );
+ if( unlikely( p_demux->p_sys == NULL ) )
+ return VLC_EGENERIC;
msg_Dbg( p_demux, "Found valid WPL playlist" );
p_demux->pf_readdir = Demux;
More information about the vlc-commits
mailing list