Overview
| Artifact ID: | 17932c90ba51800fd66589b7409a5cd2b126e11f06e8410a15951fb8f94b736b |
|---|---|
| Ticket: | fb368527aeed240f2b345be96119ea66e1fce6fb
String truncation in encoding > 2GB length |
| User & Date: | apnadkarni on 2023-02-27 01:57:52 |
Changes
- icomment:
I'm sorry but those functions are not mentioned in that TIP and a statement like *Change the type of the size parameter of many functions which from int (but NOT int *) to size_t.* should not be used as the basis for converting arbitrary function parameters **unless those functions can successfully deal with the larger data sizes** and not just return an error code. I've still not understood what you are espousing as the benefit of expanding the parameter to Tcl_Size and simply returning an error. And I've not grokked why you keep referencing the zipfs example. For one thing, it limits output to MAX_COMMENT_LENGTH and MAXPATHLEN in the two cases so int/size_t is hardly an issue there. Second, even if that were not the case, fixing it via a loop calling Tcl_UtToExternal is very straightforward (as is done in the fix proposed for the current bug). /Ashok
- login: "apnadkarni"
- mimetype: "text/x-markdown"