|
2025-09-19
| ||
| 17:08 | • Closed ticket [77059c4f45]: TclPushVarName(): pointer overflow plus 7 other ... artifact: 1091f5145f user: jan.nijtmans | |
| 17:07 | Fix [77059c] TclPushVarName(): pointer overflow check-in: 67519af0aa user: jan.nijtmans tags: trunk, main | |
| 16:53 | Fix [77059c] TclPushVarName(): pointer overflow check-in: ef820cf3b7 user: jan.nijtmans tags: core-9-0-branch | |
| 16:38 | Fix [77059c] TclPushVarName(): pointer overflow check-in: 22493159dc user: jan.nijtmans tags: core-8-6-branch | |
|
2025-09-18
| ||
| 18:08 | • Ticket [77059c4f45] TclPushVarName(): pointer overflow status still Open wit... artifact: b51fcdcfd7 user: chrstphrchvz | |
| 09:38 | • Ticket [77059c4f45]: 3 changes artifact: ca511ed8e6 user: jan.nijtmans | |
| 09:35 | Fix [77059c4f45]: TclPushVarName(): pointer overflow closed check-in: 1a3e5bdaf5 user: jan.nijtmans tags: bug-77059c4f45 | |
|
2025-09-17
| ||
| 23:24 | • Ticket [77059c4f45] TclPushVarName(): pointer overflow status still Open wit... artifact: 77c904c4e1 user: chrstphrchvz | |
| 23:20 | • Ticket [77059c4f45]: 3 changes artifact: 5680ca5b84 user: chrstphrchvz | |
|
2023-05-08
| ||
| 20:08 | • Ticket [77059c4f45]: 3 changes artifact: ec17c52b90 user: chrstphrchvz | |
| 20:05 | • New ticket [77059c4f45]. artifact: 13f77557b1 user: chrstphrchvz | |
TclPushVarName(): pointer overflow
Closed / Fixed77059c4f456952a4a7c23392b7a9a8d200bbcc39Created 4 years agoUpdated 1 year ago
Descriptionwiki2023-05-08 20:05:19
Doing set {} (e.g. from var-6.3) triggers an -fsanitize=pointer-overflow error:
generic/tclCompCmds.c:3454:6: runtime error: addition of unsigned offset to 0x603000023a75 overflowed to 0x603000023a74This might seem due to nameLen now being size_t, but I think it would be better if there was a check for nameLen < 1 or < 2.
Referenced by1
1a3e5bdaf5Fix [77059c4f45]: TclPushVarName(): pointer overflow check-in2025-09-18 09:35:47
chrstphrchvz Ticket [77059c4f45]: 3 changes
[History diff]2023-05-08 20:08:11
chrstphrchvzmarkdown2025-09-17 23:20:17
A better possible fix might be to declare nameLen as Tcl_Size.
chrstphrchvz Ticket [77059c4f45]: 3 changes
[History diff]2025-09-17 23:24:32
jan.nijtmanswiki2025-09-18 09:38:10
Like [this]?
chrstphrchvzmarkdown2025-09-18 18:08:09
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.
jan.nijtmanswiki2025-09-19 17:08:26
Fixed [here] (and in all other branches as well)
Thanks!
Log in (anonymous is fine) to add a comment.