commit | e5a54485e08400a976092cd5b1c6d909d0e1a4ab | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Mon Feb 13 16:31:20 2017 -0800 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Tue Feb 14 00:42:49 2017 +0000 |
tree | 1195d30fed374d3152b1efbed96e16cd3554ea90 | |
parent | ea2023406b8306b5562e9113a159c7126438d200 [diff] |
EffectBundle: check nb channels to write speaker angles When speaker angles are queried, the size of the array for the returned data is 3x the number of channels (where really it should be max(2, nbChannels)). The code assumed it was at least 3x2 (where 2 is the number of virtual speakers this effect supports) and would thus crash when called for a mono channel mask. Test: see repro steps in bug Bug: 32591350 Change-Id: I33d4bff6b2e19a9fc4284a85a446804878d3a410