[vlc-devel] [PATCH] fix abort (crash) if EPG string is not UTF8
Francois Cartegnie
fcvlcdev at free.fr
Tue Nov 21 17:04:37 CET 2017
Le 20/11/2017 à 22:52, Abylay Ospan a écrit :
> {
> free( p_meta->ppsz_meta[meta_type] );
> - assert( psz_val == NULL || IsUTF8( psz_val ) );
> - p_meta->ppsz_meta[meta_type] = psz_val ? strdup( psz_val ) : NULL;
> + p_meta->ppsz_meta[meta_type] = (psz_val && IsUTF8( psz_val )) ? strdup( psz_val ) : NULL;
> }
>
> const char *vlc_meta_Get( const vlc_meta_t *p_meta, vlc_meta_type_t meta_type )
>
The right way to fix that kind of issues is to open a ticket and submit
a sample, not to hide the bug.
--
Francois Cartegnie
VideoLAN - VLC Developer
More information about the vlc-devel
mailing list