aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-06-08 18:08:23 +0200
committerJean-Michel Trivi <jmtrivi@google.com>2018-11-27 12:30:10 -0500
commiteb0711921bb2654e12ed75a6a60a15f45652c029 (patch)
tree307a5f127edfade33975996753155c990c172e84 /libAACdec
parenta4d6ca7b07569aac07d50f894f3757b58dd2d6eb (diff)
downloadfdk-aac-eb0711921bb2654e12ed75a6a60a15f45652c029.tar.gz
fdk-aac-eb0711921bb2654e12ed75a6a60a15f45652c029.tar.bz2
fdk-aac-eb0711921bb2654e12ed75a6a60a15f45652c029.zip
Unsigned Integer Overflow in aacDecoder_DecodeFrame().
Bug: 112661742 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I617dd545f9ea0aca5a5e7d214bbc35f089bc355d
Diffstat (limited to 'libAACdec')
-rw-r--r--libAACdec/src/aacdecoder_lib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libAACdec/src/aacdecoder_lib.cpp b/libAACdec/src/aacdecoder_lib.cpp
index ea52bb5..b528ef1 100644
--- a/libAACdec/src/aacdecoder_lib.cpp
+++ b/libAACdec/src/aacdecoder_lib.cpp
@@ -1882,7 +1882,7 @@ aacDecoder_DecodeFrame(HANDLE_AACDECODER self, INT_PCM *pTimeData_extern,
} /* USAC DASH IPF flushing possible end */
if (accessUnit < numPrerollAU) {
- FDKpushBack(hBsAu, auStartAnchor - FDKgetValidBits(hBsAu));
+ FDKpushBack(hBsAu, auStartAnchor - (INT)FDKgetValidBits(hBsAu));
} else {
if ((self->buildUpStatus == AACDEC_RSV60_BUILD_UP_ON) ||
(self->buildUpStatus == AACDEC_RSV60_BUILD_UP_ON_IN_BAND) ||