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

Fix zid_to_str to treat z_id_t as little endian #190

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

JEnoch
Copy link
Contributor

@JEnoch JEnoch commented Jun 3, 2024

By convention in Zenoh, a z_id_t is a little endian u128.
rmw_zenoh_cpp::liveliness::zid_to_str() was treating it as big endian, leading to inconsistency with representation in Zenoh logs.

@JEnoch JEnoch mentioned this pull request Jun 3, 2024
Copy link
Member

@Yadunund Yadunund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@Yadunund Yadunund merged commit e686493 into ros2:rolling Jun 3, 2024
7 checks passed
Yadunund added a commit that referenced this pull request Jun 4, 2024
* Fix UB

Signed-off-by: Yadunund <[email protected]>

* Rework logic

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Yadunund <[email protected]>
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