Date: Thu, 29 Dec 2022 10:50:34 +0100 From: "Alex Xu (Hello71)" <alex_y_xu@...oo.ca> To: musl@...ts.openwall.com Subject: Re: Bug in swab Excerpts from NRK's message of December 28, 2022 1:06 pm: > On Wed, Dec 28, 2022 at 05:01:53PM +0530, Bugs Reporter wrote: >> 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 . So calling this function with overlapping memory region is > not correct - the bug is in the calling code. > > : https://man7.org/linux/man-pages/man3/swab.3p.html > > - NRK > Actually, the originally linked https://man7.org/linux/man-pages/man3/swab.3.html also uses restrict. It was added in 2021: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/man3/swab.3?id=cd2b76c7dc4a607d952f1ae77fdee2dd7dc9c3dc. Cheers, Alex.
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.