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

Commit a78235f4 authored by Ray Essick's avatar Ray Essick Committed by Automerger Merge Worker
Browse files

Merge "Rephrase to avoid integer overflow" into rvc-qpr-dev am: a0d5930f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/13490728

Change-Id: I08a585f8f2f315e984a0c035b0f7b040619bc46c
parents 11ef354b a0d5930f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ ABuffer::~ABuffer() {

void ABuffer::setRange(size_t offset, size_t size) {
    CHECK_LE(offset, mCapacity);
    CHECK_LE(offset + size, mCapacity);
    CHECK_LE(size, mCapacity - offset);

    mRangeOffset = offset;
    mRangeLength = size;