Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jan 12, 2026

Description

node_name, node_namespace and topic_type may be nullptr. This will result in initializing a std::string with nullptr, which will cause an exception during construction. This issue is mentioned here ros2/rosbag2#2293.

explicit TopicEndpointInfo(const rcl_topic_endpoint_info_t & info)
: node_name_(info.node_name),
node_namespace_(info.node_namespace),
topic_type_(info.topic_type),

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Additional Information

N/A


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

* Improve the robustness of the TopicEndpointInfo constructor

Signed-off-by: Barry Xu <barry.xu@sony.com>

* Improve TopicEndpointInfo constructor to validate input parameters

Signed-off-by: Barry Xu <barry.xu@sony.com>

---------

Signed-off-by: Barry Xu <barry.xu@sony.com>
(cherry picked from commit 7f783cb)
@ahcorde
Copy link
Contributor

ahcorde commented Jan 12, 2026

Pulls: #3014
Gist: https://gist.githubusercontent.com/ahcorde/1016c25023dc0befdd6e5cd6e555b30d/raw/3bdb1a8a92da16603943d1c84dd2fe6e7c331b3e/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/17911

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

@ahcorde ahcorde merged commit 19e443b into kilted Jan 12, 2026
2 of 3 checks passed
@ahcorde ahcorde deleted the mergify/bp/kilted/pr-3013 branch January 12, 2026 14:36
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.

4 participants