mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-25 12:40:26 +02:00
ARM: Correct constants offset check
* lib/jit_arm.c: Correct check to guard overflow of index of constants from program counter.
This commit is contained in:
parent
ce2dd3d446
commit
f63d064a10
2 changed files with 8 additions and 1 deletions
|
@ -1530,7 +1530,9 @@ _emit_code(jit_state_t *_jit)
|
|||
/* update register live state */
|
||||
jit_reglive(node);
|
||||
|
||||
if (_jitc->consts.length && _jit->pc.uc - _jitc->consts.data >= 3968) {
|
||||
if (_jitc->consts.length &&
|
||||
(jit_uword_t)_jit->pc.uc -
|
||||
(jit_uword_t)_jitc->consts.patches[0] >= 3968) {
|
||||
/* longest sequence should be 64 bytes, but preventively
|
||||
* do not let it go past 128 remaining bytes before a flush */
|
||||
if (node->next &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue