Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a31a6b7b9e411b9a69e55ba1da854ffb904c9044
Ticket: 443938ffffffffffffffffffffffffffffffffff
malloc routines use wrong cast
User & Date: nobody on 2001-07-23 22:34:35
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The malloc/ckalloc routines such as tcl_Allooc are defined with the size variable explicitly set to 
    "unsigned int".  They should be set to "size_t" (typdef in stdlib.h).  When built on a 64 bit platform 
    such as DEC TRU-64 or Solaris 8 (64 bit mode), this definition causes the programs to build 
    improperly. There were also usages of strncmp and sizeof that were coded as if they were 
    expected to return "unsigne int" instead of "size_t" (unsigned long).
    
    Compiled with gcc 3.0 as well as Solaris 8 Workshop 6.0 cc and DEC V5.1 cc
    
    
    
  4. foundin changed to: "obsolete: 8.3.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "07. Variables"
  10. title changed to: "malloc routines use wrong cast"
  11. type changed to: "Bug"