audk/FatPkg/EnhancedFatDxe
Oliver Smith-Denny 58766a4729 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>
2025-01-21 18:40:11 +00:00
..
ComponentName.c
Data.c
Delete.c
DirectoryCache.c
DirectoryManage.c
DiskCache.c FatPkg: Improvements to Fat to Fix File Corruption 2024-09-23 16:50:39 +00:00
Fat.c
Fat.h FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
Fat.inf
Fat.uni
FatExtra.uni
FatFileSystem.h FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
FileName.c
FileSpace.c FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
Flush.c
Hash.c
Info.c FatPkg: Fix potentially uninitialized variable 2024-10-25 18:48:06 +00:00
Init.c FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
Misc.c
Open.c
OpenVolume.c
ReadWrite.c
UnicodeCollation.c FatPkg/EnhancedFatDxe: Add comments around StrSize() checks 2024-11-27 15:57:08 +00:00