In ACELP_4t64_fx, when iterating over ind array, check index against
array size to prevent OOB write, log an error if such an access
was about to happen.
Bug: 132647222
Test: atest EncoderTest#testAMRWBEncoders
Change-Id: I33f476d94baec2feffc7bcccd0ad0481b8452518
(cherry picked from commit 82cb46d0d5)
Merged-in: I33f476d94baec2feffc7bcccd0ad0481b8452518
am: d13505b1a3 -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 0899a9f97b is in history
Change-Id: I2603d7c8fbe95bc54643fb3637e8481b73da6a6d
am: addeb8ea10 -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 0899a9f97b is in history
Change-Id: I8624e2a0838aa3ec40b7b9250c6a7d4bfad664f1
am: 9c30405685 -s ours
am skip reason: change_id Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a with SHA1 5d482c1ac0 is in history
Change-Id: I902a63320ddda12b7594d54f9faabd5b8722249b
* changes:
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634 am: 26fe734207 am: e6fabf9be7 skipped: 56b857516b
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634 am: 26fe734207 am: e6fabf9be7
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634 am: 26fe734207
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772 am: ffd550a634
[automerger] DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix am: 24ea472772
DO NOT MERGE: audiopolicy: Remove raw pointer references to AudioMix
AudioInputDescriptor, AudioOutputDescriptor, and AudioSession used
to reference AudioMix instances using a raw pointer. This isn't
safe as AudioMix was owned by AudioPolicyMix, which is not
referenced by descriptors.
Change AudioMix* pointers in Audio{Input|Output}Descriptor and
AudioSession to wp<AudioPolicyMix> which reflects their
relationship correctly.
To ensure that code does not operate on AudioMix instances
independently from AudioPolicyMix, and to avoid introducing
a lot of getter / setter methods into AudioPolicyMix, make
the latter to inherit AudioMix. This makes sense because
AudioPolicyMix is essentially a ref-counted version of AudioMix.
Bug: 124899895
Test: build and sanity check on marlin,
build marlin with USE_CONFIGURABLE_AUDIO_POLICY := 1
Merged-In: Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a
Change-Id: Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a
AudioInputDescriptor, AudioOutputDescriptor, and AudioSession used
to reference AudioMix instances using a raw pointer. This isn't
safe as AudioMix was owned by AudioPolicyMix, which is not
referenced by descriptors.
Change AudioMix* pointers in Audio{Input|Output}Descriptor and
AudioSession to wp<AudioPolicyMix> which reflects their
relationship correctly.
To ensure that code does not operate on AudioMix instances
independently from AudioPolicyMix, and to avoid introducing
a lot of getter / setter methods into AudioPolicyMix, make
the latter to inherit AudioMix. This makes sense because
AudioPolicyMix is essentially a ref-counted version of AudioMix.
Bug: 124899895
Test: build and sanity check on angler,
build angler with USE_CONFIGURABLE_AUDIO_POLICY := 1
Merged-In: Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a
Change-Id: Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a
am: 2f26d6e3a9 -s ours
am skip reason: change_id Ie91b7946f8f4406fd06e9cb4ad883b3a2704f366 with SHA1 56173f4146 is in history
Change-Id: I62b6aaf64000aff2f40cd5447012f9e3fe139b00
AudioInputDescriptor, AudioOutputDescriptor, and AudioSession used
to reference AudioMix instances using a raw pointer. This isn't
safe as AudioMix was owned by AudioPolicyMix, which is not
referenced by descriptors.
Change AudioMix* pointers in Audio{Input|Output}Descriptor and
AudioSession to wp<AudioPolicyMix> which reflects their
relationship correctly.
To ensure that code does not operate on AudioMix instances
independently from AudioPolicyMix, and to avoid introducing
a lot of getter / setter methods into AudioPolicyMix, make
the latter to inherit AudioMix. This makes sense because
AudioPolicyMix is essentially a ref-counted version of AudioMix.
Bug: 124899895
Test: build and sanity check on angler,
build angler with USE_CONFIGURABLE_AUDIO_POLICY := 1
Merged-In: Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a
Change-Id: Ic508caedefe721ed7e7ba6ee3e9175ba9e8dc23a