Tcl Source Code

View Ticket
Login
Ticket UUID: 1073daf086fa8d32be591ad6ec640ef9868df5c0
Title: Bug in handling illegal utf-8 sequence
Type: Bug Created on: 2022-09-12 14:26:46
Submitter: jan.nijtmans Assigned to: jan.nijtmans
Subsystem: 44. UTF-8 Strings Severity: Minor
Priority: 5 Medium Last modified: 2022-09-21 07:50:39
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2022-09-21 07:50:39
Version: 8.6.12
Description:

When feeding the utf-8 decoder with "ABC\xE2", this leads to a crash. Demo: change testcase io-60.1 slightly, writing "ABC" before the (already written) \xE2. This leads to a crash:

---- Result was:
1 {gets ABC gets {} catch {child process exited abnormally}}

User Comments:
jan.nijtmans added on 2022-09-12 14:48:38:

Adapted testcase and proposed fix [7c67f503d03e0136|here]