|
2022-10-06
| ||
| 10:23 | • Closed ticket [5ec43cfd9b]: UpdateStringOfList(): signed integer overflow pl... artifact: 109da0cc90 user: jan.nijtmans | |
| 09:06 | Fix [e32a44e2e4], [1599352cca], [5ec43cfd9b] and [74cc95b563] check-in: 0e2b23ff84 user: jan.nijtmans tags: core-8-6-branch | |
|
2022-10-04
| ||
| 06:16 | • Add attachment 5ec43cfd9bf9.diff to ticket [5ec43cfd9bf97432|5ec43cfd9b... artifact: ca2a4530bd user: chrstphrchvz | |
| 06:14 | • New ticket [5ec43cfd9b] UpdateStringOfList(): signed integer overflow. artifact: 8e78a76a35 user: chrstphrchvz | |
UpdateStringOfList(): signed integer overflow
Closed / Fixed5ec43cfd9bf974320c70faa342a017e4b7e70abbCreated 4 years agoUpdated 4 years ago
Descriptionwiki2022-10-04 06:14:57
…which this example script triggers and the attached patch prevents:
# s has string representation with length INT_MAX-1 set s [string repeat [string repeat {a} 14949] 143654] set l [list aa $s] puts [string is upper $l]tcl/generic/tclListObj.c:1988:14: runtime error: signed integer overflow: 2 + 2147483646 cannot be represented in type 'int' max size for a Tcl value (2147483647 bytes) exceeded(tclsh aborts)
Referenced by1
0e2b23ff84Fix [e32a44e2e4], [1599352cca], [5ec43cfd9b] and [74cc95b563] check-in2022-10-06 09:06:07
jan.nijtmanswiki2022-10-06 10:23:53
Should be fixed [here]
Log in (anonymous is fine) to add a comment.
Attachments:
- 5ec43cfd9bf9.diff [download] added by chrstphrchvz on 2022-10-04 06:16:37. [details]