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

Commit e93a33a8 authored by Abhishek Arya's avatar Abhishek Arya Committed by Android Git Automerger
Browse files

am 8cc71bc8: Merge "DO NOT MERGE Part of fix for libmedia OOB write anywhere" into lmp-dev

* commit '8cc71bc8':
  DO NOT MERGE Part of fix for libmedia OOB write anywhere
parents e534b0e8 8cc71bc8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -247,9 +247,9 @@ status_t BnCrypto::onTransact(
                    subSamples,
                    sizeof(CryptoPlugin::SubSample) * numSubSamples);

            void *dstPtr;
            void *secureBufferId, *dstPtr;
            if (secure) {
                dstPtr = reinterpret_cast<void *>(static_cast<uintptr_t>(data.readInt64()));
                secureBufferId = reinterpret_cast<void *>(static_cast<uintptr_t>(data.readInt64()));
            } else {
                dstPtr = malloc(totalSize);
            }
@@ -262,7 +262,7 @@ status_t BnCrypto::onTransact(
                    mode,
                    srcData,
                    subSamples, numSubSamples,
                    dstPtr,
                    secure ? secureBufferId : dstPtr,
                    &errorDetailMsg);

            reply->writeInt32(result);