[vlc-commits] hds: fix dereference after NULL check (cid #1224532)

Tristan Matthews git at videolan.org
Fri Aug 1 06:41:57 CEST 2014


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Fri Aug  1 00:11:45 2014 -0400| [6b2fcb1c2cc27e4a7f8e455eb5ba66423d71c8cb] | committer: Tristan Matthews

hds: fix dereference after NULL check (cid #1224532)

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

 modules/stream_filter/hds/hds.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c
index 2c0750a..5ec1a37 100644
--- a/modules/stream_filter/hds/hds.c
+++ b/modules/stream_filter/hds/hds.c
@@ -583,6 +583,12 @@ static void parse_BootstrapData( vlc_object_t* p_this,
            data_end > data_p &&
            (data_p = parse_asrt( p_this, s, data_p, data_end )) );
 
+    if( ! data_p )
+    {
+        msg_Warn( p_this, "Couldn't find afrt data" );
+        return;
+    }
+
     uint8_t afrt_count = *data_p;
     data_p++;
 



More information about the vlc-commits mailing list