From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Last call for bugfixes for 1.0
Date: Sat, 15 Mar 2014 18:26:51 -0400 [thread overview]
Message-ID: <20140315222651.GB26358@brightrain.aerifal.cx> (raw)
In-Reply-To: <5324C625.5020303@gcom.com>
On Sat, Mar 15, 2014 at 04:29:09PM -0500, David Grothe wrote:
> Rich:
>
> I notice that the library does not have a routine for rawmemchr. I
Unfortunately this is outside the scope of the freeze, but I think we
could add it right after the release.
> suppose it could just be defined as memchr(ptr, c, INT_MAX).
No, it definitely can't. This could easily return the wrong value
(e.g. if c first occurs past offset INT_MAX) and it also invokes UB
(since there's no guarantee memchr does not read past the first
instance of c).
Rich
next prev parent reply other threads:[~2014-03-15 22:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 7:52 Rich Felker
2014-03-15 21:29 ` David Grothe
2014-03-15 22:26 ` Rich Felker [this message]
2014-03-16 15:08 ` Thomas Kreuzer
2014-03-16 15:25 ` Rich Felker
2014-03-16 18:28 ` Thomas Kreuzer
2014-03-16 19:06 ` Rich Felker
2014-03-17 1:34 ` orc
2014-03-17 1:37 ` Rich Felker
2014-03-17 3:28 ` orc
2014-03-17 3:41 ` Rich Felker
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=20140315222651.GB26358@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--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).