Skip to content
Tcl Source Code History Of Ticket 176de86b3bb11df1
Login

History Of Ticket 176de86b3bb11df1

Artifacts Associated With Ticket 176de86b3bb11df1

  1. Ticket change [b5e6cefc6e] (rid 214714) by chrstphrchvz on 2023-05-08 16:16:12:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      As of [7a2fc29ce038], <tt>numNewElems</tt> is declared as <tt>size_t</tt>, which can lead to pointer overflow in <tt>OBJ_AT_DEPTH(numNewElems - 1)</tt>. Example <tt>-fsanitize=pointer-overflow</tt> error during autoMkindex-3.4:
      <pre>
      generic/tclExecute.c:5109:9: runtime error: subtraction of unsigned offset from 0x611000099078 overflowed to 0x611000099080
      </pre>
      
      Declaring <tt>numToDelete</tt> as <tt>size_t</tt> seems fine, though.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chrstphrchvz"
    14. subsystem initialized to: "17. Commands I-L"
    15. title initialized to: "TEBCResume(): pointer overflow for INST_LREPLACE4"
    16. type initialized to: "Bug"
  2. Ticket change [d3d8c93043] (rid 218248) by chrstphrchvz on 2023-09-15 13:28:28:

    1. icomment:
      As of [ba731752d345] I wonder if this issue also affects 8.7 (particularly on 32-bit); so far I have not observed that it does. However fix for this issue may still be applicable to both 8.7 and 9.0.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [1ee6773ba4] (rid 218334) by griffin on 2023-09-16 17:25:35:

    1. closedate changed to: "2460204.22610263"
    2. closer changed to: "griffin"
    3. icomment:
      Fixed by broader updates to the uses of size_t everywhere.
      
    4. login: "griffin"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  4. Ticket change [279961ce00] (rid 218339) by chrstphrchvz on 2023-09-16 22:10:27:

    1. closedate changed to: "2460204.42392646"
    2. closer changed to: "chrstphrchvz"
    3. icomment:
      Can you please elaborate how this was fixed? I still observe this on trunk, since <tt>TCL_HASH_TYPE</tt> is <tt>size_t</tt>.
      
    4. login: "chrstphrchvz"
    5. mimetype: "text/x-fossil-wiki"
  5. Ticket change [7b377ae345] (rid 218360) by griffin on 2023-09-17 16:22:19:

    1. closer changed to: "nobody"
    2. icomment:
      I cannot reproduce the error.  My first attempt produced no error. After review I realized I didn't run the build & test correctly.  It this point I cannot get tcl to build correctly with sanitize at all, let alone run.
      Re-open the bug for someone else to pursue.
      
    3. login: "griffin"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Open"
  6. Ticket change [672838312f] (rid 245689) by chrstphrchvz on 2025-09-19 21:59:01:

    1. foundin changed to: "core-9-0-branch"
    2. icomment:
      This error is still present (rephrased slightly):
      ```
      generic/tclExecute.c:5203:21: runtime error: addition of unsigned offset to 0x6110000748c8 overflowed to 0x6110000748b8
      ```
      and:
      ```
      generic/tclExecute.c:5212:21: runtime error: addition of unsigned offset to 0x6110000ada88 overflowed to 0x6110000ada80
      ```
      
      I no longer see this error during autoMkindex tests, but there are several other tests which do trigger it; one affected command is `linsert {} 0 a b`.
      
    3. login: "chrstphrchvz"
    4. mimetype: "text/x-markdown"
  7. Ticket change [55bd9cf70d] (rid 261291) by chrstphrchvz on 2026-11-08 06:44:29:

    1. closedate changed to: "2461352.7808983335"
    2. closer changed to: "chrstphrchvz"
    3. icomment: "Closing as duplicate in favor of [94c6511e]."
    4. login: "chrstphrchvz"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"