aboutsummaryrefslogtreecommitdiff
path: root/include/hw/mem/sparse-mem.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-02-28 12:06:41 +0100
committerRichard Henderson <richard.henderson@linaro.org>2024-02-29 11:36:05 -1000
commitff202817dc2b0b3b42992fa7f1ce503f081068fe (patch)
tree8c4761fac1ce2796ad0b554dc3948646d2c2f893 /include/hw/mem/sparse-mem.h
parentb816e1b5ba58a986b10cd830d6617f351979ab91 (diff)
downloadqemu-ff202817dc2b0b3b42992fa7f1ce503f081068fe.zip
qemu-ff202817dc2b0b3b42992fa7f1ce503f081068fe.tar.gz
qemu-ff202817dc2b0b3b42992fa7f1ce503f081068fe.tar.bz2
tcg/optimize: fix uninitialized variable
The variables uext_opc and sext_opc are used without initialization if TCG_TARGET_extract_i{32,64}_valid returns false. The result, depending on the compiler, might be the generation of extract and sextract opcodes with invalid offset and count, or just random data in the TCG opcode stream. Fixes: ceb9ee06b71 ("tcg/optimize: Handle TCG_COND_TST{EQ,NE}", 2024-02-03) Cc: Richard Henderson <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20240228110641.287205-1-pbonzini@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/hw/mem/sparse-mem.h')
0 files changed, 0 insertions, 0 deletions