diff options
| author | Robert Shih <robertshih@google.com> | 2019-11-17 23:54:21 -0800 |
|---|---|---|
| committer | Greg Wroblewski <musashi@google.com> | 2020-01-10 14:53:25 -0800 |
| commit | 706a84a7a7d9c5dcd2b651f608c14143e191aaef (patch) | |
| tree | c10e2eea5b619d5a4c64747592a8eacf409b110a | |
| parent | fdcf5a9b0d68602ce1aacb69605d885ecaaf8c84 (diff) | |
| download | android_hardware_interfaces-706a84a7a7d9c5dcd2b651f608c14143e191aaef.tar.gz android_hardware_interfaces-706a84a7a7d9c5dcd2b651f608c14143e191aaef.tar.bz2 android_hardware_interfaces-706a84a7a7d9c5dcd2b651f608c14143e191aaef.zip | |
default drm hidl: Fix decrypt destination base ptr
Bug: 144351324
Test: poc_CryptoPlugin_155
Change-Id: Id5d221cd6978d55c46c0368aceb10c1d2f559fd9
(cherry picked from commit d79abbb0d359dd037e6d0b4cc022fd26cea3ebaa)
| -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 aa5c6edc6..b86260342 100644 --- a/drm/1.0/default/CryptoPlugin.cpp +++ b/drm/1.0/default/CryptoPlugin.cpp @@ -156,6 +156,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) { |
