From cba2e7e3fec3c781230570f5d1ef070625eeeda8 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 20 Mar 2023 09:15:13 +0000 Subject: Fix some invalid unicode handling issues with suspendable ports. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes . Based on the implementation in ports.c. I don't understand what this code is really doing, but the suspendable ports implementation differs from the similar C code for a couple of inequalities. * module/ice-9/suspendable-ports.scm (decode-utf8, bad-utf8-len): Flip a couple of inequalities. * test-suite/tests/ports.test ("string ports"): Add additional invalid UTF-8 test case. * NEWS: Update. Signed-off-by: Ludovic Courtès --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index a55cb583b..167b0f2ad 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,9 @@ the compiler reports it as "possibly unused". * Bug fixes +** (ice-9 suspendable-ports) incorrect UTF-8 decoding + (https://bugs.gnu.org/62290) + * Hashing of UTF-8 symbols with non-ASCII characters avoids corruption This issue could cause `scm_from_utf8_symbol' and -- cgit v1.2.1