sslab-gatech / opensgx

OpenSGX
Other
291 stars 80 forks source link

sgx-utils.c dump_sigstruct buffer not big enough #5

Closed jethrogb closed 8 years ago

jethrogb commented 8 years ago

The buffer allocated for snprintf in dump_sigstruct in sgx-utils.c is not big enough to hold the entire data structure. Q2 gets truncated by 204 bytes.

johnmwshih commented 8 years ago

Fixed on https://github.com/sslab-gatech/opensgx/commit/25a6e9ecc59e60e73802cc961fc097b20a5d4479 Thanks for your report.