aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-06-29 16:34:34 +0200
committerJean-Michel Trivi <jmtrivi@google.com>2018-12-26 19:39:27 -0500
commit512898b2985f8da79a07fd137b0ff0b6c614bf37 (patch)
treeffee5ace76e36421b8d0ffe4da1c4478f13494d4 /libAACdec
parentf59fd73d4443b015b11a362c807f6b828658a799 (diff)
downloadfdk-aac-512898b2985f8da79a07fd137b0ff0b6c614bf37.tar.gz
fdk-aac-512898b2985f8da79a07fd137b0ff0b6c614bf37.tar.bz2
fdk-aac-512898b2985f8da79a07fd137b0ff0b6c614bf37.zip
Unsigned Integer Overflow in CAacDecoder_PreRollExtensionPayloadParse()
Bug: 112661610 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I96e2c10328fec8fd12f9c752904860b87a72bed2
Diffstat (limited to 'libAACdec')
-rw-r--r--libAACdec/src/aacdecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libAACdec/src/aacdecoder.cpp b/libAACdec/src/aacdecoder.cpp
index 24907ee..8993927 100644
--- a/libAACdec/src/aacdecoder.cpp
+++ b/libAACdec/src/aacdecoder.cpp
@@ -775,7 +775,7 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_PreRollExtensionPayloadParse(
/* For every AU get length and offset in the bitstream */
prerollAULength[i] = escapedValue(hBs, 16, 16, 0);
if (prerollAULength[i] > 0) {
- prerollAUOffset[i] = auStartAnchor - FDKgetValidBits(hBs);
+ prerollAUOffset[i] = auStartAnchor - (INT)FDKgetValidBits(hBs);
independencyFlag = FDKreadBit(hBs);
if (i == 0 && !independencyFlag) {
*numPrerollAU = 0;