diff options
author | 2023-09-14 17:46:50 +0200 | |
---|---|---|
committer | 2023-09-18 07:25:24 -0300 | |
commit | 527b23832930bd17338093725cb9b95203b60742 (patch) | |
tree | 0e319a69cad2cb4b4b0c69e3639944a763f009cc /scripts/qapi/source.py | |
parent | MAINTAINERS: Nick Piggin PPC maintainer, other PPC changes (diff) | |
download | qemu-527b23832930bd17338093725cb9b95203b60742.tar.xz qemu-527b23832930bd17338093725cb9b95203b60742.zip |
ppc/xive: Fix uint32_t overflow
As reported by Coverity, "idx << xive->pc_shift" is evaluated using
32-bit arithmetic, and then used in a context expecting a "uint64_t".
Add a uint64_t cast.
Fixes: Coverity CID 1519049
Fixes: b68147b7a5bf ("ppc/xive: Add support for the PC MMIOs")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Message-ID: <20230914154650.222111-1-clg@kaod.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions