From 2c332661b5ccf116a468e1e23711017d77c1531a Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 17 Dec 2021 10:45:31 -0800 Subject: do not panic on negative compressed displacements, i mean it!! --- src/shared/evex.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.1