Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8ef3114b5759bc9660497bc9a69d4d196cee8ca9
Ticket: 3129448fffffffffffffffffffffffffffffffff
possible over-allocation on 64-bit platforms
User & Date: nijtmans on 2010-12-06 08:44:52
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Inspired by bug #3127687, noted that on 64-bit
    platforms, where sizeof(integer) == 8, some structures
    are over-allocated because sizeof() might count
    additional padding bytes. That's no big deal, except
    that it is strange anyway to use [4] as the number
    of bytes in the structure.
    
    Solution: use the TclOffset macro to calculate the
    right size, in stead of substracting two sizeof()'s. That
    will correctly take padding bytes into account.
    
    patch attached
    
  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: "nijtmans"
  10. subsystem changed to: "41. Memory Allocation"
  11. title changed to: "possible over-allocation on 64-bit platforms"
  12. type changed to: "Bug"