default drm hidl: Fix decrypt destination base ptr

Bug: 144351324
Test: poc_CryptoPlugin_155
Change-Id: Id5d221cd6978d55c46c0368aceb10c1d2f559fd9
This commit is contained in:
Robert Shih
2019-11-17 23:54:21 -08:00
parent d22f1447fe
commit d79abbb0d3

View File

@@ -143,6 +143,7 @@ namespace implementation {
return Void(); return Void();
} }
base = static_cast<uint8_t *>(static_cast<void *>(destBase->getPointer()));
destPtr = static_cast<void *>(base + destination.nonsecureMemory.offset); destPtr = static_cast<void *>(base + destination.nonsecureMemory.offset);
} else if (destination.type == BufferType::NATIVE_HANDLE) { } else if (destination.type == BufferType::NATIVE_HANDLE) {
if (!secure) { if (!secure) {