diff options
author | Oliver Smith-Denny <osde@microsoft.com> | 2025-01-10 14:42:17 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-01-21 18:40:11 +0000 |
commit | 58766a472932c485d41163b1746fb1d9e7984f07 (patch) | |
tree | 64a0872b9a62a95b0682a530f702f1b381a0044b /BaseTools/Source/Python/Common/LongFilePathOsPath.py | |
parent | 35232f165cba2314cb4af2e0a5aa2fbb23695a0a (diff) | |
download | edk2-58766a472932c485d41163b1746fb1d9e7984f07.tar.gz edk2-58766a472932c485d41163b1746fb1d9e7984f07.tar.bz2 edk2-58766a472932c485d41163b1746fb1d9e7984f07.zip |
FatPkg: Validate Reserved FAT Entries on Volume Open
There are two reserved FAT entries in the FAT filesystem that
are expected to have valid contents in them. Today the FAT drivers
do not validate these entries when reading from a device for the
first time. This can cause infinite loops in the FAT driver when
trying to read corrupted disks as reported in
https://github.com/tianocore/edk2/issues/9679.
This PR follows the recommended update requested in that bug to
check the two reserved FAT entries and validate their contents
against the spec defined values in both FatPei and EnhancedFatDxe
when opening a device for the first time.
Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/LongFilePathOsPath.py')
0 files changed, 0 insertions, 0 deletions