Actions
Bug #1563
closedNeed to check for null return value from SecTpmOsx::Impl::getKey
Start date:
04/30/2014
Due date:
% Done:
100%
Estimated time:
Description
If SecTpmOsx::Impl::getKey does not find the key, it returns null. But other functions in SecTpmOsx don't check this. For example, signInTpmInternal will seg fault if the keyName is not found because it passes the result of getKey to SecSignTransformCreate without checking for null.
To be consistent with SecTpmFile::signInTpm, maybe signInTpmInternal (and others) should throw an exception if getKey returns null.
Updated by Alex Afanasyev over 10 years ago
- Category set to Security
- Status changed from New to Closed
- Assignee set to Alex Afanasyev
- Target version set to v0.1
- % Done changed from 0 to 100
Actions