Skip to content
Tcl Source Code History Of Ticket 74cc95b563
Login

History Of Ticket 74cc95b563

Artifacts Associated With Ticket 74cc95b563

  1. Ticket change [15d56f773c] (rid 204972) by chrstphrchvz on 2022-10-04 06:31:42:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      …which these example scripts trigger and the attached patch prevents:
      
      <ul>
      <li><pre>
      # s has string representation with length INT_MAX-1
      set s &#91;string repeat &#91;string repeat {a} 14949&#93; 143654&#93;
      set d1 &#91;dict create aa $s&#93;
      puts &#91;string is upper $d1&#93;
      </pre>
      
      <pre>
      <span style="font-weight:bold">tcl/generic/tclDictObj.c:539: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)
      </li>
      <li><pre>
      # s has string representation with length INT_MAX-1
      set s &#91;string repeat &#91;string repeat {a} 14949&#93; 143654&#93;
      set d2 &#91;dict create a $s z {}&#93;
      puts &#91;string is upper $d2&#93;
      </pre>
      
      <pre>
      <span style="font-weight:bold">tcl/generic/tclDictObj.c:531:14: <span style="color:firebrick">runtime error:</span> signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'</span>
      max size for a Tcl value (2147483647 bytes) exceeded
      </pre>
      (tclsh aborts)
      </li>
      </ul>
      
    5. foundin initialized to: "core-8-6-branch"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "chrstphrchvz"
    13. subsystem initialized to: "15. Dict Object"
    14. title initialized to: "UpdateStringOfDict(): signed integer overflow"
    15. type initialized to: "Patch"
  2. Add attachment "74cc95b563dd.diff" [6f9dbdf42e] (rid 204974) by chrstphrchvz on 2022-10-04 06:35:33.

  3. Ticket change [3465c7eff9] (rid 205043) by jan.nijtmans on 2022-10-06 10:24:16:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459858.93352547"
    3. closer changed to: "jan.nijtmans"
    4. icomment: "Should be fixed [0e2b23ff845b1e1b|here]"
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"