Go to file
Fraunhofer IIS FDK c516539a20 Fix heap buffer overflow in sbrDecoder_AssignQmfChannels2SbrChannels().
In the bug the SBR decoder has already set up 9 channels and tries to
allocate one more channel. The assignment of the QMF channels to SBR
channels fails since the QMF domain manages only 8+1 channels instead
of 10 channels as reqeusted by SBR.
Here we have added a check in sbrDecoder_InitElement() which will
return with a parse error in case additional SBR channels would exceed
the maximum number of SBR channels. This solves the potential heap
buffer overflow.

Bug: 158762825
Test: atest DecoderTestAacDrc DecoderTestAacFormat DecoderTestXheAac
Merged-In: I0150ac6d5a47ffce883010f531928656eebc619e
Change-Id: I8569a15214707ab622e986b34b4b917251495662
2020-07-09 08:56:14 -07:00
documentation Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
libAACdec Merge "Unify audio element loop abort criterion in ER syntax" into pi-dev 2018-10-01 22:19:05 +00:00
libAACenc Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
libArithCoding Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
libDRCdec FDK patches: fix overflows in decoder out-of-band config 2018-05-09 15:15:28 -07:00
libFDK Add sanity check in huff_decode() 2019-04-09 12:05:51 -07:00
libMpegTPDec Add sampling rate sanity check 2018-09-05 14:05:32 -07:00
libMpegTPEnc Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
libPCMutils Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
libSACdec FDK patches: fix overflows in decoder out-of-band config 2018-05-09 15:15:28 -07:00
libSACenc FDKv2 additional fixes 2018-05-04 11:05:58 -07:00
libSBRdec Fix heap buffer overflow in sbrDecoder_AssignQmfChannels2SbrChannels(). 2020-07-09 08:56:14 -07:00
libSBRenc FDKv2 ubsan patches 2018-05-23 12:19:40 -07:00
libSYS Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
.clang-format Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
Android.bp Prevent out of bounds accesses in lppTransposer() and lppTransposerHBE() 2018-10-05 10:41:10 -07:00
MODULE_LICENSE_FRAUNHOFER Snapshot 2bda038c16 2012-07-11 10:15:24 -07:00
NOTICE Upgrade to FDKv2 2018-04-19 11:21:15 -07:00
OWNERS Add OWNERS in external/aac 2017-06-05 10:10:15 -07:00