]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/tricore: Add CHECK_REG_PAIR() for insn accessing 64 bit regs
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 12 Jun 2023 11:32:44 +0000 (13:32 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 23 Jun 2023 06:46:01 +0000 (09:46 +0300)
commit72a23f2991d50f790f197ed16f47331684dc091c
treeab091e20eef35d22a0143732d74dc799cff1e6dc
parentb9e1415e16391c6376a0d42d29dd412cd6046ad3
target/tricore: Add CHECK_REG_PAIR() for insn accessing 64 bit regs

some insns were not checking if an even index was used to access a 64
bit register. In the worst case that could lead to a buffer overflow as
reported in https://gitlab.com/qemu-project/qemu/-/issues/1698.

Reported-by: Siqi Chen <coc.cyqh@gmail.com>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20230612113245.56667-4-kbastian@mail.uni-paderborn.de>
(cherry picked from commit 6991777ec4b2a344d47bddec62744bedd9883d78)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/tricore/translate.c