diff options
author | iximeow <me@iximeow.net> | 2021-12-17 10:45:31 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-12-17 10:46:21 -0800 |
commit | 2c332661b5ccf116a468e1e23711017d77c1531a (patch) | |
tree | cdbd90a0f932ffaaee48904b5309be9c2574d3d8 /src/shared | |
parent | 067c5f08dea7c1d3b70a7c38259b8db2c301d89f (diff) |
do not panic on negative compressed displacements, i mean it!!
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/evex.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/evex.in b/src/shared/evex.in index 414074e..5d3b053 100644 --- a/src/shared/evex.in +++ b/src/shared/evex.in @@ -238,7 +238,7 @@ pub(crate) fn read_evex< _ => None }; if let Some(size) = overridden_size { - instruction.disp *= size; + instruction.disp = instruction.disp.wrapping_mul(size); } else { apply_disp_scale(instruction); } |