[vlc-devel] [PATCH] stream_extractor/archive: Check for NULL return of archive_entry_pathname
Marvin Scholz
epirat07 at gmail.com
Fri Jan 5 17:12:04 CET 2018
Fixes crash 2a1e0ab3-e9d5-433c-afd8-ec56e6a8968f
---
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 ) )
--
2.14.3 (Apple Git-98)
More information about the vlc-devel
mailing list