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

[202311] ImageValidation.py: Don't parse entire image #1126

Merged

Commits on Aug 29, 2024

  1. ImageValidation.py: Don't parse entire image

    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 (erocarrera/pefile#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.
    Javagedes committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    2e8f844 View commit details
    Browse the repository at this point in the history