Spdk/test/unit/lib/iscsi/tgt_node.c
Shuhei Matsumoto f341e69a50 iscsi: Use not malloc'ed but fixed size string for portal porta number
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>
2019-07-01 05:03:07 +00:00
..
.gitignore test: move iSCSI unit tests to test/unit 2017-06-28 13:10:27 -04:00
Makefile test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
tgt_node_ut.c iscsi: Use not malloc'ed but fixed size string for portal porta number 2019-07-01 05:03:07 +00:00
tgt_node.conf test: move iSCSI unit tests to test/unit 2017-06-28 13:10:27 -04:00