Re: Usage of strncpy in the kernel
nia <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jan 06, 2025 at 03:23:45PM -0500, Mouse wrote: > No, that's not all. It also fills the rest, if any, of the destination > space with more NULs. (This can be useful to, for example, prevent > leaking kernel stack trash to userland.) Unfortunately modern compilers no longer guarantee this is true.