[Bug 208965] extattr(2) doesn't allow attribute names of length EXTATTR_MAXNAMELEN
[email protected] Mon, 27 Apr 2020 02:02:55 +0000
| Newsgroups | gmane.os.freebsd.devel.amd64 |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208965 --- Comment #2 from Conrad Meyer <[email protected]> --- I believe this is due to copyinstr(), which works with NUL-terminated strings (and lengths), while the stack buffer in sys_extattr_set_fd(), etc, are only sized to EXTATTR_MAXNAMELEN. To fix this I think we just need to size the buffers one larger to allow for the trailing NUL copyinstr expects. -- You are receiving this mail because: You are on the CC list for the bug.