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: Avoid memcpy-ing structs into onion ping id data. #2687

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Feb 14, 2024

Although it is only ever read back on the machine it originated from, it's bad practice and we should not make our protocol have system-specific undefined padding bytes in it.

Found by TokTok/hs-tokstyle#252


This change is Reviewable

@iphydf iphydf added this to the v0.2.20 milestone Feb 14, 2024
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.69%. Comparing base (958d91e) to head (0b45eab).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2687      +/-   ##
==========================================
+ Coverage   72.63%   72.69%   +0.06%     
==========================================
  Files         150      150              
  Lines       30757    30780      +23     
==========================================
+ Hits        22339    22377      +38     
+ Misses       8418     8403      -15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iphydf iphydf modified the milestones: v0.2.20, v0.2.21 Nov 6, 2024
@github-actions github-actions bot added the bug Bug fix for the user, not a fix to a build script label Nov 20, 2024
@iphydf iphydf marked this pull request as ready for review November 27, 2024 19:35
@iphydf iphydf force-pushed the onion-ping-id branch 2 times, most recently from 312339c to a40025d Compare December 5, 2024 22:46
@pull-request-attention pull-request-attention bot assigned iphydf and unassigned Green-Sky Jan 14, 2025
Although it is only ever read back on the machine it originated from,
it's bad practice and we should not make our protocol have
system-specific undefined padding bytes in it.
@toktok-releaser toktok-releaser merged commit 3cfe41c into TokTok:master Jan 14, 2025
65 checks passed
@iphydf iphydf deleted the onion-ping-id branch January 14, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fix for the user, not a fix to a build script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants