diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-10-19 14:32:04 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-10-20 15:15:50 +0200 |
commit | 0d4bcac3cac461798d810e6df54768d9613ea794 (patch) | |
tree | 1e734cde13e49ae818345c7c7a64becebfc44f6f /target/i386/xsave_helper.c | |
parent | 214a8da23651f2472b296b3293e619fd58d9e212 (diff) |
target/i386: decode-new: avoid out-of-bounds access to xmm_regs[-1]
If the destination is a memory register, op->n is -1. Going through
tcg_gen_gvec_dup_imm path is both useless (the value has been stored
by the gen_* function already) and wrong because of the out-of-bounds
access.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/xsave_helper.c')
0 files changed, 0 insertions, 0 deletions