Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a8d1e2ee0365c03d55a66382750ff0d3b74c59d7d53d2cd7b371faaf06783fbd
Ticket: 1fe745559aed47f050b3ba7a5adfae8511bc0a56
8.7, 9.0: Conditional jump or move depends on uninitialised value in Tcl_UniCharToUtf
User & Date: pointsman on 2022-02-07 14:26:39
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    This script:
    
    foreach str {
        \uD802
    } {
        puts [string length $str]
    }
    
    running under valgrind with a -DPURIFY 8.7 or 9.0 build (both current branch head)
    reports:
    
     Conditional jump or move depends on uninitialised value(s)
        at 0x4DFD828: Tcl_UniCharToUtf (tclUtf.c:234)
        by 0x4DCD952: TclParseBackslash (tclParse.c:955)
        by 0x4E00DA8: TclCopyAndCollapse (tclUtil.c:806)
        by 0x4DBAD22: SetListFromAny (tclListObj.c:2087)
        by 0x4DB7BBA: TclListObjCopy (tclListObj.c:433)
        by 0x4CA5B11: EachloopCmd (tclCmdAH.c:2681)
        by 0x4CA5673: TclNRForeachCmd (tclCmdAH.c:2577)
        by 0x4C8EB4B: Dispatch (tclBasic.c:4923)
        by 0x4C8EBD1: TclNRRunCallbacks (tclBasic.c:4963)
        by 0x4C8E499: Tcl_EvalObjv (tclBasic.c:4682)
        by 0x4C90950: TclEvalEx (tclBasic.c:5838)
        by 0x4DB0C85: Tcl_FSEvalFileEx (tclIOUtil.c:1782)
      Uninitialised value was created by a heap allocation
        at 0x4A34E6D: malloc (vg_replace_malloc.c:309)
        by 0x4C81F7F: TclpAlloc (tclAlloc.c:699)
        by 0x4DC8296: Tcl_InitStringRep (tclObj.c:1824)
        by 0x4DBAC88: SetListFromAny (tclListObj.c:2075)
        by 0x4DB7BBA: TclListObjCopy (tclListObj.c:433)
        by 0x4CA5B11: EachloopCmd (tclCmdAH.c:2681)
        by 0x4CA5673: TclNRForeachCmd (tclCmdAH.c:2577)
        by 0x4C8EB4B: Dispatch (tclBasic.c:4923)
        by 0x4C8EBD1: TclNRRunCallbacks (tclBasic.c:4963)
        by 0x4C8E499: Tcl_EvalObjv (tclBasic.c:4682)
        by 0x4C90950: TclEvalEx (tclBasic.c:5838)
        by 0x4DB0C85: Tcl_FSEvalFileEx (tclIOUtil.c:1782)
    
  5. foundin changed to: "8.7, 9.0"
  6. is_private changed to: "0"
  7. login: "pointsman"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pointsman"
  14. subsystem changed to: "44. UTF-8 Strings"
  15. title changed to:
    8.7, 9.0: Conditional jump or move depends on uninitialised value in Tcl_UniCharToUtf
    
  16. type changed to: "Bug"