Skip to content

Conversation

rhammonds-teleport
Copy link
Contributor

This PR fixes a bug we've encountered in Teleport when handling certain smart card calls: gravitational/teleport#54303

When parsing Network Data Representation (NDR) messages, we're supposed to account for padding at the end of strings to remain aligned on a 4-byte boundary. The existing code doesn't seem to cover all cases, and the resulting misalignment causes misleading errors when processing the rest of the message.

Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

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

LGTM!

Note: as a bonus, it would be great to have a regression test for this, but I can merge this now.

@CBenoit CBenoit merged commit a0a3e75 into Devolutions:master Oct 9, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants