The length of a keyed SGL data block is limited by 3 bytes. Add a check to fail requests which length exceeds 3 bytes. In other case we can send an incorrectly formed SGL request with an invalid or zero length. Fixes issue #1450 Change-Id: I77cdaff5fbf4be5754a3ac6008b8ccd532ac5905 Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3056 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
nvme_rdma_ut.c |