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

Write access violation #223

Open
exland opened this issue Mar 14, 2023 · 3 comments
Open

Write access violation #223

exland opened this issue Mar 14, 2023 · 3 comments

Comments

@exland
Copy link

exland commented Mar 14, 2023

The violation accurs affter the cert root hash matchs .

With the cmake parameters : -DARCH=x64 -DTOOLCHAIN=VS2019 -DTARGET=Debug -DCRYPTO=mbedtls
spdm_requester_emu.exe parameters : --ver 1.2 --pcap RequesterPcap.pcap
spdm_responder_emu.exe parameters : --ver 1.2 --pcap ResponderPcap.pcap

stack trace for the error
spdm_requester_emu.exe!libspdm_zero_mem(void * buffer, unsigned __int64 length) Line 33 C
spdm_requester_emu.exe!spdm_authentication(void * context, unsigned char * slot_mask, void * total_digest_buffer, unsigned char slot_id, unsigned __int64 * cert_chain_size, void * cert_chain, unsigned char measurement_hash_type, void * measurement_hash) Line 61 C
spdm_requester_emu.exe!do_authentication_via_spdm() Line 134 C

@jyao1
Copy link
Member

jyao1 commented Mar 19, 2023

I cannot reproduce the error.

  1. Which version spdm-emu you are using?
  2. Can you post a full debug log?

@exland
Copy link
Author

exland commented Mar 20, 2023

Hi,

  1. I use the 1.2 version of spam-emu.
  2. What exactly do you need?

@jyao1
Copy link
Member

jyao1 commented Mar 20, 2023

  1. My question is which tag version of spdm-emu - https://github.com/DMTF/spdm-emu/tags. Not spdm specification version. I assume you are using latest one. But if not, please try the latest one.
  2. I am not able to reproduce it on my environment with latest code base. If you need help, please post the full debug log on the screen. Otherwise, I do not know what happened on your side, and I am not able to help.

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

No branches or pull requests

2 participants