[Bug 208965] extattr(2) doesn't allow attribute names of length EXTATTR_MAXNAMELEN
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 27 02:02:56 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208965
--- Comment #2 from Conrad Meyer <cem at freebsd.org> ---
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.
More information about the freebsd-amd64
mailing list