Overview
| Artifact ID: | 926cf93eb88fd1c1da31bd993a028f9ef6c8d18acdcc269ba5aa828ce1c7e09c |
|---|---|
| Ticket: | b79df322a927dee6517ed87b918b02117d4a8d2e
Tcl_NewUnicodeObj truncates strings |
| User & Date: | apnadkarni on 2022-07-12 11:20:56 |
Changes
- closedate changed to: "2459772.97287345"
- icomment:
Ok, there are multiple issues. First, `Tcl_GetUnicodeFromObj` is missing a `numChars < 0` test. Second, I take back my mea culpa. I was right earlier. `TclGetUnicodeFromObj` (which takes `unsigned short` strings) calls `SetStringFromAny` which converts the object's internal representation to a `UniCharString`, not a String which is what `TclGetUnicodeFromObj` expects with obviously errnoneous results. Fixing and adding tests.
- login: "apnadkarni"
- mimetype: "text/x-markdown"