|
|
|
|
|
by just_curioussss
3891 days ago
|
|
Depending on the value of namelen, and the padding at the end of the struct FTSENT, struct p->fts_statp will occupy one byte out of bounds of the allocated memory. The comment made in the code is incorrect: Since the fts_name field is declared to be of size 1, the fts_name pointer is namelen + 2 before the first possible address of the stat structure. namelen + 1 is the first possible address for the stat structure. |
|