diff options
| author | Yuval Shaia | 2018-04-30 22:02:21 +0200 |
|---|---|---|
| committer | Marcel Apfelbaum | 2018-05-03 19:52:29 +0200 |
| commit | 350929172b0205dccf19c29b93ac41a406ef740d (patch) | |
| tree | e3217a41ff7a9cd6695aed32177d9c999b2d6a61 /include/exec | |
| parent | hw/rdma: Fix possible out of bounds access to GID table (diff) | |
| download | qemu-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 'include/exec')
0 files changed, 0 insertions, 0 deletions
