Fix potential use-after-free in hw auth token handling.

The operation map caches the hw_auth_token used to start the operation
but it was storing the pointer returned by the auth token table and not
the token itself leading to a potential use-after-free if the token was
removed from the table between the operation starting and completeting.

The operation table now stores the auth token itself instead of the
pointer provided by the auth table.

Change-Id: I80fd49655ed98e7879d2caa7f1ae077ff50e0e54
2 files changed
tree: b6658813f991f5d032a14e1407f776a101665c16
  1. keystore/
  2. keystore-engine/
  3. softkeymaster/