Closed Javagedes closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 1.35%. Comparing base (
750b5cd
) to head (2e8f844
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This commit modifies the PE parsing functionality to only parse the headers of the image, rather than the entire image. This change is made to improve performance and also the probability of failing to parse the entire image. This comes after this commit (https://github.com/erocarrera/pefile/pull/365) in pefile resulted in efi image parsing failures, breaking the build.
This commit also wraps the parsing of the image in a try-except block to catch any exceptions that may be raised during parsing, to cleanly exit.
See: https://github.com/microsoft/mu_tiano_platforms/pull/1025 and https://github.com/erocarrera/pefile/issues/421
How This Was Tested
Validated pipelines build on mu_tiano_platforms
Integration Instructions
N/A