rdma_ut.c: In function ‘test_spdk_nvmf_rdma_request_parse_sgl_with_md’: rdma_ut.c:1152:54: warning: array subscript 10 is outside array bounds of ‘struct spdk_nvmf_rdma_request_data[1]’ [-Warray-bounds] 1152 | aligned_buffer = (void *)((uintptr_t)((char *)&data + NVMF_DATA_BUFFER_MASK) & | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ rdma_ut.c:834:37: note: while referencing ‘data’ 834 | struct spdk_nvmf_rdma_request_data data; | ^~~~ The fix is to use array instead of spdk_nvmf_rdma_request_data structure Change-Id: I81bd311d26037dcb9340d85abcb4ea45b20a5171 Reported-by: G.Balaji <gbalajieie@gmail.com> Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7365 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
rdma_ut.c |