Re: Usage of strncpy in the kernel

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Wed, Jan 08, 2025 at 06:30:36AM +0000, RVP wrote:
> Over-aggressive dead store elimination (DSE) by compilers, I think. But, I
> would categorize these as bugs if they change strncpy() semantics.

Indeed, and also they can't be dead stores in the context this came up
because we copyout() the result (or the (non-)initialized parts would not
leak to userspace.

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.