From: Colin Vidal Date: Wed, 8 Jul 2026 09:03:52 +0000 (+0200) Subject: fix: dev: Detect UTF-16 surrogates in `isc_utf8_valid()` X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=dfefde8481ae6469740dfceeae17b1fe4dcdc256;p=thirdparty%2Fbind9.git 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 --- dfefde8481ae6469740dfceeae17b1fe4dcdc256