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

Commit 8431e9e2 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

Change-Id: I0da8d148ca9ae47798f9347ccda1ba3a7cbca435
parents 275a0c75 4f6b158f
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;