aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2018-12-27 01:58:50 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-12-27 01:58:50 +0000
commita5cf260931f577091554fb1ad8cdee97994b55f9 (patch)
tree4c5b82a893f355d77a198904d0b26081a406be81 /libAACdec
parentecdec651da9fd21036f9192412e62361097dac5c (diff)
parent512898b2985f8da79a07fd137b0ff0b6c614bf37 (diff)
downloadfdk-aac-a5cf260931f577091554fb1ad8cdee97994b55f9.tar.gz
fdk-aac-a5cf260931f577091554fb1ad8cdee97994b55f9.tar.bz2
fdk-aac-a5cf260931f577091554fb1ad8cdee97994b55f9.zip
Merge "Unsigned Integer Overflow in CAacDecoder_PreRollExtensionPayloadParse()"
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;