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:
committed by
Ray Essick
parent
18758b9fe1
commit
ef5f44c760
@ -1171,8 +1171,10 @@ 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 */
|
||||||
transportDec_OutOfBandConfig(self->hInput, asc.config,
|
if (asc.configBits <= (TP_USAC_MAX_CONFIG_LEN << 3)) {
|
||||||
(asc.configBits + 7) >> 3, 0);
|
transportDec_OutOfBandConfig(self->hInput, asc.config,
|
||||||
|
(asc.configBits + 7) >> 3, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user