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

Commit c61baba7 authored by Ivan Lozano's avatar Ivan Lozano Committed by android-build-merger
Browse files

Merge "Fix integer overflow sanitizer in FastThread.cpp." am: 2bfa8f43

am: 4bb257b2

Change-Id: I6522b382085ef7e779438be3adb2cf1f8f544826
parents fab170e7 4bb257b2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -297,7 +297,8 @@ bool FastThread::threadLoop()
                    size_t i = mBounds & (mDumpState->mSamplingN - 1);
                    mBounds = (mBounds & 0xFFFF0000) | ((mBounds + 1) & 0xFFFF);
                    if (mFull) {
                        mBounds += 0x10000;
                        //mBounds += 0x10000;
                        __builtin_add_overflow(mBounds, 0x10000, &mBounds);
                    } else if (!(mBounds & (mDumpState->mSamplingN - 1))) {
                        mFull = true;
                    }