From d79abbb0d359dd037e6d0b4cc022fd26cea3ebaa Mon Sep 17 00:00:00 2001 From: Robert Shih Date: Sun, 17 Nov 2019 23:54:21 -0800 Subject: [PATCH] default drm hidl: Fix decrypt destination base ptr Bug: 144351324 Test: poc_CryptoPlugin_155 Change-Id: Id5d221cd6978d55c46c0368aceb10c1d2f559fd9 --- drm/1.0/default/CryptoPlugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drm/1.0/default/CryptoPlugin.cpp b/drm/1.0/default/CryptoPlugin.cpp index 6626c0172f..c9383ff0fc 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(static_cast(destBase->getPointer())); destPtr = static_cast(base + destination.nonsecureMemory.offset); } else if (destination.type == BufferType::NATIVE_HANDLE) { if (!secure) {