awnumar / memguard

Secure software enclave for storage of sensitive information in memory.
Apache License 2.0
2.5k stars 123 forks source link

Fix potential leak of canary value #33

Closed awnumar closed 6 years ago

awnumar commented 6 years ago

Stop generating an ordinary slice (to initially store the canary value) to later copy from into the secure buffer. It defeats the purpose of the secure buffer.