Created attachment 53319 [details] add support for strcasecmp/strncasecmp Version: 3.7 SVN OS: Linux Reproducible: Didn't try Actual Results: ==23300== Use of uninitialised value of size 8 ==23300== at 0x33D63277E4: __strncasecmp_l_sse42 (strcmp.S:402) Expected Results: no diagnostique Fedora14/x64 gcc-4.5.1
Yeah, this is quite severe problem in valgrind against recentish glibcs. +/* ??? STRCASECMP(VG_Z_LD_LINUX_X86_64_SO_2, strcasecmp) */ +/* ??? STRCASECMP(VG_Z_LD64_SO_1, strcasecmp) */ is unnecessary, neither strcasecmp nor strncasecmp is ever present in ld.so. That said, the patch should also handle strcasecmp_l and strncasecmp_l, which will need some configure magic to detect tolower_l/strcasecmp_l. This could be also solvable using suppressions, but then we wouldn't diagnose invalid uses of strcasecmp by the apps.
What do the _l variants do? They don't seem to have any manual page on my F14 systems...
See http://www.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html
Created attachment 53355 [details] valgrind-3.6.0-strcasecmp.patch Updated patch to also handle strcasecmp_l and strncasecmp_l.
Looks like we crossed - I just committed an extended version of the patch as r11478.
*** Bug 282979 has been marked as a duplicate of this bug. ***