summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnilKumar Chimata <anilc@codeaurora.org>2016-02-17 14:57:35 +0530
committerdianlujitao <dianlujitao@gmail.com>2016-08-20 15:40:15 +0800
commit6b8a2a31177c7baeabe9a05afb72cdd411698598 (patch)
treeb09716bf36c950dfa8da6283bc5a6d9b168a93bd
parentb926925d638eefb2345256361bdae7b4bbead4dc (diff)
downloadandroid_system_security-cm-13.0.tar.gz
android_system_security-cm-13.0.tar.bz2
android_system_security-cm-13.0.zip
One of the SoterTest apk test is failing due to garbage value seen when logging params.blob.data in keystore. Change-Id: I8bb12bd85380c73822a7aaf1b0e0914e6b3a46a8
-rw-r--r--keystore/keystore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/keystore/keystore.cpp b/keystore/keystore.cpp
index e9fa408..07212e9 100644
--- a/keystore/keystore.cpp
+++ b/keystore/keystore.cpp
@@ -2441,7 +2441,8 @@ public:
{
uid_t callingUid = IPCThreadState::self()->getCallingUid();
Blob keyBlob;
- String8 name8(reinterpret_cast<const char*>(param.blob.data));
+ String8 name8(reinterpret_cast<const char*>(param.blob.data),
+ param.blob.data_length);
ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob,
name8, callingUid, TYPE_KEYMASTER_10);
if (responseCode != ::NO_ERROR) {