Correct size argument passed to copyinstr() in linux_mount(): mntfromname
and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
This commit is contained in:
parent
2a9e62dd03
commit
42b110f6f0
@ -741,10 +741,10 @@ linux_mount(struct thread *td, struct linux_mount_args *args)
|
||||
NULL);
|
||||
if (error)
|
||||
return (error);
|
||||
error = copyinstr(args->specialfile, mntfromname, MFSNAMELEN - 1, NULL);
|
||||
error = copyinstr(args->specialfile, mntfromname, MNAMELEN - 1, NULL);
|
||||
if (error)
|
||||
return (error);
|
||||
error = copyinstr(args->dir, mntonname, MFSNAMELEN - 1, NULL);
|
||||
error = copyinstr(args->dir, mntonname, MNAMELEN - 1, NULL);
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user