From: Tristan Matthews Date: Fri, 1 Aug 2014 04:11:45 +0000 (-0400) Subject: hds: fix dereference after NULL check (cid #1224532) X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=6b2fcb1c2cc27e4a7f8e455eb5ba66423d71c8cb hds: fix dereference after NULL check (cid #1224532) --- diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c index 2c0750afdb..5ec1a37e5c 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++;