Commit 577f6f28 authored by Francois Cartegnie's avatar Francois Cartegnie

mux: ogg: kill out of bound access warning for contenttypeless codecs.

parent f3599e8f
...@@ -837,12 +837,14 @@ static void OggGetSkeletonFisbone( uint8_t **pp_buffer, long *pi_size, ...@@ -837,12 +837,14 @@ static void OggGetSkeletonFisbone( uint8_t **pp_buffer, long *pi_size,
if ( p_input->p_fmt->p_extra ) if ( p_input->p_fmt->p_extra )
SetDWLE( &(*pp_buffer)[44], xiph_CountHeaders( p_input->p_fmt->p_extra, p_input->p_fmt->i_extra ) ); SetDWLE( &(*pp_buffer)[44], xiph_CountHeaders( p_input->p_fmt->p_extra, p_input->p_fmt->i_extra ) );
psz_header = *pp_buffer + FISBONE_BASE_SIZE; if ( headers.i_size > 0 )
memcpy( psz_header, headers.psz_content_type, strlen( headers.psz_content_type ) ); {
psz_header += strlen( headers.psz_content_type ); psz_header = *pp_buffer + FISBONE_BASE_SIZE;
if ( headers.psz_role ) memcpy( psz_header, headers.psz_content_type, strlen( headers.psz_content_type ) );
memcpy( psz_header, headers.psz_role, strlen( headers.psz_role ) ); psz_header += strlen( headers.psz_content_type );
if ( headers.psz_role )
memcpy( psz_header, headers.psz_role, strlen( headers.psz_role ) );
}
*pi_size = FISBONE_BASE_SIZE + headers.i_size; *pi_size = FISBONE_BASE_SIZE + headers.i_size;
free( headers.psz_content_type ); free( headers.psz_content_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