Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8aa9d207a5fd85f38e9489feadd12d70bf5040ea
Ticket: 1968245fffffffffffffffffffffffffffffffff
Tcl_LogCommandInfo() fails with length == -1
User & Date: cdarroch on 2008-05-20 20:36:38
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    With Tcl 8.5.2, Tcl_LogCommandInfo() uses its length
    argument in the following test before checking whether
    length is negative, which a caller may use to indicate
    that all bytes of the command argument (up to the first
    null byte) should be used.  At least, the documentation
    and code comments imply this is how the function
    should operate, and it used to accept -1 as a length
    value in 8.4.
    
    Attached is a simple patch which checks for this and
    uses strlen() to determine the length of the command
    string.
    
  4. foundin changed to: "obsolete: 8.5.2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "cdarroch"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to: "Tcl_LogCommandInfo() fails with length == -1"
  12. type changed to: "Bug"