DMTF / spdm-emu

BSD 3-Clause "New" or "Revised" License
31 stars 42 forks source link

current TSP and TDISP message might not return ERROR message because of short response size #382

Closed jyao1 closed 18 hours ago

jyao1 commented 2 days ago

For example, the expected TSP response might be only 4 bytes, but the default TSP error message is 12 bytes. As such, it is impossible to return error error message.

The right approach is to always ensure that the response buffer can be bigger than error message size.