Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140315222651.GB26358@brightrain.aerifal.cx>
Date: Sat, 15 Mar 2014 18:26:51 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: Last call for bugfixes for 1.0

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

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.