Skip to content

get_all_data_impl() does not handle null pointers properly, causing segmentation fault (backport #2840)#2850

Merged
ahcorde merged 2 commits intokiltedfrom
mergify/bp/kilted/pr-2840
May 26, 2025
Merged

get_all_data_impl() does not handle null pointers properly, causing segmentation fault (backport #2840)#2850
ahcorde merged 2 commits intokiltedfrom
mergify/bp/kilted/pr-2840

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented May 19, 2025

Related with #2829


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

…egmentation fault (#2840)

* get_all_data_impl() does not handle null pointers properly, causing segmentation fault

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>

* Update rclcpp/include/rclcpp/experimental/buffers/ring_buffer_implementation.hpp

Co-authored-by: Janosch Machowinski <jmachowinski@users.noreply.github.com>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>

* make linters happy

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>

---------

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Janosch Machowinski <jmachowinski@users.noreply.github.com>
(cherry picked from commit 6c47883)

# Conflicts:
#	rclcpp/test/rclcpp/test_ring_buffer_implementation.cpp
@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented May 19, 2025

Cherry-pick of 6c47883 has failed:

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

You are currently cherry-picking commit 6c47883.
  (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)

Changes to be committed:
	modified:   rclcpp/include/rclcpp/experimental/buffers/ring_buffer_implementation.hpp

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

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

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented May 19, 2025

Pulls: #2850
Gist: https://gist.githubusercontent.com/ahcorde/0a23a5327f154fcb516c536fe3447131/raw/ce090f994c19706c6f74281ffa7417741b400292/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: kilted
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16030

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

@ahcorde ahcorde merged commit 82666af into kilted May 26, 2025
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/kilted/pr-2840 branch May 26, 2025 16:29
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.

1 participant