Skip to content
Tcl Source Code History Of Ticket 1267380fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1267380fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1267380fffffffffffffffffffffffffffffffff

  1. Ticket change [56e9c0dfea] (rid 94409) by dgp on 2005-08-23 19:17:24:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      % set x [string repeat a 65536]; concat
      % set y [lrepeat 65536 $x]; concat
      % string length $y
      Segmentation fault
      
      The string rep of $y would need
      a buffer of 4295032831 bytes, but
      that exceeds INT_MAX.
      
      When the scanner (over-)estimates
      the buffer size, it tries to count up
      the need for 4295163905 bytes, but
      the calculation overflows, wraps around
      and it concludes the need for only
      196609 bytes.  This gets allocated easily,
      and we happily start writing to this
      way too short buffer until we march off
      into segfaulting .
      
      Would be better for the scanner to
      detect the overflow (any negative length
      should be the indicator) and Tcl_Panic, 
      I think.
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "14. List Object"
    10. title initialized to: "UpdateStringOfList: overflow detection"
    11. type initialized to: "Bug"
  2. Ticket change [a69bc6f699] (rid 98634) by dkf on 2005-08-26 04:49:45:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2005-08-25T21:49:45"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed in HEAD; does this need backporting?
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Pending"
    9. username: "dkf"
  3. Ticket change [00cf56cdfc] (rid 119375) by hobbs on 2005-08-26 04:56:33:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      as a possible buffer overflow, yes please.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  4. Ticket change [50a3ffc439] (rid 126010) by dkf on 2005-08-26 05:28:40:

    1. closedate changed to: "2005-08-25T22:28:40"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      done
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dkf"