diff options
| author | Yuval Shaia <yuval.shaia@oracle.com> | 2018-04-30 23:02:21 +0300 |
|---|---|---|
| committer | Marcel Apfelbaum <marcel.apfelbaum@gmail.com> | 2018-05-03 20:52:29 +0300 |
| commit | 350929172b0205dccf19c29b93ac41a406ef740d (patch) | |
| tree | e3217a41ff7a9cd6695aed32177d9c999b2d6a61 /hw/mem/memory-device.c | |
| parent | c387e8a4ecee76479f4b83b58e2e8ab854ef74ee (diff) | |
| download | focaccia-qemu-350929172b0205dccf19c29b93ac41a406ef740d.tar.gz focaccia-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 'hw/mem/memory-device.c')
0 files changed, 0 insertions, 0 deletions