From: Tristan Matthews Date: Wed, 16 Oct 2024 19:29:35 +0000 (-0400) Subject: hds: fix crash if bootstrap data or URL are missing X-Git-Tag: archive/raspbian/3.0.21-7+rpi1^2~46 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=99d80a21c4a1d11f482849013cedb900d390e6d5;p=vlc.git hds: fix crash if bootstrap data or URL are missing (cherry picked from commit 01934b339cf5f467c9c2e3a7fb61c7458347684c) Gbp-Pq: Name 0080-hds-fix-crash-if-bootstrap-data-or-URL-are-missing.patch --- diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c index 631691f6..4d55538a 100644 --- a/modules/stream_filter/hds/hds.c +++ b/modules/stream_filter/hds/hds.c @@ -1557,7 +1557,7 @@ static int parse_Manifest( stream_t *s, manifest_t *m ) new_stream->metadata_len = medias[i].metadata_len; } - if( ! sys->live ) + if( ! sys->live && bootstraps[j].data ) { parse_BootstrapData( (vlc_object_t*)s, new_stream, @@ -1579,7 +1579,7 @@ static int parse_Manifest( stream_t *s, manifest_t *m ) total_duration += chunk->duration; } } - else + else if( bootstraps[j].url ) { if( !(new_stream->abst_url = strdup( bootstraps[j].url ) ) ) {