vlc | branch: master | Tristan Matthews <[email protected]> | 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++;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to