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

IntelSiliconPkg: Code Quality Improvements #215

Merged
merged 2 commits into from
Oct 3, 2024

Commits on Oct 3, 2024

  1. IntelSiliconPkg/IntelVTdDmarPei: Prevent invalid dereference

    Prevent invalid DMAR ACPI table dereference if the table is not
    found.
    
    Signed-off-by: Michael Kubacki <[email protected]>
    makubacki committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    a6a26fe View commit details
    Browse the repository at this point in the history
  2. IntelSiliconPkg/SmmAccess: Fix potential integer overflow in loop com…

    …parison
    
    SmmAccessDxe:
    
    `mSmmAccess.NumberRegions` is a `UINTN` while the loop index variable
    compared against it is a `UINT8`. This can lead to an overflow of the
    loop index for `mSmmAccess.NumberRegions` for values larger than
    `UINT8_MAX`. This change makes `Index` a `UINTN` to match in width.
    
    PeiSmmAccessLib:
    
    Fixes a similar `UINT8` loop index issue.
    
    Signed-off-by: Michael Kubacki <[email protected]>
    makubacki committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    eac8ed1 View commit details
    Browse the repository at this point in the history