Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 57ad7ff089317ca70fc024bc649742cd3bed7776
Ticket: 3197864fffffffffffffffffffffffffffffffff
pointer truncation on Win64 TCL_MEM_DEBUG builds
User & Date: treectrl on 2011-03-02 22:05:51
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In generic/tclCkalloc.c there are 3 places where a pointer is cast to "unsigned long" which
    is only 32bits (on MS Windows at least) resulting in truncation of 64bit memory addresses.
    The "unsigned long" should be replaced with "size_t" or similar.
    
    memp = (struct mem_header *) (((unsigned long) ptr) - BODY_OFFSET);
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  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: "treectrl"
  10. subsystem changed to: "41. Memory Allocation"
  11. title changed to: "pointer truncation on Win64 TCL_MEM_DEBUG builds"
  12. type changed to: "Bug"