[vlc-commits] stream_extractor/archive: Check for NULL return of archive_entry_pathname
Marvin Scholz
git at videolan.org
Fri Jan 5 20:46:11 CET 2018
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Jan 5 17:11:06 2018 +0100| [0953abb4174cc52c631b0e9effbfb6c6cbd261ea] | committer: Marvin Scholz
stream_extractor/archive: Check for NULL return of archive_entry_pathname
Fixes CD 2a1e0ab3-e9d5-433c-afd8-ec56e6a8968f
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0953abb4174cc52c631b0e9effbfb6c6cbd261ea
---
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;
+
char* mrl = vlc_stream_extractor_CreateMRL( p_directory, path );
if( unlikely( !mrl ) )
More information about the vlc-commits
mailing list