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

AS/Verifier: fix the report/init data comparation #274

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

Xynnn007
Copy link
Member

@Xynnn007 Xynnn007 commented Jan 3, 2024

We used to compare the runtime/init data without caring about the length of each other. This commit resize the input expected data by trim or append '\0' to the equal length with the actual value from the one in evidence.

In this way we can avoid unexpected failures.

The error was firstly caught in enclave-cc's CI https://github.com/confidential-containers/enclave-cc/actions/runs/7299054486/job/20112097547?pr=312

We used to compare the runtime/init data without caring about the
length of each other. This commit resize the input expected data by
trim or append '\0' to the equal length with the actual value from the
one in evidence.

In this way we can avoid unexpected failures.

Signed-off-by: Xynnn007 <[email protected]>
Copy link
Member

@jialez0 jialez0 left a comment

Choose a reason for hiding this comment

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

LGTM.

@jialez0 jialez0 merged commit b51c11f into confidential-containers:main Jan 3, 2024
7 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
Development

Successfully merging this pull request may close these issues.

2 participants