summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYuval Shaia2018-04-30 22:02:21 +0200
committerMarcel Apfelbaum2018-05-03 19:52:29 +0200
commit350929172b0205dccf19c29b93ac41a406ef740d (patch)
treee3217a41ff7a9cd6695aed32177d9c999b2d6a61 /scripts
parenthw/rdma: Fix possible out of bounds access to GID table (diff)
downloadqemu-350929172b0205dccf19c29b93ac41a406ef740d.tar.gz
qemu-350929172b0205dccf19c29b93ac41a406ef740d.tar.xz
qemu-350929172b0205dccf19c29b93ac41a406ef740d.zip
hw/rdma: Fix possible out of bounds access to regs array
Coverity (CID1390589, CID1390608). Array size is RDMA_BAR1_REGS_SIZE, let's make sure the given address is in range. While there also: 1. Adjust the size of this bar to reasonable size 2. Report the size of the array with sizeof(array) Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Message-Id: <20180430200223.4119-6-marcel.apfelbaum@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions