]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: Detect UTF-16 surrogates in `isc_utf8_valid()`
authorColin Vidal <colin@isc.org>
Wed, 8 Jul 2026 09:03:52 +0000 (11:03 +0200)
committerColin Vidal <colin@isc.org>
Wed, 8 Jul 2026 09:03:52 +0000 (11:03 +0200)
UTF-8 standard forbid usage of unicode character between the range of
0xD800..0xDFFF (reserved, and used as UTF-16 surrogates, see RFC 3629).

However, `usc_utf8_valid()` was not checking if the encoded unicode
character was in this range, which then would accept invalid UTF-8
strings. This is now fixed.

Closes #6151

Merge branch '6151-utf16-surrogates-detection' into 'main'

See merge request isc-projects/bind9!12345


Trivial merge