[vlc-devel] [PATCH] stream_extractor/archive: Check for NULL return of archive_entry_pathname
Thomas Guillem
thomas at gllm.fr
Fri Jan 5 17:19:12 CET 2018
On Fri, Jan 5, 2018, at 17:12, Marvin Scholz wrote:
> Fixes crash 2a1e0ab3-e9d5-433c-afd8-ec56e6a8968f
Maybe mention breakpad instead of crash.
> ---
> modules/stream_extractor/archive.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/modules/stream_extractor/archive.c b/modules/
> stream_extractor/archive.c
> index 4fdb3b1378..9396c34c3e 100644
> --- a/modules/stream_extractor/archive.c
> +++ b/modules/stream_extractor/archive.c
> @@ -516,6 +516,10 @@ static int ReadDir( stream_directory_t*
> p_directory, input_item_node_t* p_node )
> continue;
>
> char const* path = archive_entry_pathname( entry );
> +
> + if( unlikely( !path ) )
> + break;
Maybe continue here. I guess you don't have the sample ?
> +
> char* mrl = vlc_stream_extractor_CreateMRL( p_directory, path );
>
> if( unlikely( !mrl ) )
> --
> 2.14.3 (Apple Git-98)
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list