Skip to content
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

[iron] Fix uninitialized value pointed out by clang static analysis. (backport #1440) #1448

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 22, 2023

This is an automatic backport of pull request #1440 done by Mergify.
Cherry-pick of 9870868 has failed:

On branch mergify/bp/iron/pr-1440
Your branch is up to date with 'origin/iron'.

You are currently cherry-picking commit 9870868.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   rosbag2_transport/test/rosbag2_transport/test_type_description_hash.cpp

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

When constructing rclcpp::TopicEndpointInfo from an
rcl_topic_endpoint_info_t, one of the fields it uses
is the 'qos_profile'.  But this particular test was forgetting
to initialize that field, leading to access of uninitialized
data.  Just set it to default here.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit 9870868)

# Conflicts:
#	rosbag2_transport/test/rosbag2_transport/test_type_description_hash.cpp
@mergify mergify bot requested a review from a team as a code owner August 22, 2023 03:51
@mergify mergify bot requested review from emersonknapp and james-rms and removed request for a team August 22, 2023 03:51
@mergify mergify bot added the conflicts label Aug 22, 2023
@MichaelOrlov MichaelOrlov changed the title Fix uninitialized value pointed out by clang static analysis. (backport #1440) [iron] Fix uninitialized value pointed out by clang static analysis. (backport #1440) Sep 15, 2023
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
@MichaelOrlov
Copy link
Contributor

Gist: https://gist.githubusercontent.com/MichaelOrlov/15a4760cf9f496aeaecdafdb7d5a408e/raw/456529aa4c4988e624f0f492abb116e23741e823/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_transport
TEST args: --packages-above rosbag2_transport
ROS Distro: iron
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/12668

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

@MichaelOrlov MichaelOrlov merged commit 7adc0f9 into iron Sep 15, 2023
14 checks passed
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/iron/pr-1440 branch September 15, 2023 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants