Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: de2adb34b39e773ffdd93ca5360f76adc6e978ef
Ticket: 2494093fffffffffffffffffffffffffffffffff
buffer overflow in AppendUnicodeToUnicode() -> SEGFAULT
User & Date: dgp on 2009-03-07 01:30:59
Changes

  1. icomment:
    
    The Solaris panic happens during
    the append implicit in joining the
    parts of the word,
    
      \xDE[string repeat a [expr (1<<31)-2000]]
    
    together.  Appears this isn't anything
    wrong with Solaris, or Tcl on Solaris,
    but just a quirk of exactly when the
    test system runs out of memory.  The
    system is able to allocate the big string
    for the [string repeat] result, but then
    fails to allocate space for a second big
    string to hold the whole word.
    
    While chasing this down, though, I did find
    another place where string overflows are
    not handled, which I will file separately.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"