Artifacts Associated With Ticket 176de86b3bb11df1
Ticket change [b5e6cefc6e] (rid 214714) by chrstphrchvz on 2023-05-08 16:16:12:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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.
- foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "TEBCResume(): pointer overflow for INST_LREPLACE4"
- type initialized to: "Bug"
Ticket change [d3d8c93043] (rid 218248) by chrstphrchvz on 2023-09-15 13:28:28:
- 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.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [1ee6773ba4] (rid 218334) by griffin on 2023-09-16 17:25:35:
- closedate changed to: "2460204.22610263"
- closer changed to: "griffin"
- icomment:
Fixed by broader updates to the uses of size_t everywhere.
- login: "griffin"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [279961ce00] (rid 218339) by chrstphrchvz on 2023-09-16 22:10:27:
- closedate changed to: "2460204.42392646"
- closer changed to: "chrstphrchvz"
- 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>.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
Ticket change [7b377ae345] (rid 218360) by griffin on 2023-09-17 16:22:19:
- closer changed to: "nobody"
- 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.
- login: "griffin"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
Ticket change [672838312f] (rid 245689) by chrstphrchvz on 2025-09-19 21:59:01:
- foundin changed to: "core-9-0-branch"
- 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`. - login: "chrstphrchvz"
- mimetype: "text/x-markdown"
Ticket change [55bd9cf70d] (rid 261291) by chrstphrchvz on 2026-11-08 06:44:29:
- closedate changed to: "2461352.7808983335"
- closer changed to: "chrstphrchvz"
- icomment: "Closing as duplicate in favor of [94c6511e]."
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Duplicate"
- status changed to: "Closed"