lib: strings: Simplify strcasecmp
authorVolker Lendecke <vl@samba.org>
Tue, 5 Aug 2014 09:21:07 +0000 (09:21 +0000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 1 Sep 2014 19:34:11 +0000 (21:34 +0200)
commitc556d3e4f253bf2161787ce435228aa70ec2fc96
treefd432c39e2d73a89d99aaac9672bfee16ca74f75
parent7c54339555fde4e3703b22c40076c71746454d3e
lib: strings: Simplify strcasecmp

This makes us fallback to strcasecmp early if any INVALID_CODEPOINT
appears. Without this patch we just continue to compare if both strings
happen to have an INVALID_CODEPOINT in the same spot.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10716
smbd constantly crashes when filename contains non-ascii character
lib/util/charset/util_str.c