mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Unsigned Integer Overflow in SpatialDecParseSpecificConfigHeader()."
am: 0695cff3dd
Change-Id: I053e082c034f33ef79aa42afc0e7bf04f6454cc2
This commit is contained in:
commit
36b3869e2c
|
@ -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