Commit c5543363 authored by Rafaël Carré's avatar Rafaël Carré

Fixes buffer overflow introduced in [18129]

parent a1678930
......@@ -393,7 +393,7 @@ static int ReadDir( playlist_t *p_playlist, const char *psz_name,
{
const char *entry = pp_dir_content[i];
int i_size_entry = strlen( psz_name ) +
strlen( entry ) + 2;
strlen( entry ) + 9; /* "file://" + "/" + '\0' */
char psz_uri[i_size_entry];
sprintf( psz_uri, "file://%s/%s", psz_name, entry);
......
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