This is an improved (and more invasive) fix for the bug fixed in commit 30663fd ("tcg/i386: Check the size of instruction being translated", 2017-03-24).
Paolo Bonzini (2): target/i386: introduce x86_ld*_code target/i386: trap on instructions longer than >15 bytes target/i386/translate.c | 257 +++++++++++++++++++++++++++--------------------- 1 file changed, 147 insertions(+), 110 deletions(-) -- 2.14.2