Overview
| Artifact ID: | 19ffdb743293e485e189121058cad70f3b1e1f7a6f12ca7ec408c47397fc0b96 |
|---|---|
| Ticket: | 165b10396273d81c7bcef3e564537a39eba7404b
Error message of "TclGetBytesFromObj" may include arbitrary character |
| User & Date: | oehhar on 2022-03-15 10:50:56 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
Hi Jan, Don, thank you for your work on propper bytearrays. This is great work. May I ask for a change? Please make sure, that error messages only contain printable ASCII. You never know, what happens with error messages. They are written to the console, logs or data bases and are set over the network. Thus, arbitrary contents may lead to strange bugs. You never know the encoding of the target. Here is an example of current main branch, where *TclGetBytesFromObj* is called with the last argument of the following command. *TclGetBytesFromObj* generates this error message: <verbatim> % encoding convertfrom iso8859-1 \u0141 expected byte sequence but character 0 was 'Ł' (U+000141) </verbatim> See the "Ł" in the error message. I don't want to imagine what happens, if a non printable character is outputted. Thank you and take care, Harald
- foundin changed to: "main"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "11. Conversions from String"
- title changed to:
Error message of "TclGetBytesFromObj" may include arbitrary character
- type changed to: "RFE"