edk2/MdeModulePkg
Richard Lyu b1029265b1 MdeModulePkg/GptLib: Add host-based unit tests for malformed GPT input
Extend the GptLib host-based tests with negative cases that guard the
security hardening in PartitionValidGptTable(), PartitionCheckGptEntry()
and PartitionRestoreGptTable() against future regressions. These tests
exercise the shared parser, not the specific fix itself.

The new cases drive the parser with malformed GPT structures that an
attacker may present: bad signature/revision, header-size boundaries,
CRC corruption, MyLBA replay, zero/non-power-of-two entry sizes, LBA
multiplication overflow, out-of-range and overlapping entries, and
restore failure on write-protected media. The INF file header is
updated to note the added malformed coverage.

Signed-off-by: Richard Lyu <richard.lyu@suse.com>
2026-07-20 21:50:57 +00:00
..
Application MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Bus MdeModulePkg/PciBusDxe: Honor SpecificFlag for PMem64 in UpdatePciInfo 2026-07-17 09:03:00 +00:00
Core MdeModulePkg: Dxe Core: Correct gMemoryTypeInformation Definition 2026-07-09 12:46:51 +00:00
Include MdeModulePkg/GptLib: Extract shareable GPT parser into a library 2026-07-20 21:50:57 +00:00
Library MdeModulePkg/GptLib: Add host-based unit tests for malformed GPT input 2026-07-20 21:50:57 +00:00
Logo MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Test MdeModulePkg/GptLib: Add host-based unit tests for valid GPT behavior 2026-07-20 21:50:57 +00:00
Universal MdeModulePkg/PartitionDxe: Abort on primary GPT recovery failure 2026-07-20 21:50:57 +00:00
MdeModulePkg.ci.yaml MdeModulePkg/GptLib: Add host-based unit tests for valid GPT behavior 2026-07-20 21:50:57 +00:00
MdeModulePkg.dec MdeModulePkg/GptLib: Extract shareable GPT parser into a library 2026-07-20 21:50:57 +00:00
MdeModulePkg.dsc MdeModulePkg/GptLib: Extract shareable GPT parser into a library 2026-07-20 21:50:57 +00:00
MdeModulePkg.uni MdeModulePkg: Add platform limit for size in Resizable BAR 2026-02-25 03:40:14 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00