commit | cbb26fa796506f721d7e6a5e40b6c57ba66facfe | [log] [tgz] |
---|---|---|
author | Shawn Willden <swillden@google.com> | Fri Dec 05 15:22:02 2014 -0700 |
committer | Shawn Willden <swillden@google.com> | Mon Dec 08 07:57:46 2014 -0700 |
tree | 7e24a165b91ad45d53e09be78d8b2b599b40c043 | |
parent | 5e0579c2d4437b6f3c03872a643d12cb08a7bc79 [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. Change-Id: I2edc12f974a40c6232539954e0c28b181e1ce319