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

Skip to content
Commit aa81dd75 authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: prevent out-of-bounds read in resampler

The cursor was initialized to -1 instead of 0.
Now it is set to 0.
This fixes a crash when running with HWASAN.

The mInputCallCount is now initialized to kInitialCounter.
See https://github.com/google/oboe/issues/987
for more info and a regression test.

Bug: 336391852
Test: Flash a HWASAN build then
Test: atest CtsNativeMediaAAudioTestCases
Test: or see bug for steps using OboeTester
Flag: EXEMPT bugfix
Change-Id: Ifadaa94a755c77e4888d66009a8de7df4bce22bc
parent 86186887
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment