|
Message-ID: <20221228172057.384bebbe.quinq@fifth.space> Date: Wed, 28 Dec 2022 17:20:57 +0100 From: Quentin Rameau <quinq@...th.space> To: musl@...ts.openwall.com Subject: Re: Bug in swab > > This should also work for coinciding memories > > and musl's implementation does not take that into account. > > The POSIX manpage declares the prototype of swab(3p) with the `restrict` > qualifier [0]. So calling this function with overlapping memory region is > not correct - the bug is in the calling code. On top of that, it explicitly specifies: “If copying takes place between objects that overlap, the behavior is undefined”
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.