Fix for heap buffer overflow in xaac decoder init

Number of elements allowed in usac profile are 16. Erroneous input
stream in this use case has 63336 elements.We have an error
check for this max number of elements while parsing the decoder
configuration.This returned error code was not handled properly.

Maximum 16 config elements can be used while codec creation,because
of number of elements values is coming as 63336, during
creation time OOB read is happening.

Bug:112766520
Bug:112857468
Bug:112913145
Bug:112918261
Test: re-ran poc
Change-Id: If9413546371f72a6896f5c7e7d22a314e484cf76
(cherry picked from commit 4878ef09c7db2b2d96505c285b5ca96920b8f312)
2 files changed
tree: 0a9f50ece745cbb40356fe00a80bacdd4b5f54f8
  1. decoder/
  2. test/
  3. Android.bp
  4. LICENSE
  5. MODULE_LICENSE_APACHE2
  6. NOTICE
  7. OWNERS