FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[GPT] Get secondary header address from primary if otherwise valid by Penguinwizzard · Pull Request #306 · DiscUtils/DiscUtils · GitHub

[GPT] Get secondary header address from primary if otherwise valid - #306

Open
Penguinwizzard wants to merge 1 commit into
DiscUtils:developfrom
Penguinwizzard:user/demorri/gpt_handle_last_usable_sector
Open

[GPT] Get secondary header address from primary if otherwise valid#306
Penguinwizzard wants to merge 1 commit into
DiscUtils:developfrom
Penguinwizzard:user/demorri/gpt_handle_last_usable_sector

Conversation

Copy link
Copy Markdown

The UEFI spec states that to validate a GPT we should check the sig, CRC, self-referential LBA, partition entry array CRC, and for the primary GPT, the GPT at the alternateLBA. Here we were instead checking the GPT at the end of the disk, which may not be the same as the alternateLBA if the disk was grown by a non-partition-aware tool (e.g. in a RAID array). By checking the indicated alternateLBA, we accept more valid GPT-based disks, where before we may have been looking at uninitialized data.

The UEFI spec states that to validate a GPT we should check the sig,
CRC, self-referential LBA, partition entry array CRC, and for the
primary GPT, the GPT at the alternateLBA. Here we were instead checking
the GPT at the end of the disk, which may not be the same as the
alternateLBA if the disk was grown by a non-partition-aware tool (e.g.
in a RAID array). By checking the indicated alternateLBA, we accept more
valid GPT-based disks, where before we may have been looking at
uninitialized data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL