ntdll: Don't use strncasecmp for _strnicmp implementation

Jacek Caban jacek at codeweavers.com
Fri Oct 19 05:22:49 CDT 2012

On 10/16/12 13:21, Jacek Caban wrote:
>> How exactly? Do you know more details / urls?
>> Does it return -n ... +n values? Like the memcmp optimization that caused mysql security issue?
>> In that case my patch should work.
> From what I know following call crashes:
> strncasecmp("", "", 1);
> It's probably a corner case for some optimizations.

FWIW it was a known, already fixed, upstream glibc bug:


More information about the wine-devel mailing list