Overview
| Artifact ID: | b7b5dda0ed00656d6aae618b4cb0eb20ecd58ee8eab6bb3c31a737d6c9887870 |
|---|---|
| Ticket: | 7179c6724cd38271a771343f80197b1fc57315ad
compilation of incr command is broken on wide constant offset by int overflow |
| User & Date: | sebres on 2024-08-12 14:27:29 |
Changes
- closedate changed to: "2460535.10242799"
- comment changed to:
Compilation of incr command (with immutable offset, as <code><i>INST_INCR_*_IMM</i></code>) seems to be broken on wide constant offset by int overflow. Non-compiled or dynamic offset (compiled as <code><i>INST_INCR_*</i></code> instructions without <code><i>_IMM</i></code> suffix) work as expected: <code><pre> % set i 0; incr i 0xffffff80 <b style="color:green;">4294967168</b> % set i 0; incr i 0xffffff81 <b style="color:red;">-127</b> % set i 0; incr i 0xffffffff <b style="color:red;">-1</b> % set i 0; set cmd incr; $cmd i 0xffffffff <b style="color:green;">4294967295</b> % set i 0; incr i [set x 0xffffffff] <b style="color:green;">4294967295</b> % set i 0; incr i 4294967169 <b style="color:red;">-127</b> % set i 0; incr i 4294967295 <b style="color:red;">-1</b> </pre></code> My fork doesn't have this bug, so I'll try to backport the fix.
- login: "sebres"
- mimetype: "text/plain"