Overview
| Artifact ID: | 4d45393b11c02798b96dd0c30dd2d88fb377b3556d680fedc653c700d9778049 |
|---|---|
| Ticket: | 0265750233183103c98714f6005a9b842bdfee9c
invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8.a |
| User & Date: | dgp on 2023-03-22 16:15:59 |
Changes
- icomment:
The problem here drills down to an error in Tcl_UtfCharComplete(). Tcl_UtfCharComplete("\xC1", 1) returns true, indicating that the single byte C1 is a complete UTF-8 character. It isn't. Also acting on that answer is incompatible with how Tcl_UtfToUniChar() is coded, and protection of calls to that routine are the primary reason Tcl_UtfCharComplete() exists. The fix is just to change the value of complete[0xC1] from 1 to 2. The value of totalBytes[0xC1] is also 1 instead of 2 which hints at the possibility of more problems. I have not yet drilled into the history to see when these values arrived and what competing needs they are meant to serve. - login: "dgp"
- mimetype: "text/plain"