mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
[COV] folder_select buffer overrun
Change-Id: I441e1fa13d3832b3b12e3f46f35ef63fb3c1de02
This commit is contained in:
parent
b309fae2bc
commit
a13ae2afd5
1 changed files with 1 additions and 1 deletions
|
|
@ -516,7 +516,7 @@ static int select_paths(struct folder* root, const char* filenames)
|
|||
|
||||
sstr = lastfnp;
|
||||
lastfnp = fnp;
|
||||
if (len <= 0 || len > buflen)
|
||||
if (len <= 0 || len + 1 >= buflen)
|
||||
continue;
|
||||
strlcpy(buf, sstr, len + 1);
|
||||
struct child *item = find_from_filename(buf, root);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue