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

Commit 31cbcd2f authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Make change and version bump to r_aml_300803000 for mainline module file: apex/manifest_codec.json

Change-Id: I271f10b6f96500844d7f2cd1799b06fe41fdd490
parents a25652e2 6097b41f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
{
  "name": "com.android.media",
  "version": 300802900
  "version": 300803000
}
+1 −1
Original line number Diff line number Diff line
{
  "name": "com.android.media.swcodec",
  "version": 300802900
  "version": 300803000
}
+6 −3
Original line number Diff line number Diff line
@@ -148,14 +148,17 @@ Return<void> CryptoPlugin::decrypt_1_2(
    // Calculate the output buffer size and determine if any subsamples are
    // encrypted.
    size_t destSize = 0;
    size_t srcSize = 0;
    bool haveEncryptedSubsamples = false;
    for (size_t i = 0; i < subSamples.size(); i++) {
        const SubSample &subSample = subSamples[i];
        if (__builtin_add_overflow(destSize, subSample.numBytesOfClearData, &destSize)) {
        if (__builtin_add_overflow(destSize, subSample.numBytesOfClearData, &destSize) ||
            __builtin_add_overflow(srcSize, subSample.numBytesOfClearData, &srcSize)) {
            _hidl_cb(Status_V1_2::ERROR_DRM_FRAME_TOO_LARGE, 0, "subsample clear size overflow");
            return Void();
        }
        if (__builtin_add_overflow(destSize, subSample.numBytesOfEncryptedData, &destSize)) {
        if (__builtin_add_overflow(destSize, subSample.numBytesOfEncryptedData, &destSize) ||
            __builtin_add_overflow(srcSize, subSample.numBytesOfEncryptedData, &srcSize)) {
            _hidl_cb(Status_V1_2::ERROR_DRM_FRAME_TOO_LARGE, 0, "subsample encrypted size overflow");
            return Void();
        }
@@ -164,7 +167,7 @@ Return<void> CryptoPlugin::decrypt_1_2(
        }
    }

    if (destSize > destBuffer.size) {
    if (destSize > destBuffer.size || srcSize > source.size) {
        _hidl_cb(Status_V1_2::ERROR_DRM_FRAME_TOO_LARGE, 0, "subsample sum too large");
        return Void();
    }