Overview
| Artifact ID: | 5418945a3063ae6ee15f6d3c00cc03f6b9c34ef4415f1fd3d4ef8c10d4c1caa0 |
|---|---|
| Ticket: | fc4393e9b04b2573642251a6aeaf06468339cd55
UnicodeToUtfProc bogus in [edce885a5c] |
| User & Date: | chw on 2019-12-08 01:55:41 |
Changes
- closedate changed to: "2458825.58033601"
- closer changed to: "chw"
- icomment:
Most likely, I very was mislead in my guesstimations, but then added I this (wrong) test case to encoding.test: test encoding-16.3 {UnicodeToUtfProc} -constraints fullutf -body { set val [encoding convertfrom unicode \ [testbytestring "\xdc\xdc\xd8\xd8\xee\xee"]] list [format %x [scan $val %c]] } -result [list dcdc] and got for valgrind'ing TCL_UTF_MAX=4 and TCL_UTF_MAX=6 otherwise not present indications of: ==31547== Conditional jump or move depends on uninitialised value(s) ==31547== at 0x2A1C44: Tcl_UniCharToUtf (tclUtf.c:161) ==31547== by 0x211512: UtfToUtfProc (tclEncoding.c:2384) ==31547== by 0x211110: UtfIntToUtfExtProc (tclEncoding.c:2199) ==31547== by 0x20FA04: Tcl_UtfToExternal (tclEncoding.c:1429) ==31547== by 0x24C289: Write (tclIO.c:4294) ==31547== by 0x24BFA8: Tcl_WriteObj (tclIO.c:4168) ==31547== by 0x255E3E: Tcl_PutsObjCmd (tclIOCmd.c:185) ==31547== by 0x14F97A: Dispatch (tclBasic.c:4456) ==31547== by 0x14FA00: TclNRRunCallbacks (tclBasic.c:4492) ==31547== by 0x14F2D6: Tcl_EvalObjv (tclBasic.c:4215) ==31547== by 0x151713: TclEvalEx (tclBasic.c:5361) ==31547== by 0x262AED: Tcl_FSEvalFileEx (tclIOUtil.c:1824) ... and ==31547== Conditional jump or move depends on uninitialised value(s) ==31547== at 0x2A1C29: Tcl_UniCharToUtf (tclUtf.c:161) ==31547== by 0x211512: UtfToUtfProc (tclEncoding.c:2384) ==31547== by 0x211165: UtfExtToUtfIntProc (tclEncoding.c:2248) ==31547== by 0x20F724: Tcl_ExternalToUtf (tclEncoding.c:1257) ==31547== by 0x24DB5C: FilterInputBytes (tclIO.c:5306) ==31547== by 0x24C9AA: Tcl_GetsObj (tclIO.c:4576) ==31547== by 0x2561B6: Tcl_GetsObjCmd (tclIOCmd.c:327) ==31547== by 0x14F97A: Dispatch (tclBasic.c:4456) ==31547== by 0x14FA00: TclNRRunCallbacks (tclBasic.c:4492) ==31547== by 0x14F2D6: Tcl_EvalObjv (tclBasic.c:4215) ==31547== by 0x151713: TclEvalEx (tclBasic.c:5361) ==31547== by 0x262AED: Tcl_FSEvalFileEx (tclIOUtil.c:1824) ... which could indicate a logic problem in the state machine of detecting and handling surrogate pairs. - login: "chw"
- mimetype: "text/plain"