Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ca6cd7b18923f24addfda9d113b2943a9450101c
Ticket: 2494093fffffffffffffffffffffffffffffffff
buffer overflow in AppendUnicodeToUnicode() -> SEGFAULT
User & Date: matzek on 2009-02-06 17:34:45
Changes

  1. icomment:
    Tested HEAD on Solaris 5.9 and 5.10 today. WRT this report, I still have a crash in
    
    signal SEGV (no mapping at the fault address) in _memcpy at 0xff3b0730
    0xff3b0730: _memcpy+0x0250:     std      %c1, [%o0]
    Current function is AppendUnicodeToUnicodeRep
     1444               appendNumChars * sizeof(Tcl_UniChar));
    
    as you will see below we still have an integer overrun here
    
    (dbx) print *stringPtr
    *stringPtr = {
        numChars   = 1073745920
        allocated  = 16384U
        uallocated = 32768U
        hasUnicode = 1
        unicode    = (222U, 173U)
    }
    
    uallocated is much lower than numChars. See also my comment from "2009-02-02 11:45" ...
    
    -- Matthias Kraft
    
    
  2. login: "matzek"
  3. mimetype: "text/plain"
  4. username: "matzek"