ASN1: limit the Unicode code point range in UTF8_getc() and UTF8_putc()
authorBeat Bolli <dev@drbeat.li>
Sun, 14 Feb 2021 18:27:56 +0000 (19:27 +0100)
committerPauli <ppzgs1@gmail.com>
Thu, 18 Mar 2021 04:12:48 +0000 (14:12 +1000)
commitba64e5a92a6f009e311ad1c3565817820a1632a4
tree0f6c3c34f118d7a1df64b8c833f19980c1472070
parent90165623a50fa30454c4a2f9bece7af2c611b731
ASN1: limit the Unicode code point range in UTF8_getc() and UTF8_putc()

Since the Unicode 4.0.0 standard, the valid code point range is U+0000
to U+10FFFF. Make code points outside this range invalid when converting
from/to UTF-8.

Signed-off-by: Beat Bolli <dev@drbeat.li>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14185)
crypto/asn1/a_utf8.c