[vlc-devel] commit: podcast: fix crash in demuxer (Jakob Leben )

git version control git at videolan.org
Fri Oct 30 02:31:05 CET 2009


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Fri Oct 30 02:25:37 2009 +0100| [c590b5e083b86e3415af1ef7b276d1e05f434ddc] | committer: Jakob Leben 

podcast: fix crash in demuxer

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

 modules/demux/playlist/podcast.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index 3c255e4..ee95cea 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -203,6 +203,8 @@ static int Demux( demux_t *p_demux )
             }
             case XML_READER_TEXT:
             {
+                if(!psz_elname) break;
+
                 char *psz_text = xml_ReaderValue( p_xml_reader );
 
 #define SET_DATA( field, name )                 \




More information about the vlc-devel mailing list