Using malloc'ed string for string in iSCSI target has caused scan-build error. Define maximum port number of portal to be 32 and use fixed size string whose size is 33 for spdk_iscsi_portal_grp::port. This change will reduce the potential malloc failure. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ie1fcdbd45ce000a9c1c53761195697555b8d030a Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459709 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
tgt_node_ut.c | ||
tgt_node.conf |