Prevent message truncation by populate function 25/1925/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>
Wed, 4 Dec 2019 14:08:12 +0000 (09:08 -0500)
commitf1d8288e7a8d73e5d7441269a5d258eb90ed389e
treecae506a4ed92cae444ec81205f495a1c3dc386d2
parent359d35e90982882267d7284e2a5ead77a28560d2
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.

CP: dev-b
Cherry-Id: I8fa26eaace814344481c2df715c7c2486a38f6df duplicated CID from an abandoned change
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Iaf032cb0b5feb14c714077430e1962107eae8a42
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