request_size paramater in libspdm_get_response_finish #1837
Unanswered
PavelPu123
asked this question in
Q&A
Replies: 1 comment 10 replies
-
We allow the transport layer to add padding. (for example, PCI_DOE requires 4 bytes aligned). A larger message maybe a valid one. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
As I understand "request_size" in above functions is updated after the transport header is removed, thus the equality sign should stay here, as we shouldn't allow a larger message size (and it should be considered an invalid request). Please correct me if I'm missing something. Thanks.
libspdm/library/spdm_responder_lib/libspdm_rsp_finish.c
Lines 453 to 454 in 4d2b685
Commit:
4d2b685#diff-e20c71e6f0c9740582f8b26119596ac39833a47ed51f0f0da9285e46ad7fab54
Beta Was this translation helpful? Give feedback.
All reactions