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

Skip to content
Commit ab36f00e authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

libaudiohal@aidl: Fix Hal2AidlMapper::updateDynamicMixPorts

'updateDynamicMixPorts' iterates over 'mDynamicMixPortIds' and
calls 'updateAudioPort' which can modify the vector and thus
invalidate the iterator.

Make a copy of 'mDynamicMixPortIds' to ensure that the vector
we are iterating on remains untouched.

Bug: 367117623
Test: atest CoreAudioHalAidlTest
Change-Id: I14fdd62ef23b2e96c93717c00e6fa4f7948e5932
parent a8e00786
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment