Merge branch '3605_extfs_buffer_overflow'

* 3605_extfs_buffer_overflow:
  Ticket #3605: extfs: fix buffer overflow.
This commit is contained in:
Andrew Borodin 2016-03-20 11:55:38 +03:00
commit d6f031738c

View File

@ -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)