Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcca9e07 authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Remove dependency on Parcel::{read,write}IntPtr

bug: 15424960
bug: 15107693

Change-Id: Ic3bf37f591e620985c37f345f9a5544fd20ec4a1
parent 1a93f0cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ struct BpCrypto : public BpInterface<ICrypto> {
        data.write(subSamples, sizeof(CryptoPlugin::SubSample) * numSubSamples);

        if (secure) {
            data.writeIntPtr((intptr_t)dstPtr);
            data.writeInt64(static_cast<uint64_t>(reinterpret_cast<uintptr_t>(dstPtr)));
        }

        remote()->transact(DECRYPT, data, &reply);
@@ -249,7 +249,7 @@ status_t BnCrypto::onTransact(

            void *dstPtr;
            if (secure) {
                dstPtr = (void *)data.readIntPtr();
                dstPtr = reinterpret_cast<void *>(static_cast<uintptr_t>(data.readInt64()));
            } else {
                dstPtr = malloc(totalSize);
            }