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

Commit 1cb6d761 authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "libstagefright: fix overflow in SoftAVCEnc." into mnc-dev

parents c08872f9 595fede0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -639,7 +639,7 @@ OMX_ERRORTYPE SoftAVC::initEncoder() {
                free(mConversionBuffers[i]);
            }

            if (((uint64_t)mStride * mHeight) > (((uint64_t)INT32_MAX / 3) * 2)) {
            if (((uint64_t)mStride * mHeight) > ((uint64_t)INT32_MAX / 3)) {
                ALOGE("Buffer size is too big.");
                return OMX_ErrorUndefined;
            }