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

Commit 38560f28 authored by Dichen Zhang's avatar Dichen Zhang
Browse files

VideoFrameSchedulerBase: fix overflow in PLL::fit()

PLL::fit() may have addition or multiplication
overflow problem.

Bug: 129491498
Test: TBD

Change-Id: Id9b4bc0d2e53c1b4c239027c8b087020019a0147
(cherry picked from commit 3ba81e73)
parent 9602d9c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ void VideoFrameSchedulerBase::PLL::test() {

#endif

__attribute__((no_sanitize("integer")))
bool VideoFrameSchedulerBase::PLL::fit(
        nsecs_t phase, nsecs_t period, size_t numSamplesToUse,
        int64_t *a, int64_t *b, int64_t *err) {