Re: [PATCH v2] Improve performance of strstr
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Oct 3 11:44, Eric Blake wrote: > On 10/3/18 11:06 AM, Wilco Dijkstra wrote: > > Eric Blake wrote: > > > > > Passing the glibc testsuite isn't all that reassuring, as they just > > > barely had to squash a strstr bug this year that was not caught by their > > > testsuite at the time: > > > > It's better than nothing given newlib doesn't have any testsuite at all... > > Do you know of a proper test for strstr by any chance? > > Nothing that was written from the grounds of code coverage, but between the > glibc test, the gnulib test [1] (which was also recently enhanced to catch > the glibc failure), and your testing (if you want to make that public), > we're probably doing fairly well. A testsuite written for 100% coverage as > determined by gcov, or performed by a fuzzer that aims to get to the same > results, might be even more reassuring; but I'm not asking you to tackle > that. I'm just pointing out that a passing test does not always imply a > passing implementation, if the test was not written with exact knowledge of > every possible branch in the code. > > [1] https://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-strstr.c Anybody going to run this test? Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlu9xZ0ACgkQ9TYGna5E T6DwUxAAoHIBjuaC1+4Cqo/+1jae5WvtPcdYNCnKBgEXbuMQZguD8F41F+9Z7qw0 9S3fXOc52vyLcLfP1OtjRXJdcleAo3b2H3FUxvhoYEN8V2dEL/c4neQNZYVcLbdM ie/QGge9ZpbugMHpYFWZInx7qB5rXshGyH2Co4u/vhHE+B5KP+v6zACpbl5UEClw ESrJAfI/ZZ8ESd1wbOxBaDzDqGY/CV00D4vk17KRxv+Cg22M9+QbbcNCh9gI8pzo 403qerGCiYNCOVleTVMOp7lti7Q+XI2fg5t8/EpYM4m2yTSqHNTKzjejuGvbsK9g EB0f4T9WNFxdOSe5poLn/MdUD65x1n47e9avqvvYWSpYyurHs6QIM2aBCtzpLRzt fAHNKvXGEW+oxvUNhC0cZ9+kDgovIIzQyxnNZ+u56gy1Wg9puxZHMFfQ518DuMAR 0PTe0L5D3fcFoQOayMk6RbtVs8xZKrqU93W1N8wYi84s6kvYtrtog2fuUBZ+YdHT U4N0bQwfxMtJl2uYhxu/X895R+A2UxcskcLqZBT6ugv1FtBvNqDwsOX0vYDDUoJ5 Q60UVO9Laj/t5VG6D6aFpyLLU6BhoBm1Px8C/srR1RD/DLOvAJwHjSQsG/I5p5Lb F+pQ4iDrz507m8WWbqE5HmokypuCxNtwFrc3nNYmwZQxW+DXepU= =cpF2 -----END PGP SIGNATURE-----