CVE-2015-5330: strupper_talloc_n_handle(): properly count characters
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 24 Nov 2015 00:49:09 +0000 (13:49 +1300)
committerRalph Boehme <slow@samba.org>
Wed, 9 Dec 2015 16:17:05 +0000 (17:17 +0100)
commita561ae6294fa926bf3a15b9aaf3d18d25d5e971f
treea59aa31b2b16fe1de4a06850a48949d5f49afc77
parent5f3c7541c2f10ac2174538288f6569af587d69f0
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