mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-01-23 04:10:53 +01:00
Unsigned Integer Overflow in SpatialDecParseSpecificConfigHeader().
Bug: 112661893 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I5994a55f993835fa511ff61a337726b3e51aed5d
This commit is contained in:
parent
a4d6ca7b07
commit
b325367b33
@ -291,13 +291,13 @@ SACDEC_ERROR SpatialDecParseSpecificConfigHeader(
|
||||
if (sacHeaderLen == 127) {
|
||||
sacHeaderLen += FDKreadBits(bitstream, 16);
|
||||
}
|
||||
numFillBits = FDKgetValidBits(bitstream);
|
||||
numFillBits = (INT)FDKgetValidBits(bitstream);
|
||||
|
||||
err = SpatialDecParseSpecificConfig(bitstream, pSpatialSpecificConfig,
|
||||
sacHeaderLen, coreCodec);
|
||||
|
||||
numFillBits -=
|
||||
FDKgetValidBits(bitstream); /* the number of read bits (tmpBits) */
|
||||
(INT)FDKgetValidBits(bitstream); /* the number of read bits (tmpBits) */
|
||||
numFillBits = (8 * sacHeaderLen) - numFillBits;
|
||||
if (numFillBits < 0) {
|
||||
/* Parsing went wrong */
|
||||
|
Loading…
Reference in New Issue
Block a user