Skip to content
Snippets Groups Projects
Commit b6a50574 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Hugo Beauzée-Luyssen
Browse files

meta_engine: fix junk at end or raw unterminated ID3 text

(cherry picked from commit 4f74c5ca)
parent 97612c39
No related branches found
No related tags found
2 merge requests!3533Backport MR 3236 to 3.0.x,!1777[3.0] meta_engine: fix junk at end or raw unterminated ID3 text
Pipeline #210879 passed with stage
in 12 minutes and 53 seconds
......@@ -47,7 +47,7 @@ static const char * ID3TextConv( const uint8_t *p_buf, size_t i_buf,
psz = p_alloc = (char *) malloc( i_buf + 1 );
if( p_alloc )
{
memcpy( p_alloc, p_buf, i_buf - 1 );
memcpy( p_alloc, p_buf, i_buf );
p_alloc[i_buf] = '\0';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment