]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/avr: Fix buffer read in avr_print_insn
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 23 Mar 2025 01:43:36 +0000 (18:43 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 5 Apr 2025 13:51:35 +0000 (16:51 +0300)
commit5361f8136d7754293e1689c6274e57c0ac5e084a
tree7da109df3ba8ddf1ffa3cc7e443bd61cb99d5f34
parentf8a0d81f0ed50a806cb433dc4bb94d0b439f03b8
target/avr: Fix buffer read in avr_print_insn

Do not unconditionally attempt to read 4 bytes, as there
may only be 2 bytes remaining in the translator cache.

Cc: qemu-stable@nongnu.org
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250325224403.4011975-2-richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 070a500cc0da70c1b4c62a6c95e41f0a1b19dc0b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/avr/disas.c