Closed dirk-thomas closed 4 years ago
If we set the buffer capacity here, we should most likely revert this change here: https://github.com/ros2/rmw_connext/pull/417/files
If we set the buffer capacity here, we should most likely revert this change here: https://github.com/ros2/rmw_connext/pull/417/files
Please fill a separate issue for this if you think that code needs to be changed. It doesn't seem related to me.
If I'm not mistaken, this could be backported to Foxy.
Since the code was added originally in ros2/rmw_connext#259 the
buffer_capacity
of thercutils_uint8_array_t
wasn't updated after being reallocated. See http://build.ros2.org/view/Rci/job/Rci__nightly-connext_ubuntu_focal_amd64/29/testReport/rclcpp/TestSerializedMessage/serialization/ for a failing test because of that.The patch is a bit more length since it makes sure to not partially modify the passed in
rcutils_uint8_array_t
when exiting with an error.