|
2024-08-31
| ||
| 00:53 | Merge [8f8b3d2903776a4a]: Merge fix for [7179c6724cd38271]: compilation of incr command on wide cons... check-in: 5f2c456506 user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE | |
| 00:50 | Merge [5e8df6f2328b226d]: amend to [e2f55d6060] (fix for [7179c6724cd38271]): wideint-type dependenc... closed check-in: 517cb91ee8 user: pooryorick tags: mistake, INCOMPATIBLE_LICENSE | |
|
2024-08-17
| ||
| 14:29 | • Ticket [0af9450e56] test incr-1.31 fails status still Open with 3 other cha... artifact: 50abd1f58e user: sebres | |
|
2024-08-14
| ||
| 12:36 | • Ticket [0af9450e56]: 4 changes artifact: 3def008583 user: oehhar | |
|
2024-08-12
| ||
| 16:43 | • New ticket [0af9450e56]. artifact: 07f813fcf4 user: dgp | |
| 16:12 | amend to [e2f55d6060] (fix for [7179c6724cd38271]): wideint-type dependency check-in: 5e8df6f232 user: sebres tags: core-8-6-branch | |
| 14:27 | • Ticket [7179c6724c] compilation of incr command is broken on wide constant offse... artifact: b7b5dda0ed user: sebres | |
| 13:54 | • Ticket [7179c6724c]: 4 changes artifact: f8d2828063 user: sebres | |
| 13:39 | • Closed ticket [7179c6724c]. artifact: a7d60599c7 user: sebres | |
| 13:28 | merge fix for [7179c6724cd38271]: compilation of incr command on wide constant offset (no overflow) ... check-in: cbabbeed51 user: sebres tags: core-8-branch | |
| 13:19 | merge fix for [7179c6724cd38271]: compilation of incr command on wide constant offset (no overflow) ... check-in: e2f55d6060 user: sebres tags: core-8-6-branch | |
| 13:07 | fixes [7179c6724cd38271]: compilation of incr command on wide constant offset (no overflow) check-in: 068a8b152e user: sebres tags: core-8-5-branch | |
| 13:06 | incr.test: added coverage for bug [7179c6724cd38271] (broken compile of incr by wide2int overflow of... check-in: cff7cda43a user: sebres tags: core-8-5-branch | |
| 12:50 | • Ticket [7179c6724c] compiilation of incr command is broken on wide constant offs... artifact: 656ba930cb user: sebres | |
| 12:48 | • New ticket [7179c6724c]. artifact: ab0b14dca9 user: sebres | |
compilation of incr command is broken on wide constant offset by int overflow
Closed / Fixed7179c6724cd38271a771343f80197b1fc57315adCreated 2 years agoUpdated 2 years ago
Descriptionwiki2024-08-12 12:48:06
Compilation of incr command (with immutable offset, as
INST_INCR_*_IMM) seems to be broken on wide constant offset by int overflow.
Non-compiled or dynamic offset (compiled as INST_INCR_* instructions without _IMM suffix) work as expected:
% set i 0; incr i 0xffffff80
4294967168
% set i 0; incr i 0xffffff81
-127
% set i 0; incr i 0xffffffff
-1
% set i 0; set cmd incr; $cmd i 0xffffffff
4294967295
% set i 0; incr i [set x 0xffffffff]
4294967295
% set i 0; incr i 4294967169
-127
% set i 0; incr i 4294967295
-1
My fork doesn't have this bug, so I'll try to backport the fix.
sebres Ticket [7179c6724c]: 5 changes
[History diff]2024-08-12 12:50:32
sebreswiki2024-08-12 13:39:02
Fixed:
- 8.5 - [068a8b152e2da1e0]
- 8.6 - [e2f55d60603a87a3]
- 8.7/9.0 - [cbabbeed5105d882] / [8f8b3d2903776a4a]
sebresmarkdown2024-08-12 13:54:03
By the way, the fix was minimalistic, in opposite to my fix in fork, that uses safe TclGetSignedIntFromObj routine (tcl seems not to have yet), which wouldn't success by overflow, and since the code is full with Tcl?_?GetIntFromObj, maybe it'd be time for larger review (to prevent ugly unintended overflows like that everywhere).
sebres Ticket [7179c6724c]: 4 changes
[History diff]2024-08-12 14:27:29
Log in (anonymous is fine) to add a comment.