Artifacts Associated With Ticket 77059c
Ticket change [13f77557b1] (rid 214715) by chrstphrchvz on 2023-05-08 20:05:19:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
Doing <tt>set {}</tt> (e.g. from var-6.3) triggers an <tt>-fsanitize=pointer-overflow</tt> error: <pre> generic/tclCompCmds.c:3454:6: runtime error: addition of unsigned offset to 0x603000023a75 overflowed to 0x603000023a74 </pre> This might seem due to <tt>nameLen</tt> now being <tt>size_t</tt>, but I think I would be better if there was a check for <tt>nameLen < 1</tt> or <tt>< 2</tt>. - 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: "07. Variables"
- title initialized to: "TclPushVarName(): pointer overflow"
- type initialized to: "Bug"
Ticket change [ec17c52b90] (rid 214716) by chrstphrchvz on 2023-05-08 20:08:11:
- comment changed to:
Doing <tt>set {}</tt> (e.g. from var-6.3) triggers an <tt>-fsanitize=pointer-overflow</tt> error: <pre> generic/tclCompCmds.c:3454:6: runtime error: addition of unsigned offset to 0x603000023a75 overflowed to 0x603000023a74 </pre> This might seem due to <tt>nameLen</tt> now being <tt>size_t</tt>, but I think it would be better if there was a check for <tt>nameLen < 1</tt> or <tt>< 2</tt>. - login: "chrstphrchvz"
- mimetype: "text/plain"
- comment changed to:
Ticket change [5680ca5b84] (rid 245595) by chrstphrchvz on 2025-09-17 23:20:17:
- icomment:
A better possible fix might be to declare `nameLen` as `Tcl_Size`.
- login: "chrstphrchvz"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [77c904c4e1] (rid 245596) by chrstphrchvz on 2025-09-17 23:24:32:
- foundin changed to: "core-9-0-branch"
- login: "chrstphrchvz"
- mimetype: "text/plain"
Ticket change [ca511ed8e6] (rid 245621) by jan.nijtmans on 2025-09-18 09:38:10:
- icomment: "Like [1a3e5bdaf5|this]?"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [b51fcdcfd7] (rid 245654) by chrstphrchvz on 2025-09-18 18:08:09:
- icomment:
I had thought of using `Tcl_Size` in case the current behavior was correct and that the overflow was harmless. But looking again, I see how the overflow suggests there is a problem, so I agree with Jan proposed's fix.
- login: "chrstphrchvz"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [1091f5145f] (rid 245685) by jan.nijtmans on 2025-09-19 17:08:26:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460938.21419959"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed [ef820cf3b7e15fc3|here] (and in all other branches as well) Thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"