From: Quentin Rameau <quinq@fifth.space>
To: musl@lists.openwall.com
Subject: Re: [musl] Bug in swab
Date: Wed, 28 Dec 2022 17:20:57 +0100 [thread overview]
Message-ID: <20221228172057.384bebbe.quinq@fifth.space> (raw)
In-Reply-To: <20221228120643.txqcsrlok2i7qf5h@gen2.localdomain>
> > 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”
next prev parent reply other threads:[~2022-12-28 16:21 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 [this message]
2022-12-29 9:50 ` Alex Xu (Hello71)
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=20221228172057.384bebbe.quinq@fifth.space \
--to=quinq@fifth.space \
--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).