mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-14 23:24:49 -04:00
Fix FfsParser issues found by fuzzing
Resolve alignment issue with guidToUstring
This commit is contained in:
parent
75bf036137
commit
b8567d32cc
8 changed files with 81 additions and 64 deletions
|
@ -178,8 +178,10 @@ UINT32 uint24ToUint32(const UINT8* ffsSize)
|
|||
+ ((UINT32) ffsSize[2] << 16U);
|
||||
}
|
||||
|
||||
UString guidToUString(const EFI_GUID & guid, bool convertToString)
|
||||
UString guidToUString(const char* in, bool convertToString)
|
||||
{
|
||||
const EFI_GUID guid = readUnaligned((EFI_GUID*)in);
|
||||
|
||||
if (convertToString) {
|
||||
UString readableName = guidDatabaseLookup(guid);
|
||||
if (!readableName.isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue