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

dcap-ql: Fix length validation logic for quote signatures #677

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mzohreva
Copy link
Contributor

@mzohreva mzohreva commented Jan 6, 2025

This should fix #676.

Copy link
Member

@jethrogb jethrogb left a comment

Choose a reason for hiding this comment

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

Trailing input data should not be silently ignored.

@Taowyoo Taowyoo self-requested a review January 11, 2025 01:21
// `get_quote` C APIs allowing larger than necessary buffer to be
// allocated to hold the quote.
data = data.take_prefix(cmp::min(data.len(), sig_len))?;

Copy link

@jason-liang-vault jason-liang-vault Jan 16, 2025

Choose a reason for hiding this comment

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

Probably can have a warning log here if data.len() > sig_len?

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.

dcap-ql: should accept extra trailing data in quote
4 participants