1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-06-05 22:39:13 +02:00

Check transportDec_OutOfBandConfig() input buffer size parameter.

Bug: 176246647
Test: atest DecoderTestXheAac DecoderTestAacDrc
Change-Id: I60ac86f09a5652c820d60dfdc12212637f888164
This commit is contained in:
Fraunhofer IIS FDK
2020-04-09 17:56:25 +02:00
committed by Ray Essick
parent 18758b9fe1
commit ef5f44c760

View File

@ -1171,10 +1171,12 @@ LINKSPEC_CPP AAC_DECODER_ERROR aacDecoder_DecodeFrame(HANDLE_AACDECODER self,
aacDecoder_FreeMemCallback(self, &asc); aacDecoder_FreeMemCallback(self, &asc);
self->streamInfo.numChannels = 0; self->streamInfo.numChannels = 0;
/* 3) restore AudioSpecificConfig */ /* 3) restore AudioSpecificConfig */
if (asc.configBits <= (TP_USAC_MAX_CONFIG_LEN << 3)) {
transportDec_OutOfBandConfig(self->hInput, asc.config, transportDec_OutOfBandConfig(self->hInput, asc.config,
(asc.configBits + 7) >> 3, 0); (asc.configBits + 7) >> 3, 0);
} }
} }
}
if (!((flags & (AACDEC_CONCEAL | AACDEC_FLUSH)) || if (!((flags & (AACDEC_CONCEAL | AACDEC_FLUSH)) ||
(self->flushStatus == AACDEC_RSV60_DASH_IPF_ATSC_FLUSH_ON) || (self->flushStatus == AACDEC_RSV60_DASH_IPF_ATSC_FLUSH_ON) ||