-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly initialize the char array used in type hash calculations. #1182
Conversation
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. Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Pulls: #1182 |
https://github.com/Mergifyio backport jazzy |
should we backport this to |
✅ Backports have been created
|
…1182) 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. Signed-off-by: Chris Lalancette <clalancette@gmail.com> (cherry picked from commit bfe00f7)
Iron, yes. This code didn't exist in humble, so not needed there. |
@Mergifyio backport iron |
✅ Backports have been created
|
…1182) 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. Signed-off-by: Chris Lalancette <clalancette@gmail.com> (cherry picked from commit bfe00f7)
…1182) (#1183) 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. Signed-off-by: Chris Lalancette <clalancette@gmail.com> (cherry picked from commit bfe00f7) Co-authored-by: Chris Lalancette <clalancette@gmail.com>
…1182) (#1184) 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. Signed-off-by: Chris Lalancette <clalancette@gmail.com> (cherry picked from commit bfe00f7) Co-authored-by: Chris Lalancette <clalancette@gmail.com>
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 ros2/rcutils#478 . @fujitatomoya @emersonknapp FYI