[vlc-devel] commit: Fixed a segfault in podcast (Geoffroy Couprie )
git version control
git at videolan.org
Tue Mar 25 02:46:08 CET 2008
vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Tue Mar 25 02:31:21 2008 +0100| [7b20f9814f9aab8f0c8286fedc2a17d104244c5c]
Fixed a segfault in podcast
Signed-off-by: Pierre d'Herbemont <pdherbemont at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b20f9814f9aab8f0c8286fedc2a17d104244c5c
---
modules/demux/playlist/podcast.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index 11db8c4..6f8685f 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -270,6 +270,11 @@ static int Demux( demux_t *p_demux )
if( !psz_elname ) return -1;
if( !strcmp( psz_elname, "item" ) )
{
+ if( psz_item_mrl == NULL )
+ {
+ msg_Err( p_demux, "invalid XML (no enclosure markup)" );
+ return -1;
+ }
p_input = input_ItemNewExt( p_playlist, psz_item_mrl,
psz_item_name, 0, NULL, -1 );
if( p_input == NULL ) break;
More information about the vlc-devel
mailing list