Revert "Fix FfsParser issues found by fuzzing"

This reverts commit b8567d32cc.
This commit is contained in:
Nikolaj Schlej 2023-03-12 08:49:19 -07:00
parent 6aeb713488
commit aa3e790fb1
8 changed files with 64 additions and 81 deletions

View file

@ -178,10 +178,8 @@ UINT32 uint24ToUint32(const UINT8* ffsSize)
+ ((UINT32) ffsSize[2] << 16U);
}
UString guidToUString(const char* in, bool convertToString)
UString guidToUString(const EFI_GUID & guid, bool convertToString)
{
const EFI_GUID guid = readUnaligned((EFI_GUID*)in);
if (convertToString) {
UString readableName = guidDatabaseLookup(guid);
if (!readableName.isEmpty())