Artifacts Associated With Ticket d4ede611a7a7c802
Ticket change [a47396a4c1] (rid 212117) by apnadkarni on 2023-04-09 23:50:16:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
``` % set s [string repeat x 0x100000000] ; string length $s 4294967296 % string length [scan $s %s] 4294967295 ```
- foundin initialized to: "9.0"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "scan %s truncates strings at UINT_MAX"
- type initialized to: "Bug"
Ticket change [e26943061d] (rid 212658) by apnadkarni on 2023-04-12 16:17:40:
- assignee changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [a054ea6b05] (rid 213636) by apnadkarni on 2023-04-22 18:00:34:
- icomment:
Other issues with scan. Large positional qualifiers. ``` scan abc {%2147483648$s} -> memory access violation ``` Large width specifiers are truncated. ``` % set s [testbigdata string 0x10000000a]; string length $s 4294967306 % scan $s %4294967300s%s x y 2 % string length $y 11 % string length $x 4294967295 ``` - login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [1e51d5fc46] (rid 213782) by apnadkarni on 2023-04-24 14:52:43:
- closedate changed to: "2460059.11994412"
- closer changed to: "apnadkarni"
- icomment: "Fixed in [acaa559a27]."
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [af150b5d84] (rid 213942) by chrstphrchvz on 2023-04-27 07:10:08:
- closedate changed to: "2460061.79870972"
- closer changed to: "chrstphrchvz"
- icomment:
<tt>scan abc {%2147483648$s}</tt> crashes on 8.6 and 8.7 as well. Can the fix and scan-19.3 be backported? - login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
Ticket change [daca82a33a] (rid 213955) by apnadkarni on 2023-04-27 13:47:21:
- closedate changed to: "2460062.0745563"
- closer changed to: "apnadkarni"
- icomment:
The back porting to 8.6/8.7 has relevance to all the "bigdata" tests and fixes, not just this one. In fact it also has relevance to 32-bit Tcl9. However, these tests and fixes target bugs that are present for arguments with lengths that are valid for the build in question. So for 64-bit builds in Tcl9, 0x100000000 is a valid string / list length and that is what these tests and fixes address. In particular, tests for lengths that are not supported by the build comprise a different set of tests and are harder to construct. They would be more appropriate for the 8.x series. Also, given limited time and resources, I personally do not plan on spending any time making the 8.x series robust dealing with large data. I see that time better spent on 9.x. So, the short answer after a long rationalization :-), no I'm not planning on a back port.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
Ticket change [63f6e18975] (rid 213961) by jan.nijtmans on 2023-04-27 13:56:49:
- closedate changed to: "2460062.08112667"
- closer changed to: "jan.nijtmans"
- icomment:
> Can the fix and scan-19.3 be backported? Anyone can implement/propose a backport for this fix to 8.6/8.7.
- login: "jan.nijtmans"
- mimetype: "text/plain"