Prevent message truncation by populate function 70/1470/1
authorE. Scott Daniels <daniels@research.att.com>
Fri, 1 Nov 2019 13:24:08 +0000 (09:24 -0400)
committerE. Scott Daniels <daniels@research.att.com>
Mon, 11 Nov 2019 15:21:59 +0000 (10:21 -0500)
commitacb31bd5a9daecc76e228bac2df4cb3a09f55f72
tree23c57a77f3c43851fe7b43ce70e6cd57d522ca76
parent9ffc1a610ed489b9cefea689d5461c7b773ff21b
Prevent message truncation by populate function

An attempt to write a payload to a received message in prep
for returning the response to sender could result in the
response message being truncated if it is longer than the
payload in the received message. The populate and set length
function was modified to ensure that the target message has
a payload length which is not less than the message being
added; if it does the message payload is reallocated through
RMR.

This change requires RMR version 1.10.2 or later.

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I8fa26eaace814344481c2df715c7c2486a38f6df
src/bindings/rmr-python/docs/Changelog.rst
src/bindings/rmr-python/rmr-version.yaml
src/bindings/rmr-python/rmr/rmr.py
src/bindings/rmr-python/tests/test_rmr.py