Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5b689fab1071eedcd2f03fe60f22bffe323eeb73
Ticket: 2557796fffffffffffffffffffffffffffffffff
TclpAlloc() - no overflow protection
User & Date: dgp on 2009-02-02 18:31:53
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The TclpAlloc() implementation in
    tclThreadAlloc.c accepts an
    (unsigned int) argument "reqSize"
    for the number of bytes the caller
    needs.
    
    If a value greater than
    (UINT_MAX - sizeof(Block)) is passed
    in, then the calculation of the total
    allocation needed including overhead
    will overflow the unsigned int range,
    and on systems where the range of
    size_t is no bigger than the range
    of unsigned int, the value of "size"
    will overflow and the comparions to
    MAXALLOC, etc. may well return bogus
    results.
    
    
  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: "dgp"
  10. subsystem changed to: "41. Memory Allocation"
  11. title changed to: "TclpAlloc() - no overflow protection"
  12. type changed to: "Bug"