|
Message-ID: <20140321170745.GC27448@port70.net> Date: Fri, 21 Mar 2014 18:07:45 +0100 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: src/string/strstr.c, src/string/wcsstr.c: wrong estimates for MIN(l,63)? * Rich Felker <dalias@...ifal.cx> [2014-03-21 12:48:17 -0400]: > On Fri, Mar 21, 2014 at 03:07:22PM +0100, Yves Bastide wrote: > > /* 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. the comment is wrong though z grows by at least max(63,l) unless end-of-string is reached
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.