-
Notifications
You must be signed in to change notification settings - Fork 108
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
The OpaqueData offset in libspdm_req_get_csr.c
and libspdm_rsp_csr.c
not match with the Byte offset
of OpaqueData
Field in GET_CSR
request message format
#2039
Comments
libspdm_req_get_csr.c
and libspdm_rsp_csr.c
not match with the Byte offset
of OpaqueData
Field in GET_CSR
request message format.libspdm_req_get_csr.c
and libspdm_rsp_csr.c
not match with the Byte offset
of OpaqueData
Field in GET_CSR
request message format
Looks like that's been there since the very beginning : 0ab2787 Nobody has complained probably because
But this highlights a deficiency in the unit tests, as they aren't checking the values of those fields. |
I think probably we also need to fix in 2.3 branch. Also need to check unit test. |
I can take this issue |
We can bundle it with the other fix. |
Signed-off-by: Xiaohanjlll <[email protected]>
Signed-off-by: Xiaohanjlll <[email protected]>
Signed-off-by: Xiaohanjlll <[email protected]>
Signed-off-by: Xiaohanjlll <[email protected]>
Signed-off-by: Xiaohanjlll <[email protected]>
The OpaqueData offset in
libspdm_req_get_csr.c
andlibspdm_rsp_csr.c
does not match with theByte offset
ofOpaqueData
Field inTable 79 — GET_CSR request message format
in DSP0274_1.2.1.pdf.The
OpaqueData offset
inlibspdm_req_get_csr.c
should be 8 +RequesterInfoLength
, following the spec.GET_CSR request message format
But now the
OpaqueData offset
inlibspdm_req_get_csr.c
isspdm_request + 1
(=8) at the following line 97, it is actuallyRequesterInfo
Field, notOpaqueData
Field.libspdm/library/spdm_requester_lib/libspdm_req_get_csr.c
Lines 96 to 106 in e545b07
The same issue is also in
libspdm_rsp_csr.c
at the following line 116.libspdm/library/spdm_responder_lib/libspdm_rsp_csr.c
Line 116 in e545b07
The text was updated successfully, but these errors were encountered: