]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/tricore: Fix out-of-bounds index in imask instruction
authorSiqi Chen <coc.cyqh@gmail.com>
Mon, 12 Jun 2023 11:32:42 +0000 (13:32 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 23 Jun 2023 06:44:47 +0000 (09:44 +0300)
commitb9e1415e16391c6376a0d42d29dd412cd6046ad3
tree919e8523507fd1ebb7dd8eb2fa75750fc87e6c8c
parent4553eee1566d2d4319184bd5e1c73bed541e4f93
target/tricore: Fix out-of-bounds index in imask instruction

When translating  "imask" instruction of Tricore architecture, QEMU did not check whether the register index was out of bounds, resulting in a global-buffer-overflow.

Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1698
Reported-by: Siqi Chen <coc.cyqh@gmail.com>
Signed-off-by: Siqi Chen <coc.cyqh@gmail.com>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20230612065633.149152-1-coc.cyqh@gmail.com>
Message-Id: <20230612113245.56667-2-kbastian@mail.uni-paderborn.de>
(cherry picked from commit d34b092cab606a47a0d76edde45aab7100bb2435)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/tricore/translate.c