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

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

Snap for 7122074 from cb8e3038 to rvc-qpr3-release

Change-Id: I087d913231cd875450d34e6b36249a7efd938aa5
parents 3c8a20c2 cb8e3038
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -119,7 +119,11 @@ Return<void> CryptoPlugin::decrypt_1_2(
        return Void();
    }

    if (source.offset + offset + source.size > sourceBase->getSize()) {
    size_t totalSize = 0;
    if (__builtin_add_overflow(source.offset, offset, &totalSize) ||
        __builtin_add_overflow(totalSize, source.size, &totalSize) ||
        totalSize > sourceBase->getSize()) {
        android_errorWriteLog(0x534e4554, "176496160");
        _hidl_cb(Status_V1_2::ERROR_DRM_CANNOT_HANDLE, 0, "invalid buffer size");
        return Void();
    }