Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8e78a76a35d6f6f6029bc4f76fdd40d7c79248ccfdd5fce5d98444a088ee87ea
Ticket: 5ec43cfd9bf974320c70faa342a017e4b7e70abb
UpdateStringOfList(): signed integer overflow
User & Date: chrstphrchvz on 2022-10-04 06:14:57
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    …which this example script triggers and the attached patch prevents:
    
    <blockquote><pre>
    # s has string representation with length INT_MAX-1
    set s &#91;string repeat &#91;string repeat {a} 14949&#93; 143654&#93;
    set l &#91;list aa $s&#93;
    puts &#91;string is upper $l&#93;
    </pre>
    
    <pre>
    <span style="font-weight:bold">tcl/generic/tclListObj.c:1988:14: <span style="color:firebrick">runtime error:</span> signed integer overflow: 2 + 2147483646 cannot be represented in type 'int'</span>
    max size for a Tcl value (2147483647 bytes) exceeded
    </pre>
    (tclsh aborts)
    </blockquote>
    
  5. foundin changed to: "core-8-6-branch"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "chrstphrchvz"
  13. subsystem changed to: "14. List Object"
  14. title changed to: "UpdateStringOfList(): signed integer overflow"
  15. type changed to: "Patch"