]> git.ipfire.org Git - thirdparty/samba.git/commit
util/iconv: reject improperly packed UTF-8
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 8 Apr 2021 09:18:46 +0000 (21:18 +1200)
committerJeremy Allison <jra@samba.org>
Fri, 18 Jun 2021 03:39:28 +0000 (03:39 +0000)
commit1ea1816629104e16d9b180bee8f4ccc6292869ed
tree80907e70703c0849a69981d57ea10b0913b2cddf
parent50047588c0c8da2e1ffa0b08a8dc5d31e49f6a3b
util/iconv: reject improperly packed UTF-8

If we allow a string that encodes say '\0' as a multi-byte sequence,
we are open to confusion where we mix NUL terminated strings with
sized data blobs, which is to say EVERYWHERE.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14684

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/charset/iconv.c
selftest/knownfail.d/str-utf8 [deleted file]