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)
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


No differences found