UT 0.21.4 / UP 0.3.8

- fixed a bug introduced in 0.21.3 commit
This commit is contained in:
Nikolaj Schlej 2015-10-04 22:28:44 +02:00
parent 9d0bcd0bed
commit 7ebbc58b9b
3 changed files with 4 additions and 4 deletions

View file

@ -303,17 +303,17 @@ UINT8 FfsEngine::parseIntelImage(const QByteArray & intelImage, QModelIndex & in
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);
}
else {
msg(tr("parseIntelImage: descriptor parsing failed, BIOS region not found in descriptor"));