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: implement uuid parsing according to RFC4122 #76

Merged
merged 3 commits into from
Dec 24, 2023

Conversation

ju6ge
Copy link
Contributor

@ju6ge ju6ge commented Dec 24, 2023

While trying to use the efivars variable to read my boot configuration I noticed that the displayed uuid did not match the actual uuid of my EFI partition. After some digging it turned out that the current implementation does not comply with the UEFI Specification for GUID

This PR fixes the parsing and byte serialization. Not sure if there are other parts of the codebase where this might be required as well.

@ju6ge ju6ge requested a review from iTrooz as a code owner December 24, 2023 01:12
@codecov-commenter
Copy link

codecov-commenter commented Dec 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3319c15) 81.18% compared to head (5bf5443) 81.36%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #76      +/-   ##
==========================================
+ Coverage   81.18%   81.36%   +0.18%     
==========================================
  Files          59       59              
  Lines        2998     3027      +29     
==========================================
+ Hits         2434     2463      +29     
  Misses        564      564              

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

Copy link
Owner

@iTrooz iTrooz left a comment

Choose a reason for hiding this comment

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

Thanks for the PR ! I thought I fixed this bug, but apparently not

efivar/src/boot/parse/device_path.rs Outdated Show resolved Hide resolved
@ju6ge ju6ge force-pushed the fix/uuid-hard-drive-parsing branch from 17b0b7b to 5bf5443 Compare December 24, 2023 23:25
@iTrooz iTrooz changed the title implement uuid parsing according to RFC4122 fix: implement uuid parsing according to RFC4122 Dec 24, 2023
@iTrooz iTrooz merged commit b0f45a9 into iTrooz:main Dec 24, 2023
5 checks passed
@iTrooz
Copy link
Owner

iTrooz commented Dec 24, 2023

Thank you !

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.

None yet

3 participants