summaryrefslogtreecommitdiffstats
path: root/tests/test-io-channel-command.c
diff options
context:
space:
mode:
authorLi Qiang2019-01-03 14:12:51 +0100
committerMarcel Apfelbaum2019-01-19 09:57:48 +0100
commita5fe209d71f311afb0035ce39e9472f9b31445e9 (patch)
tree0974b7b5373ad6f92c0522e30de422ef931e4ed4 /tests/test-io-channel-command.c
parenthw/rdma: Verify that ptr is not NULL before freeing (diff)
downloadqemu-a5fe209d71f311afb0035ce39e9472f9b31445e9.tar.gz
qemu-a5fe209d71f311afb0035ce39e9472f9b31445e9.tar.xz
qemu-a5fe209d71f311afb0035ce39e9472f9b31445e9.zip
hw: rdma: fix an off-by-one issue
In rdma_rm_get_backend_gid_index(), the 'sgid_idx' is used to index the array 'dev_res->port.gid_tbl' which size is MAX_PORT_GIDS. Current the 'sgid_idx' may be MAX_PORT_GIDS thus cause an off-by-one issue. Spotted by Coverity: CID 1398594 Signed-off-by: Li Qiang <liq3ea@163.com> Message-Id: <20190103131251.49271-1-liq3ea@163.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'tests/test-io-channel-command.c')
0 files changed, 0 insertions, 0 deletions