Skip to content

fix: avoid bitshifting uint8 #31

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

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Jan 24, 2025

Indexing into Data produces a UInt8, which was being bitshifted 8+ bits, which was causing the wrong protobuf message length to be read. Instead, we need to bitshift a UInt32.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson marked this pull request as ready for review January 24, 2025 08:01
@ethanndickson ethanndickson requested a review from coadler January 24, 2025 08:02
@ethanndickson ethanndickson enabled auto-merge (squash) January 24, 2025 08:02
@ethanndickson ethanndickson merged commit 7ac4402 into main Jan 24, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/avoid-bitshift-u8 branch February 12, 2025 12:26
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