assert that length of filename <= DIRSIZ
This commit is contained in:
parent
1957d3e185
commit
44f1ffbe38
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,8 @@ main(int argc, char *argv[])
|
|||
if(shortname[0] == '_')
|
||||
shortname += 1;
|
||||
|
||||
assert(strlen(shortname) <= DIRSIZ);
|
||||
|
||||
inum = ialloc(T_FILE);
|
||||
|
||||
bzero(&de, sizeof(de));
|
||||
|
|
Loading…
Add table
Reference in a new issue