Artifacts Associated With Ticket 35a8f1c04a9c1610
Ticket change [8222f3b372] (rid 167229) by tuckerowens on 2018-11-08 21:47:57:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
I cannot say I entirely know what is going wrong, only that I know it's incorrect. Run the following in a Tcl shell: <code> puts "[list {#"""}]" </code> It seems like the Tcl interpreter is mishandling the literal <code>#"""</code> inside the curly braces which results in extra data to be appended to the output. I've found through experimentation that the string must start with a <code>#</code> and the number of quotes (must be greater than two) is proportional to the amount of additional data which follows the output. In trials it was common for null characters to be printed, which depending on your shell might not show up, so you may need to convert the output to hex. Here are some examples: <pre> % info tclversion 8.5 % list {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} auto_index(::tcl::tm::roots) [list source [file joi % list {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} tïtcl]] % list {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} ïHÕ Ðï % list {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} {#""""""""""""""""""""""""""""""""""""""""""""""""""""""} ï </pre> - foundin initialized to: "8.5"
- is_private initialized to: "0"
- login: "tuckerowens"
- priority initialized to: "5 Medium"
- private_contact initialized to: "fbb85fed96b7b84e176a1b3c162e873b26d6b66b"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "tuckerowens"
- subsystem initialized to: "17. Commands I-L"
- title initialized to:
List command can used to read beyond bounds of input
- type initialized to: "Bug"
Ticket change [8fe4b2678b] (rid 167230) by dgp on 2018-11-09 00:50:48:
- assignee changed to: "dgp"
- icomment:
Well spotted. See this confirmation: % string length [list {#"}] 4 % string length [list {#""}] 6 % string length [list {#"""}] 8 Contrast with: % string length [list {#x}] 4 % string length [list {#xx}] 5 % string length [list {#xxx}] 6 - login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
Ticket change [512d067150] (rid 167240) by sebres on 2018-11-09 14:23:07:
- assignee changed to: "sebres"
- closedate changed to: "2458432.09939334"
- closer changed to: "sebres"
- icomment:
Nice one... Found the bug (a discrepancy between TclScanElement and TclConvertElement if not TCL_DONT_QUOTE_HASH). Fixed in [2ec58720e9] now, branch [./timeline?r=bug-35a8f1c04a|bug-35a8f1c04a].
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Critical"
- status changed to: "Closed"