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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 Dec 2015 09:23:27 +0000 (10:23 +0100)
commit8d718586d3f53baff81adfccb17da98e1ad029fd
tree9bd384c8131a6f973f133936ffe2f7018429162c
parentfc9e5048bf2bb2f5f0f538735dbc5661f2b4ab0f
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