commit | c8eca23793dcaf933c4dace4127de710698b7a4c | [log] [tgz] |
---|---|---|
author | Darren Krahn <dkrahn@google.com> | Fri Oct 16 10:54:43 2015 -0700 |
committer | Gaurav Shah <gauravsh@google.com> | Mon Nov 02 09:13:16 2015 -0800 |
tree | fdb7eae9267e7749368e43b2a033023483d121f7 | |
parent | 251cb28132e456f81374c8f8a983a5a9ad9aaee8 [diff] |
Reallocate keymaster parameters with malloc. Keystore assumes keymaster parameters are allocated with malloc but keymaster's AuthorizationSet allocates with new[]. To avoid memory corruption, reallocate with malloc before passing to keystore. BUG: 24905120 Change-Id: I958d5060b08bb0c97eceded354241e0948d5f3b2