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 Parsing of EFI_COMMON_SECTION_HEADER2 #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nate-desimone
Copy link

An issue has been observed in the case of an FFS section header using the EFI_COMMON_SECTION_HEADER2 header type. If this header type is used, the self.data attribute will erroneously contain the ExtendedSize field of the header at offset 0 instead of the beginning of the section data.

All header data should be stripped from self.data.

This issue has been corrected by offsetting the data by 8 bytes instead of 4 bytes when EFI_COMMON_SECTION_HEADER2 is found.

An issue has been observed in the case of an FFS section header using
the EFI_COMMON_SECTION_HEADER2 header type. If this header type is used,
the self.data attribute will erroneously contain the ExtendedSize field
of the header at offset 0 instead of the beginning of the section data.

All header data should be stripped from self.data.

This issue has been corrected by offsetting the data by 8 bytes instead
of 4 bytes when EFI_COMMON_SECTION_HEADER2 is found.

Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
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.

1 participant