Commit c3c3d670 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

stream_extractor/archive: prevent null-pointer dereference

Given that p_sys->p_obj is yet to be initialized with the value of the
obj, the implementation should use the latter (given that the former
will be zero-initialized, but nothing more).
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent c1ec8734
......@@ -378,7 +378,7 @@ static int archive_seek_subentry( private_sys_t* p_sys, char const* psz_subentry
static private_sys_t* setup( vlc_object_t* obj, stream_t* source )
private_sys_t* p_sys = calloc( 1, sizeof( *p_sys ) );
char* psz_files = var_InheritString( p_sys->p_obj, "concat-list" );
char* psz_files = var_InheritString( obj, "concat-list" );
if( unlikely( !p_sys ) )
goto error;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment