Repository navigation
Fix a leak and an undefined shift in rclcpp tests - #3459
Merged
Merged
Conversation
Signed-off-by: Michael Carroll <mjcarroll.oss@gmail.com>
Signed-off-by: Michael Carroll <mjcarroll.oss@gmail.com>
ABI Compliance Check✅ Verdict: compatible
✅
|
ahcorde
marked this pull request as ready for review
November 30, 2026 21:24
ahcorde
approved these changes
Nov 30, 2026
ahcorde
approved these changes
Nov 30, 2026
Contributor
|
Pulls: #3459 |
skyegalaxy
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Two test problems found with the sanitizers:
test_utilities:remove_ros_arguments_rcl_parse_arguments_failedusedinject_on_return, so the realrcl_parse_argumentsran, allocated, and then reported an error thatremove_ros_argumentsdoes not clean up after. A real parse failure cleans up after itself, so usepatch_and_return. LSan leak.test_intra_process_manager: the mock publisher builds its GID by shifting astd::uintptr_tbyi * 8for every byte of the GID, which is up to 184 bits. Shifting by the width or more is undefined behavior (UBSan). Zero the bytes past the end of the pointer.Is this user-facing behavior change?
No.
Did you use Generative AI?
Yes, Claude Code (Claude Sonnet 5.5) wrote the changes. I reviewed them and ran both tests under ASan and UBSan.