qemu-e2k/tcg
Paolo Bonzini ff202817dc 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: ceb9ee06b7 ("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>
2024-02-29 11:36:05 -10:00
..
aarch64 tcg/aarch64: Apple does not align __int128_t in even registers 2024-02-29 11:35:36 -10:00
arm tcg/arm: Fix goto_tb for large translation blocks 2024-02-13 07:42:45 -10:00
i386
loongarch64
mips
ppc
riscv
s390x
sparc64
tci tcg/tci: Support TCG_COND_TST{EQ,NE} 2024-02-05 22:45:41 +00:00
debuginfo.c
meson.build
optimize.c tcg/optimize: fix uninitialized variable 2024-02-29 11:36:05 -10:00
perf.c
region.c
tcg-common.c
tcg-internal.h
tcg-ldst.c.inc
tcg-op-gvec.c
tcg-op-ldst.c
tcg-op-vec.c
tcg-op.c
tcg-pool.c.inc
tcg.c
tci.c tcg/tci: Support TCG_COND_TST{EQ,NE} 2024-02-05 22:45:41 +00:00