Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e7f336ecd8621ece07df008f164bf415bcdbcb3b
Ticket: 2494093fffffffffffffffffffffffffffffffff
buffer overflow in AppendUnicodeToUnicode() -> SEGFAULT
User & Date: matzek on 2009-02-02 19:03:11
Changes

  1. icomment:
    With stringAttemptRealloc changed to
    
    #define stringAttemptRealloc(ptr, numBytes) \
        (String *) ((((numBytes) == 0) || ((numBytes) > INT_MAX - STRING_SIZE(0))) \
        ? NULL \
        : attemptckrealloc((char *) ptr, (unsigned) STRING_SIZE( \
    (numBytes) ? (numBytes) : sizeof(Tcl_UniChar)) ))
    
    it seems to fail cleanly now. I go and do the retest dash over my other systems now ...
    
    -- Matthias Kraft
    
    
  2. login: "matzek"
  3. mimetype: "text/plain"
  4. username: "matzek"