mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Merge branch '3605_extfs_buffer_overflow'
* 3605_extfs_buffer_overflow: Ticket #3605: extfs: fix buffer overflow.
This commit is contained in:
commit
d6f031738c
@ -308,6 +308,8 @@ extfs_find_entry_int (struct entry *dir, const char *name, GSList * list,
|
||||
}
|
||||
/* Next iteration */
|
||||
*q = c;
|
||||
if (c == '\0')
|
||||
break;
|
||||
p = q + 1;
|
||||
q = strchr (p, PATH_SEP);
|
||||
if (q == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user