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

Commit 201c1de5 authored by Ming Zhou's avatar Ming Zhou Committed by android-build-merger
Browse files

Merge "parameter passed to BnHDCP::onTransact() is incorrect when calling...

Merge "parameter passed to BnHDCP::onTransact() is incorrect when calling decrypt function." am: 5052e9cf am: 4f6b158f
am: 8431e9e2

Change-Id: I25296af562787d5965b53b8350d5b2cb1536ac86
parents 78ed1e90 8431e9e2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -240,6 +240,8 @@ status_t BnHDCP::onTransact(

        case HDCP_ENCRYPT:
        {
            CHECK_INTERFACE(IHDCP, data, reply);

            size_t size = data.readInt32();
            void *inData = NULL;
            // watch out for overflow
@@ -313,6 +315,8 @@ status_t BnHDCP::onTransact(

        case HDCP_DECRYPT:
        {
            CHECK_INTERFACE(IHDCP, data, reply);

            size_t size = data.readInt32();
            size_t bufSize = 2 * size;