aboutsummaryrefslogtreecommitdiff
path: root/trace-events
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-07-12 07:41:32 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-07-25 14:40:49 +0200
commitfb51df0c8ea4afe17ec9af98d10650a05b36113e (patch)
treeeee1ec18719ebf9267945ba52191d101b3d1b792 /trace-events
parente37fdc73811dd40ccf1409e1edb9f7403283dd87 (diff)
downloadqemu-fb51df0c8ea4afe17ec9af98d10650a05b36113e.zip
qemu-fb51df0c8ea4afe17ec9af98d10650a05b36113e.tar.gz
qemu-fb51df0c8ea4afe17ec9af98d10650a05b36113e.tar.bz2
target/mips/mxu: Avoid overrun in gen_mxu_q8adde()
Coverity reports a potential overruns (CID 1517770): Overrunning array "mxu_gpr" of 15 8-byte elements at element index 4294967295 (byte offset 34359738367) using index "XRb - 1U" (which evaluates to 4294967295). Add a gen_extract_mxu_gpr() helper similar to gen_load_mxu_gpr() to safely extract MXU registers. Fixes: eb79951ab6 ("target/mips/mxu: Add Q8ADDE ... insns") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230712060806.82323-4-philmd@linaro.org>
Diffstat (limited to 'trace-events')
0 files changed, 0 insertions, 0 deletions