fixed a unionfs_readdir math issue
PR: 132987 Submitted by: Matthew Fleming <mfleming@isilon.com>
This commit is contained in:
parent
ce3c177ff8
commit
508a31f1a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234944
@ -1642,7 +1642,7 @@ unionfs_readdir(struct vop_readdir_args *ap)
|
||||
pos = newcookies;
|
||||
|
||||
memcpy(pos, cookies_bk, ncookies_bk * sizeof(u_long));
|
||||
pos += ncookies_bk * sizeof(u_long);
|
||||
pos += ncookies_bk;
|
||||
memcpy(pos, *(ap->a_cookies), *(ap->a_ncookies) * sizeof(u_long));
|
||||
free(cookies_bk, M_TEMP);
|
||||
free(*(ap->a_cookies), M_TEMP);
|
||||
|
Loading…
Reference in New Issue
Block a user