Skip to content
Tcl Source Code History Of Ticket 00cced7b87
Login

History Of Ticket 00cced7b87

Artifacts Associated With Ticket 00cced7b87

  1. Ticket change [3a5bbee679] (rid 206328) by apnadkarni on 2022-11-02 02:55:34:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      See the disassembly below:
      
      ```
      % tcl::unsupported::disassemble script {lindex $l 0x100000000}
      ByteCode 0xffffffffebbdeec8, refCt 1, epoch 20, interp 0xffffffffebb11ca8 (epoch 20)
        Source "lindex $l 0x100000000"
        Cmds 1, src 21, inst 9, litObjs 1, aux 0, stkDepth 1, code/src 0.00
        Commands 1:
            1: pc 0-7, src 0-20
        Command 1: "lindex $l 0x100000000"
          (0) push1 0         # "l"
          (2) loadStk
          (3) listIndexImm -1
          (8) done
      ```
      
      Indices > 0x80000000 result in the listIndexImm operand being -1
      
      As an example, 
      
      ```
      % lindex [lseq 0x100000008] 0x100000000
      %
      ```
      
      returns an empty string.
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "apnadkarni"
    13. subsystem initialized to: "47. Bytecode Compiler"
    14. title initialized to:
      Incorrect handling of indices > 0x80000000 in byte compiler (64-bit Tcl)
      
    15. type initialized to: "Bug"
  2. Ticket change [43fcd6d184] (rid 206350) by jan.nijtmans on 2022-11-02 13:20:29:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459886.05590273"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed [4aad15c2be1628d3|here]
      <pre>
          % lindex [lseq 0x100000008] 0x100000000
          4294967296
      </pre>
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"