diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-11-27 20:26:33 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-11-27 20:26:33 +0000 |
commit | 0695cff3ddcccae44d347a3ed25ef52f86b884a0 (patch) | |
tree | 4a5fcfa6f4d2801d65e7a8b84fc333d9b388c4a4 /libSACdec/src | |
parent | 0a1e3b6ef9e9188bcd026d921b023b0c311d30b0 (diff) | |
parent | b325367b332525e82ab331e3750a955a0679529a (diff) | |
download | fdk-aac-0695cff3ddcccae44d347a3ed25ef52f86b884a0.tar.gz fdk-aac-0695cff3ddcccae44d347a3ed25ef52f86b884a0.tar.bz2 fdk-aac-0695cff3ddcccae44d347a3ed25ef52f86b884a0.zip |
Merge "Unsigned Integer Overflow in SpatialDecParseSpecificConfigHeader()."
Diffstat (limited to 'libSACdec/src')
-rw-r--r-- | libSACdec/src/sac_bitdec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libSACdec/src/sac_bitdec.cpp b/libSACdec/src/sac_bitdec.cpp index 37e0cf2..45fb17a 100644 --- a/libSACdec/src/sac_bitdec.cpp +++ b/libSACdec/src/sac_bitdec.cpp @@ -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 */ |