sslab-gatech / opensgx

OpenSGX
Other
288 stars 80 forks source link

Crash when loading RSA key failed #24

Closed FrankHB closed 8 years ago

FrankHB commented 8 years ago

In function load_rsa_keys, file sgx-util.c, if fopen failed, the resulted null pointer value (fp) would still be used (after an error message shown) in the following code.

inasmkim commented 8 years ago

Fixed on 407d176. Thanks for your report.