Skip to content

use rosidl_runtime_c__String__assignn instead of memcpy.#455

Open
fujitatomoya wants to merge 1 commit intorollingfrom
fujitatomoya/issues/454
Open

use rosidl_runtime_c__String__assignn instead of memcpy.#455
fujitatomoya wants to merge 1 commit intorollingfrom
fujitatomoya/issues/454

Conversation

@fujitatomoya
Copy link
Contributor

Description

Fixes #454

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Additional Information

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@fujitatomoya fujitatomoya self-assigned this Mar 13, 2026
Copy link
Contributor Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace manual memcpy-based string management with the standard rosidl_runtime_c__String__assignn API, which properly maintains capacity == size + 1.

@fujitatomoya
Copy link
Contributor Author

with unset RMW_IMPLEMENTATION, export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp, export RMW_IMPLEMENTATION=rmw_connextdds and export RMW_IMPLEMENTATION=rmw_fastrtps_dynamic_cpp,

colcon test --event-handlers console_direct+ --packages-select rclc_parameter

all tests are passing.

@fujitatomoya
Copy link
Contributor Author

Pulls: #455
Gist: https://gist.githubusercontent.com/fujitatomoya/dc3813523e0a01d8c2580f1369ec802b/raw/bf9579366ca9232ec38598fe6bd776963c1f9ea5/ros2.repos
BUILD args: --packages-above-and-dependencies rclc_parameter
TEST args: --packages-above rclc_parameter
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18460

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Copy link
Member

@asymingt asymingt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rclc_parameter test fails on non-FastRTPS middleware

2 participants