Fix 1-byte buffer overwrites due to null-termination
authorBill Blough <billblough@apache.org>
Fri, 4 Sep 2020 02:14:01 +0000 (22:14 -0400)
committerBill Blough <billblough@apache.org>
Fri, 4 Sep 2020 02:14:01 +0000 (22:14 -0400)
commit7de836303e80dcd2cdeb675be3bf66c2290776d2
tree5dcdf56b10c91ff4efccfffd5ae836ee8d205573
parent16cd2e1e0ad42e0033a968fe4ed9468834ee9a8d
Fix 1-byte buffer overwrites due to null-termination

Add axutil_stream_set_buffer_end_null function to allow memory
reallocation if needed when null-terminating a basic stream.

Fixes: AXIS2C-1600
axiom/src/om/om_data_source.c
src/core/transport/http/common/simple_http_svr_conn.c
test/core/transport/http/test_http_transport.cc
util/include/axutil_stream.h
util/src/stream.c