Overview
| Artifact ID: | f51b917686337db5d370a3884096703d489d509763515b2f9115228200c141c5 |
|---|---|
| Ticket: | fb368527aeed240f2b345be96119ea66e1fce6fb
String truncation in encoding > 2GB length |
| User & Date: | jan.nijtmans on 2023-02-26 16:27:45 |
Changes
- icomment:
> I suggest they be kept as 32-bit length functions, at least for now, since the underlying encoders deal with 32-bit lengths. I'll plan on making that change back. Please don't see: [https://core.tcl-lang.org/tcl/file?udc=1&ln=446-447&ci=3513e43ea1c3bb5c&name=generic%2FtclZlib.c] What should be done is make Tcl_UtfToExternal()/Tcl_ExternalToUtf() report the error, e.g. by returning TCL_CONVERT_NOSPACE Thinking about it, it's not even necessary that those functions handle all data available. They just handle the data they can, and report the reason when they stop early.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"