summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorRichard Lyu <richard.lyu@suse.com>2026-07-07 17:56:54 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-21 00:50:57 +0300
commitb1029265b1459a4021df8e7495daf281df3344ef (patch)
treec0fabfcedf1ff00f1de28343c2fce597a5265b28 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent77585e50049839856baed37d120d4f705a2cf1d0 (diff)
downloadedk2-b1029265b1459a4021df8e7495daf281df3344ef.tar.xz
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>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions