Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Bug in handling illegal utf-8 sequence

Closed / Fixed1073daf086fa8d32be591ad6ec640ef9868df5c0Created 4 years agoUpdated 4 years ago
Descriptionwiki2022-09-12 14:26:46
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}}
Referenced by2
jan.nijtmanswiki2022-09-12 14:48:38

Adapted testcase and proposed fix [here]

jan.nijtmans Closed ticket [1073daf086]. [History diff]2022-09-21 07:50:39
Log in (anonymous is fine) to add a comment.