| commit | bef133bea7f39e7b873a136ab0f8c7288f96884a | [log] [tgz] |
|---|---|---|
| author | Aleksandr Krasavin <[email protected]> | Wed Dec 11 17:43:49 2024 +0000 |
| committer | Aleksandr Krasavin <[email protected]> | Fri Dec 13 15:33:22 2024 +0000 |
| tree | 9b4c3fa5a7e6d4b6e03b5d9d70a36a878e581555 | |
| parent | 58ab7d1647d708c78a2c657dea3ddd732541cd8a [diff] |
Fix potential NULL memory access In calls to libc functions, even if the number of bytes to process is 0, the pointer(s) need to be valid. This change fixes a potential UB in keymaster when NULL could be passed to memcpy(). Fixes: b/378859372 Fixes: b/378854479 Fixes: b/378820988 Fixes: b/379103248 Test: Builds Test: VtsAidlKeyMintTargetTest and CtsKeystoreTestCases passes Change-Id: Ie58e0bf2aa8482567015404e234f56dc896a09d1