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

BF: force "little" endianness while xor_byte #102

Merged
merged 2 commits into from
Jan 6, 2025
Merged

Conversation

yarikoptic
Copy link
Member

We are using xor_byte for fingerprint computation and need to
also handle bytes of different length. When working on big-endian
platforms (such as the only one left s390x on debian) our assumptions
of alignment of bytes in such strings fail. For consistency - always
do it "little endian" way

I also added "testing" for the expectation of the target value, so easy to discern desired logic for xor'ed value construction.

Closes #101

We are using xor_byte for fingerprint computation and need to
also handle bytes of different length.  When working on big-endian
platforms (such as the only one left s390x on debian) our assumptions
of alignment of bytes in such strings fail. For consistency - always
do it "little endian" way
@yarikoptic yarikoptic added patch Increment the patch version when merged release Create a release when this pr is merged labels Dec 31, 2024
@yarikoptic yarikoptic requested a review from jwodder December 31, 2024 04:12
Copy link

codecov bot commented Dec 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.07%. Comparing base (27b05a8) to head (d982ab4).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
+ Coverage   92.06%   92.07%   +0.01%     
==========================================
  Files           4        4              
  Lines         529      530       +1     
  Branches       40       40              
==========================================
+ Hits          487      488       +1     
  Misses         25       25              
  Partials       17       17              

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

@yarikoptic yarikoptic merged commit 7ede466 into master Jan 6, 2025
48 checks passed
@yarikoptic yarikoptic deleted the bf-biggie branch January 6, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure on big-endian systems
2 participants