mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-13 06:34:42 -04:00
Fix TotalSize check
This commit is contained in:
parent
3507698136
commit
8bddbe7d1f
2 changed files with 3 additions and 3 deletions
|
@ -1249,8 +1249,8 @@ BOOLEAN FfsParser::microcodeHeaderValid(const INTEL_MICROCODE_HEADER* ucodeHeade
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
// Check TotalSize to be greater then DataSize snd less than 0x1000000
|
||||
if (ucodeHeader->TotalSize <= ucodeHeader->DataSize ||
|
||||
// Check TotalSize to be greater or equal than DataSize and less than 0x1000000
|
||||
if (ucodeHeader->TotalSize < ucodeHeader->DataSize ||
|
||||
ucodeHeader->TotalSize > 0xFFFFFF) {
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue