assert that length of filename <= DIRSIZ
This commit is contained in:
parent
1957d3e185
commit
44f1ffbe38
@ -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…
Reference in New Issue
Block a user