mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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 */
|
/* Next iteration */
|
||||||
*q = c;
|
*q = c;
|
||||||
|
if (c == '\0')
|
||||||
|
break;
|
||||||
p = q + 1;
|
p = q + 1;
|
||||||
q = strchr (p, PATH_SEP);
|
q = strchr (p, PATH_SEP);
|
||||||
if (q == NULL)
|
if (q == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user