spack/var/spack/repos/builtin/packages/intel-xed/1201-segv.patch
Mark W. Krentel 040204c261
intel-xed: add patch to 12.0.1 to fix segfault (#21436)
Fix segfault due to uninitialized data when trying to decode some cases of data that aren't a valid instruction.
2021-02-02 12:40:24 -08:00

19 lines
578 B
Diff

Fix segfault due to uninitialized data when trying to decode some cases
of data that aren't a valid instruction.
https://github.com/intelxed/xed/commit/5c54699f78ba1e3ce7e0cc6dead0088a8dd09c56
diff --git a/src/dec/xed-decoded-init.c b/src/dec/xed-decoded-init.c
index b0d4db1..fc226d2 100644
--- a/src/dec/xed-decoded-init.c
+++ b/src/dec/xed-decoded-init.c
@@ -46,6 +46,7 @@ xed_decoded_inst_zero_keep_mode_from_operands(
xed_operand_values_init_keep_mode(p, operands);
p->_decoded_length = 0;
p->_inst = 0;
+ p->u.user_data = 0;
}
XED_DLL_EXPORT void