fix(experiments): verify DOS load-image target identity
Reject stale verified load-image facts before deriving an entry address, retain the original source reference, and verify session cleanup with a focused recording-port regression. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent
4e149fbee1
commit
aada535dea
@@ -162,6 +162,8 @@ export const measureNativeEntry = async ({
|
||||
throw new Error(
|
||||
"The shipped DOS load image was not independently verified",
|
||||
);
|
||||
if (loadImage.target_sha256 !== inputSha)
|
||||
throw new Error("The DOS load image belongs to a different target");
|
||||
loadImageEvidenceId = imageEvidence.evidence_id;
|
||||
seed = loadImage.entry.linear_address;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user