CVE-2015-5330: strupper_talloc_n_handle(): properly count characters
commita118d4220ed85749c07fb43c1229d9e2fecbea6b
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 24 Nov 2015 00:49:09 +0000 (24 13:49 +1300)
committerRalph Boehme <slow@samba.org>
Wed, 9 Dec 2015 16:19:52 +0000 (9 17:19 +0100)
tree49dd6bf132214401b7ec6138cef7c6e120f8d8da
parentba5dbda6d0174a59d221c45cca52ecd232820d48
CVE-2015-5330: strupper_talloc_n_handle(): properly count characters

When a codepoint eats more than one byte we really want to know,
especially if the string is not NUL terminated.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11599

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Pair-programmed-with: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/util/charset/util_unistr.c