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

Avoid generating client IDs with leading zeros #3709

Closed
wants to merge 2 commits into from

Conversation

pcapriotti
Copy link
Contributor

Leading zeros in client IDs expose an issue with the protobuf messaging API, since there client IDs are represented as uint64. This commit works around th eissue by removing any leading zeros when generating a new client ID.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

Leading zeros in client IDs expose an issue with the protobuf messaging
API, since there client IDs are represented as uint64. This commit works
around th eissue by removing any leading zeros when generating a new
client ID.
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Nov 13, 2023
Copy link
Contributor

@MangoIV MangoIV left a comment

Choose a reason for hiding this comment

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

Looks good to me

libs/wire-api/src/Wire/API/User/Client/Prekey.hs Outdated Show resolved Hide resolved
Co-authored-by: Mango The Fourth <40720523+MangoIV@users.noreply.github.com>
@pcapriotti
Copy link
Contributor Author

Superseded by #3713.

@pcapriotti pcapriotti closed this Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants