Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3e8e8d281a43f6602b9bc270d0de31db79f7a4a0
Ticket: 1259431fffffffffffffffffffffffffffffffff
Check for 0 byte allocation in ckalloc
User & Date: mistachkin on 2005-08-15 08:33:55
Changes

  1. icomment:
    Logged In: YES 
    user_id=113501
    
    I don't think we should take this patch, it breaks
    compatibility with malloc(), which is technically allowed to
    allocate a "zero byte item" and return it.
    
    The ANSI C standard states that this is "implementation
    defined"; however, we should probably just treat it as a one
    byte request.
    
    
    
  2. login: "mistachkin"
  3. mimetype: "text/plain"
  4. username: "mistachkin"