mirror of https://github.com/mstorsjo/fdk-aac.git
Check transportDec_OutOfBandConfig() input buffer size parameter.
Bug: 176246647 Test: atest DecoderTestXheAac DecoderTestAacDrc Change-Id: I60ac86f09a5652c820d60dfdc12212637f888164
This commit is contained in:
parent
18758b9fe1
commit
ef5f44c760
|
@ -1171,8 +1171,10 @@ LINKSPEC_CPP AAC_DECODER_ERROR aacDecoder_DecodeFrame(HANDLE_AACDECODER self,
|
|||
aacDecoder_FreeMemCallback(self, &asc);
|
||||
self->streamInfo.numChannels = 0;
|
||||
/* 3) restore AudioSpecificConfig */
|
||||
transportDec_OutOfBandConfig(self->hInput, asc.config,
|
||||
(asc.configBits + 7) >> 3, 0);
|
||||
if (asc.configBits <= (TP_USAC_MAX_CONFIG_LEN << 3)) {
|
||||
transportDec_OutOfBandConfig(self->hInput, asc.config,
|
||||
(asc.configBits + 7) >> 3, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue