]> git.ipfire.org Git - thirdparty/bind9.git/commit
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)
commitdfefde8481ae6469740dfceeae17b1fe4dcdc256
tree602c49763693dab8c7eee7496cc5682e6a7c21e5
parent094efe68e35e885953eb0e682750ebeef26aaee5
parent0249e64664a81a6841e9c7c766e8420b28c10f77
fix: dev: Detect UTF-16 surrogates in `isc_utf8_valid()`

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