mailing list of musl libc
 help / color / mirror / code / Atom feed
* src/string/strstr.c, src/string/wcsstr.c: wrong estimates for MIN(l,63)?
@ 2014-03-21 14:07 Yves Bastide
  2014-03-21 16:48 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Yves Bastide @ 2014-03-21 14:07 UTC (permalink / raw)
  To: musl

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...

Regards,

Yves


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-21 18:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-21 14:07 src/string/strstr.c, src/string/wcsstr.c: wrong estimates for MIN(l,63)? Yves Bastide
2014-03-21 16:48 ` Rich Felker
2014-03-21 17:07   ` Szabolcs Nagy
2014-03-21 17:44     ` Rich Felker
2014-03-21 18:10       ` Yves Bastide

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).