summaryrefslogtreecommitdiff
path: root/drm/1.0/default/CryptoPlugin.cpp
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2019-11-17 23:54:21 -0800
committermosimchah <mosimchah@gmail.com>2020-03-10 04:57:16 -0400
commit9f918e2c6ef13c62bd8ccb4d5404928623e54090 (patch)
treeb539d3195739d1d13be1a7b3864ffba9bce741fc /drm/1.0/default/CryptoPlugin.cpp
parent7d4d978e53377b8168c37eb7d53831fd577b04cc (diff)
default drm hidl: Fix decrypt destination base ptrp9.0
Bug: 144351324 Test: poc_CryptoPlugin_155 Change-Id: Id5d221cd6978d55c46c0368aceb10c1d2f559fd9 (cherry picked from commit d79abbb0d359dd037e6d0b4cc022fd26cea3ebaa)
Diffstat (limited to 'drm/1.0/default/CryptoPlugin.cpp')
-rw-r--r--drm/1.0/default/CryptoPlugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drm/1.0/default/CryptoPlugin.cpp b/drm/1.0/default/CryptoPlugin.cpp
index 4fe6c9b43..19666f53a 100644
--- a/drm/1.0/default/CryptoPlugin.cpp
+++ b/drm/1.0/default/CryptoPlugin.cpp
@@ -153,6 +153,7 @@ namespace implementation {
return Void();
}
+ base = static_cast<uint8_t *>(static_cast<void *>(destBase->getPointer()));
destPtr = static_cast<void *>(base + destination.nonsecureMemory.offset);
} else if (destination.type == BufferType::NATIVE_HANDLE) {
if (!secure) {