my strstr is broken

Siddhesh Poyarekar siddhesh.poyarekar@gmail.com
Tue Sep 11 14:21:00 GMT 2018


On Tue, 11 Sep 2018 at 19:24, Michael Brunnbauer <brunni@netestate.de> wrote:
> I attached my code as file to my first mail. But your program works as well:
>
> s = (nil)
> Segmentation fault
>
> Some info about my environment:
>
> Linux Kernel 4.9.124 (recently updated from 3.16)
> Glibc 2.28
> gcc 7.3.0

Is this a non-x86 architecture?  I can reproduce this on the glibc
2.28 tag when I hack the ifunc resolver to ignore
__strstr_sse2_unaligned and always use the stock __strstr.

It looks like the test case is fixed on trunk, with[1], but I'll take
a closer look at it later to confirm.

Siddhesh

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=284f42bc778e487dfd5dff5c01959f93b9e0c4f5

-- 
http://siddhesh.in



More information about the Libc-help mailing list