Skip to content

return early with a zero-initialized array. (backport #1012) - #1018

Merged
ahcorde merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-1012
Jul 24, 2026
Merged

return early with a zero-initialized array. (backport #1012)#1018
ahcorde merged 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-1012

Conversation

@mergify

@mergify mergify Bot commented Jul 24, 2026

Copy link
Copy Markdown

Description

Part of ros2/ros2cli#1210, but this is just a latent bug fix.
now returns early with a zero-initialized (empty) array when the service is known but has no endpoints of the requested type, instead of calling &endpoints[0] on an empty std::vector (assertion abort)

Fixes # (issue)

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Additional Information


This is an automatic backport of pull request #1012 done by [Mergify](https://mergify.com).

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
(cherry picked from commit 22c4c20)
@mergify

mergify Bot commented Jul 24, 2026

Copy link
Copy Markdown
Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@fujitatomoya

Copy link
Copy Markdown
Contributor

Pulls: #1018
Gist: https://gist.githubusercontent.com/fujitatomoya/8d90af5ab2a8c71d722a39b8f4921714/raw/4d90c6b1461213b5db4ed6186e479de906e87ec8/ros2.repos
BUILD args: --packages-above-and-dependencies rmw_zenoh_cpp
TEST args: --packages-above rmw_zenoh_cpp
ROS Distro: lyrical
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19959

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

@ahcorde
ahcorde merged commit 6e80818 into lyrical Jul 24, 2026
5 checks passed
@ahcorde
ahcorde deleted the mergify/bp/lyrical/pr-1012 branch July 24, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants