mailing list of musl libc
 help / color / mirror / code / Atom feed
From: NRK <nrk@disroot.org>
To: musl@lists.openwall.com
Subject: Re: [musl] Bug in swab
Date: Wed, 28 Dec 2022 18:06:43 +0600	[thread overview]
Message-ID: <20221228120643.txqcsrlok2i7qf5h@gen2.localdomain> (raw)
In-Reply-To: <CAB_V0MBDH4MgXunpj67uz7fb1+f2qOS+kTsw0kSJG4P4HF3xLw@mail.gmail.com>

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

  reply	other threads:[~2022-12-28 12:07 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 [this message]
2022-12-28 16:20   ` Quentin Rameau
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=20221228120643.txqcsrlok2i7qf5h@gen2.localdomain \
    --to=nrk@disroot.org \
    --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).