Overview
| Artifact ID: | 00598a6406726f77aca3a0e8c27de82c02344458c116c86582ba28f8d3ca0251 |
|---|---|
| Ticket: | ed29806bafd93096f71fb55248258138125805a6
Tcl_UtfToUniChar reads more than TCL_UTF_MAX bytes |
| User & Date: | jan.nijtmans on 2020-05-01 15:14:31 |
Changes
- icomment:
First part of fix committed now to core-8-6-branch, core-8-branch and trunk (done differently on 8.6 compared to 8.7/9.0 due to TIP #389). Keeping open, because there are a lot other calls to Tcl_UtfToUniChar() in the code. They all are suspicious, and should posibly be replaced by TclUtfToUCS4(). There is now a utility macro TclUCS4Complete() that can protect TclUtfToUCS4() against overflow. (naming could be better .... ideas?)
- login: "jan.nijtmans"
- mimetype: "text/plain"