libibverbs/tests: fix buffer overrun issue that caused random connection failures
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 25 Jul 2008 20:17:03 +0000 (20:17 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 25 Jul 2008 20:17:03 +0000 (20:17 +0000)
commita5a47ad671618536fe1966f14ee8d331d9414dbb
tree94379565ba9093b79bb01e870e11a72d7404bc6c
parent133a11b8aabace5ce74ec32f7e21dd882a844683
libibverbs/tests: fix buffer overrun issue that caused random connection failures

libibverbs tests occasionally had failures connecting over sockets in order to exchange QP information.  (The ping-pong tests failed more than the perftests.)  The failure was caused by copying a port number into a buffer that was too small, then using it to look up an address.  Increase the size of the buffer and make sure that it's NULL terminated.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1447 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
tests/perftest/read_bw/read_bw.c
tests/perftest/read_lat/read_lat.c
tests/perftest/send_bw/send_bw.c
tests/perftest/send_lat/send_lat.c
tests/perftest/write_bw/write_bw.c
tests/perftest/write_lat/write_lat.c
ulp/libibverbs/examples/rc_pingpong/rc_pingpong.c
ulp/libibverbs/examples/uc_pingpong/uc_pingpong.c
ulp/libibverbs/examples/ud_pingpong/ud_pingpong.c