qemu/hw/rdma/vmw
Yuval Shaia 350929172b 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>
2018-05-03 20:52:29 +03:00
..
pvrdma_cmd.c hw/rdma: Fix possible out of bounds access to GID table 2018-05-03 20:52:29 +03:00
pvrdma_dev_ring.c hw/rdma: Fix 32-bit compilation 2018-03-23 18:38:55 +03:00
pvrdma_dev_ring.h hw/rdma: Fix 32-bit compilation 2018-03-23 18:38:55 +03:00
pvrdma_main.c hw/rdma: Fix possible out of bounds access to regs array 2018-05-03 20:52:29 +03:00
pvrdma_qp_ops.c hw/rdma: Fix possible usage of a NULL pointer 2018-05-03 20:52:29 +03:00
pvrdma_qp_ops.h
pvrdma.h hw/rdma: Fix possible out of bounds access to regs array 2018-05-03 20:52:29 +03:00
trace-events hw/rdma: Implementation of PVRDMA device 2018-02-19 13:03:24 +02:00