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

Commit f8df2755 authored by Wei Jia's avatar Wei Jia Committed by Android Git Automerger
Browse files

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

* commit '1cb6d761':
  libstagefright: fix overflow in SoftAVCEnc.
parents dd6a1764 1cb6d761
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;
            }