diff options
author | Robert Shih <robertshih@google.com> | 2019-11-17 23:54:21 -0800 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2019-11-18 08:23:30 +0000 |
commit | d79abbb0d359dd037e6d0b4cc022fd26cea3ebaa (patch) | |
tree | 1868e89a8656a84fe0592da951f17bf62ad8c15d | |
parent | d22f1447fe2fc10dbf45bde6fb4a7cb6f7a8a7ca (diff) | |
download | android_hardware_interfaces-d79abbb0d359dd037e6d0b4cc022fd26cea3ebaa.tar.gz android_hardware_interfaces-d79abbb0d359dd037e6d0b4cc022fd26cea3ebaa.tar.bz2 android_hardware_interfaces-d79abbb0d359dd037e6d0b4cc022fd26cea3ebaa.zip |
default drm hidl: Fix decrypt destination base ptr
Bug: 144351324
Test: poc_CryptoPlugin_155
Change-Id: Id5d221cd6978d55c46c0368aceb10c1d2f559fd9
-rw-r--r-- | drm/1.0/default/CryptoPlugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drm/1.0/default/CryptoPlugin.cpp b/drm/1.0/default/CryptoPlugin.cpp index 6626c0172..c9383ff0f 100644 --- a/drm/1.0/default/CryptoPlugin.cpp +++ b/drm/1.0/default/CryptoPlugin.cpp @@ -143,6 +143,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) { |