]> git.openfabrics.org - ~shefty/rdma-win.git/commit
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)
commit65019bbbaea57ec117f13addb788f0d089c7299c
tree7423540df4b038ca1a6893f8bdcaf5c8b6f581ed
parentbfed7b03fa382b80e853fa1f5b18785607c7f6c7
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@1447 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/tests/perftest/read_bw/read_bw.c
trunk/tests/perftest/read_lat/read_lat.c
trunk/tests/perftest/send_bw/send_bw.c
trunk/tests/perftest/send_lat/send_lat.c
trunk/tests/perftest/write_bw/write_bw.c
trunk/tests/perftest/write_lat/write_lat.c
trunk/ulp/libibverbs/examples/rc_pingpong/rc_pingpong.c
trunk/ulp/libibverbs/examples/uc_pingpong/uc_pingpong.c
trunk/ulp/libibverbs/examples/ud_pingpong/ud_pingpong.c