commit | 169b3aaca14268a6ab36e19b1cffb47f638ee506 | [log] [tgz] |
---|---|---|
author | Shawn Willden <swillden@google.com> | Fri Dec 05 15:22:02 2014 -0700 |
committer | Shawn Willden <swillden@google.com> | Thu Jan 22 16:35:35 2015 -0700 |
tree | 99118a5223e86535934c63f270603101745edb77 | |
parent | 628352b4210e26a6ea1db3f508274d93ab16616f [diff] |
Fix heap-smashing bug in keymaster key encryption. If ae_init ever fails, the memset intended to clean up the OCB key structure would actually zero a good chunk of random heap space because zeros from the address of the pointer to the key structure, rather than the address of the key structure. This fixes it. This change was already reviewed, merged and reverted, so I'm skipping the review step this time. Change-Id: If165f5583c588b695725f7c30f6d54d7805ba9dc