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

Commit 4f6b158f 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 decrypt function."

am: 5052e9cf

Change-Id: I4eaf334bd11e1b91d68d40c0958f14364ee9b471
parents bf7c90ad 5052e9cf
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;