Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c64b4e9c2407096ae5d2f9bf815a2724f19799cd
Ticket: 2494093fffffffffffffffffffffffffffffffff
buffer overflow in AppendUnicodeToUnicode() -> SEGFAULT
User & Date: dgp on 2009-01-09 00:49:27
Changes

  1. icomment:
    
    Found it.  Problem is in the STRING_UALLOC() macro:
    
    #define STRING_UALLOC(numChars) \
            (numChars * sizeof(Tcl_UniChar))
    
    It needs changing to:
    
    #define STRING_UALLOC(numChars) \
            ((numChars) * sizeof(Tcl_UniChar))
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"