Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tee-info-hash-tool: update the metadata check when type is TD_INFO #752

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

xiaoyuxlu
Copy link
Contributor

Fix #751

@xiaoyuxlu xiaoyuxlu requested review from jyao1 and gaojiaqi7 December 13, 2024 07:56
@@ -290,7 +290,12 @@ impl TdInfoStruct {
panic!("Memory address must be 4K aligned!\n");
}

if sec.memory_data_size < sec.raw_data_size as u64 {
// Align with the implementation at:
// https://github.com/confidential-containers/td-shim/blob/3ebd63b8f213aff83f4df8901709a58a219790c4/td-shim-interface/src/metadata.rs#L405
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the comment like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@jyao1 jyao1 merged commit b4ee544 into confidential-containers:main Dec 13, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants