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 UEFI Variable Fetching on Linux #655

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

os-d
Copy link
Contributor

@os-d os-d commented Oct 18, 2024

The UEFI variable fetching on Linux was broken, it was reading the attributes as part of the data, not correctly skipping over the attributes and fetching the data. For Linux, the value read is a UINT32 Attributes + Variable Length Data.

This change has been tested to fix that but reading (and current ignoring but logging an error if the attributes aren't 7, as ConfigEditor expects) the attributes and then fetching the data past that.

The UEFI variable fetching on Linux was broken, it was reading
the attributes as part of the data, not correctly skipping over
the attributes and fetching the data. For Linux, the value read
is a UINT32 Attributes + Variable Length Data.

This change has been tested to fix that but reading (and
ignoring but logging an error if the attributes aren't 7, as
ConfigEditor expects) the attributes and then fetching the data
past that.
@Javagedes Javagedes added the bug Something isn't working label Oct 18, 2024
@Javagedes Javagedes added this to the v0.22.2 milestone Oct 18, 2024
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.43%. Comparing base (ce85203) to head (75208de).
Report is 122 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #655      +/-   ##
==========================================
- Coverage   81.43%   81.43%   -0.01%     
==========================================
  Files          56       45      -11     
  Lines        7514     7492      -22     
==========================================
- Hits         6119     6101      -18     
+ Misses       1395     1391       -4     

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

@Javagedes Javagedes merged commit 1d941cf into tianocore:master Oct 18, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants