Browse Source

asx: fix potential null dereference

Ref. #29114
cherry-pick-c5513cf9
Steve Lhomme 1 year ago
parent
commit
57b68c9714
  1. 6
      modules/demux/playlist/asx.c

6
modules/demux/playlist/asx.c

@ -614,7 +614,11 @@ static stream_t* PreparseStream( stream_t *p_demux )
else
{
//strip xml prologue to avoid double conversion
char *tmp = strstr( psz_source, "?>" ) + 2;
char *tmp = strstr( psz_source, "?>" );
if ( tmp )
tmp += 2;
else
tmp = psz_source;
tmp = FromCharset( encoding, tmp, strlen( tmp ) );
free( psz_source );
free( encoding );

Loading…
Cancel
Save