Commit 55c7a24d authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

taglib: fix potential null dereference.

(cherry picked from commit e7bfbd1dd509bb8bf569ce59c63b633f2ef9fc9a)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d7567c3f
...@@ -320,10 +320,14 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_meta_t* p_demux_meta, vlc_ ...@@ -320,10 +320,14 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_meta_t* p_demux_meta, vlc_
p_attachment = vlc_input_attachment_New( psz_name, psz_mime, p_attachment = vlc_input_attachment_New( psz_name, psz_mime,
psz_description, p_data, i_data ); psz_description, p_data, i_data );
if( p_attachment ) if( !p_attachment )
TAB_APPEND_CAST( (input_attachment_t**), {
p_demux_meta->i_attachments, p_demux_meta->attachments, free( psz_description );
p_attachment ); continue;
}
TAB_APPEND_CAST( (input_attachment_t**),
p_demux_meta->i_attachments, p_demux_meta->attachments,
p_attachment );
free( psz_description ); free( psz_description );
unsigned i_pic_type = p_apic->type(); unsigned i_pic_type = p_apic->type();
......
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