Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 54d99bcfd9bce947776aaea4eac8cd767e34db4bbb7228f518a8021dd454c8b9
Ticket: fb368527aeed240f2b345be96119ea66e1fce6fb
String truncation in encoding > 2GB length
User & Date: jan.nijtmans on 2023-02-26 17:03:43
Changes

  1. icomment:
    > Not a good API design imo.
    
    Oh, I agree on that. The Tcl_UtfToExternal()/Tcl_ExternalToUtf() API is simply too complicated. But keeping srcLen of type 'int' will mean that in the zipfs example the output simply will be truncated (stopping at the first 0-byte) without Tcl_UtfToExternal being able to report the error. Returning TCL_CONVERT_NOSPACE is better than returning TCL_OK (but a separate error-code for this case would even be better)
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"