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

libspdm_try_set_key_pair_info requester size calculation is wrong #2916

Closed
jyao1 opened this issue Nov 27, 2024 · 0 comments · Fixed by #2918
Closed

libspdm_try_set_key_pair_info requester size calculation is wrong #2916

jyao1 opened this issue Nov 27, 2024 · 0 comments · Fixed by #2918
Assignees
Labels
bug Something isn't working

Comments

@jyao1
Copy link
Member

jyao1 commented Nov 27, 2024

https://github.com/DMTF/libspdm/blob/main/library/spdm_requester_lib/libspdm_req_set_key_pair_info.c#L114-L115

        spdm_request_size = sizeof(spdm_set_key_pair_info_request_t);
        spdm_request_size += ((size_t)ptr - (size_t)spdm_request);

should be:

        spdm_request_size = ((size_t)ptr - (size_t)spdm_request);
@jyao1 jyao1 self-assigned this Nov 29, 2024
@steven-bellock steven-bellock added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants