mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-17 00:24:47 -04:00
parent
e0750a7b68
commit
49190d04dd
2 changed files with 16 additions and 6 deletions
|
@ -267,10 +267,17 @@ STATUS FfsParser::parseIntelImage(const QByteArray & intelImage, const UINT32 pa
|
|||
return ERR_INVALID_FLASH_DESCRIPTOR;
|
||||
}
|
||||
biosBegin = meEnd;
|
||||
bios = intelImage.mid(biosBegin, biosEnd);
|
||||
// biosEnd will point to the end of the image file
|
||||
// it may be wrong, but it's pretty hard to detect a padding after BIOS region
|
||||
// with malformed descriptor
|
||||
}
|
||||
// Normal descriptor map
|
||||
else {
|
||||
bios = intelImage.mid(biosBegin, biosEnd);
|
||||
// Calculate biosEnd
|
||||
biosEnd += biosBegin;
|
||||
}
|
||||
|
||||
bios = intelImage.mid(biosBegin, biosEnd);
|
||||
biosEnd += biosBegin;
|
||||
}
|
||||
else {
|
||||
msg(tr("parseIntelImage: descriptor parsing failed, BIOS region not found in descriptor"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue