mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca>
To: musl@lists.openwall.com
Subject: Re: [musl] Bug in swab
Date: Thu, 29 Dec 2022 10:50:34 +0100	[thread overview]
Message-ID: <1672307294.7xdask042h.none@localhost> (raw)
In-Reply-To: <20221228120643.txqcsrlok2i7qf5h@gen2.localdomain>

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 [0]. So calling this function with overlapping memory region is
> not correct - the bug is in the calling code.
> 
> [0]: 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.

      parent reply	other threads:[~2022-12-29  9:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-28 11:31 Bugs Reporter
2022-12-28 12:06 ` NRK
2022-12-28 16:20   ` Quentin Rameau
2022-12-29  9:50   ` Alex Xu (Hello71) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1672307294.7xdask042h.none@localhost \
    --to=alex_y_xu@yahoo.ca \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).