ros2 / rcl

Library to support implementation of language specific ROS Client Libraries.
Apache License 2.0
130 stars 163 forks source link

Properly initialize the char array used in type hash calculations. (backport #1182) #1183

Closed mergify[bot] closed 1 month ago

mergify[bot] commented 1 month ago

Previously, we were zero initializing it and only setting up one of its fields. But that doesn't totally properly initialize it; we really should call rcutils_char_array_init to make sure everything is initialized. Do that in the live source, as well as in the test for it.

This bug was exposed by https://github.com/ros2/rcutils/pull/478 . @fujitatomoya @emersonknapp FYI


This is an automatic backport of pull request #1182 done by Mergify.

ahcorde commented 1 month ago

Pulls: ros2/rcl#1183 Gist: https://gist.githubusercontent.com/ahcorde/93db855eb297e2fb4043094850af3424/raw/2837904b680dfeb08c8028233d78d4af176bf4de/ros2.repos BUILD args: --packages-above-and-dependencies rcl --packages-above-and-dependencies rcl TEST args: --packages-above rcl --packages-above rcl ROS Distro: jazzy Job: ci_launcher ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14570