diff options
| author | Yuval Shaia | 2018-04-30 22:02:20 +0200 |
|---|---|---|
| committer | Marcel Apfelbaum | 2018-05-03 19:52:29 +0200 |
| commit | c387e8a4ecee76479f4b83b58e2e8ab854ef74ee (patch) | |
| tree | bcbebea63cdb7999efc51c5a57823d88c99c1fd5 /include/exec/user | |
| parent | hw/rdma: Delete port's pkey table (diff) | |
| download | qemu-c387e8a4ecee76479f4b83b58e2e8ab854ef74ee.tar.gz qemu-c387e8a4ecee76479f4b83b58e2e8ab854ef74ee.tar.xz qemu-c387e8a4ecee76479f4b83b58e2e8ab854ef74ee.zip | |
hw/rdma: Fix possible out of bounds access to GID table
Array size is MAX_PORT_GIDS, let's make sure the given index is in
range.
While there limit device table size to 1.
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-5-marcel.apfelbaum@gmail.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
