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

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

Snap for 7124858 from 92d4d99b to rvc-qpr3-release

Change-Id: I3ef20bb3176aa63b7698aa64a12f2fa38d91057d
parents cf0e945a 92d4d99b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -124,7 +124,11 @@ namespace implementation {
            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::ERROR_DRM_CANNOT_HANDLE, 0, "invalid buffer size");
            return Void();
        }