[PATCH] Fix __ctype_b_loc aliasing violation
Adam Nemet
anemet@caviumnetworks.com
Fri Nov 7 19:06:00 GMT 2008
Jakub Jelinek writes:
> Yeah, indeed. I can reproduce it, a lot of stuff segfaults in glibc
> compiled with current GCC trunk on x86_64-linux, starting with localedef.
>
> Going through a union is just a workaround for a warning, not real
> fix and indeed this aliasing violation finally caught us.
>
> Here is a fix, tested with gcc 4.4. Guess it would be good if somebody
> tested it on Hurd as well.
Great! Thanks for the fix.
Adam
More information about the Libc-alpha
mailing list