Skip to content

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

Closed
mergify[bot] wants to merge 1 commit intohumblefrom
mergify/bp/humble/pr-2840
Closed

get_all_data_impl() does not handle null pointers properly, causing segmentation fault (backport #2840)#2852
mergify[bot] wants to merge 1 commit intohumblefrom
mergify/bp/humble/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/include/rclcpp/experimental/buffers/ring_buffer_implementation.hpp
#	rclcpp/test/rclcpp/test_ring_buffer_implementation.cpp
@mergify mergify bot added the conflicts label May 19, 2025
@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented May 19, 2025

Cherry-pick of 6c47883 has failed:

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

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)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   rclcpp/include/rclcpp/experimental/buffers/ring_buffer_implementation.hpp
	both modified:   rclcpp/test/rclcpp/test_ring_buffer_implementation.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/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

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