mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 16:08:23 +08:00
parent
a2d7169a82
commit
b96772190a
@ -3453,6 +3453,7 @@ USTATUS FfsParser::checkProtectedRanges(const UModelIndex & index)
|
|||||||
&& bgProtectedRanges[i].Size != 0 && bgProtectedRanges[i].Size != 0xFFFFFFFF
|
&& bgProtectedRanges[i].Size != 0 && bgProtectedRanges[i].Size != 0xFFFFFFFF
|
||||||
&& bgProtectedRanges[i].Offset != 0 && bgProtectedRanges[i].Offset != 0xFFFFFFFF) {
|
&& bgProtectedRanges[i].Offset != 0 && bgProtectedRanges[i].Offset != 0xFFFFFFFF) {
|
||||||
|
|
||||||
|
if ((UINT64)bgProtectedRanges[i].Offset >= addressDiff) {
|
||||||
bgProtectedRanges[i].Offset -= (UINT32)addressDiff;
|
bgProtectedRanges[i].Offset -= (UINT32)addressDiff;
|
||||||
protectedParts = openedImage.mid(bgProtectedRanges[i].Offset, bgProtectedRanges[i].Size);
|
protectedParts = openedImage.mid(bgProtectedRanges[i].Offset, bgProtectedRanges[i].Size);
|
||||||
|
|
||||||
@ -3466,6 +3467,10 @@ USTATUS FfsParser::checkProtectedRanges(const UModelIndex & index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
markProtectedRangeRecursive(index, bgProtectedRanges[i]);
|
markProtectedRangeRecursive(index, bgProtectedRanges[i]);
|
||||||
|
} else {
|
||||||
|
// TODO: Explore this.
|
||||||
|
msg(usprintf("%s: Suspicious AMI new BG protection offset", __FUNCTION__), index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (bgProtectedRanges[i].Type == BG_PROTECTED_RANGE_VENDOR_HASH_PHOENIX
|
else if (bgProtectedRanges[i].Type == BG_PROTECTED_RANGE_VENDOR_HASH_PHOENIX
|
||||||
&& bgProtectedRanges[i].Size != 0 && bgProtectedRanges[i].Size != 0xFFFFFFFF
|
&& bgProtectedRanges[i].Size != 0 && bgProtectedRanges[i].Size != 0xFFFFFFFF
|
||||||
|
Loading…
Reference in New Issue
Block a user