|
Message-ID: <20140321164817.GJ26358@brightrain.aerifal.cx> Date: Fri, 21 Mar 2014 12:48:17 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: src/string/strstr.c, src/string/wcsstr.c: wrong estimates for MIN(l,63)? On Fri, Mar 21, 2014 at 03:07:22PM +0100, Yves Bastide wrote: > Hi, > > twoway_strstr and twoway_wcsstr seem to contain a bogus estimation: > > /* Fast estimate for MIN(l,63) */ > size_t grow = l | 63; > > "grow" is thus always at least 63... If you look at how grow is used on the very next line, this should make sense. 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.