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

SPDM emu fails when RSP trans_size is 42 and REQ trans_size is 4096 #1237

Closed
jyao1 opened this issue Sep 27, 2022 · 0 comments · Fixed by #1238
Closed

SPDM emu fails when RSP trans_size is 42 and REQ trans_size is 4096 #1237

jyao1 opened this issue Sep 27, 2022 · 0 comments · Fixed by #1238
Assignees
Labels
bug Something isn't working stable For upcoming stable release

Comments

@jyao1
Copy link
Member

jyao1 commented Sep 27, 2022

The root cause is https://github.com/DMTF/libspdm/blob/main/library/spdm_requester_lib/libspdm_req_send_receive.c#L465

when responder returns chunk_send_ack with valid response, the send_info->large_message_size is override by response in chunk_send_ack. It is invalid to use send_info->chunk_bytes_transferred to check.

@jyao1 jyao1 self-assigned this Sep 27, 2022
@jyao1 jyao1 added bug Something isn't working stable For upcoming stable release labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stable For upcoming stable release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant