aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec/src/usacdec_lpd.cpp
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-06-29 16:32:28 +0200
committerJean-Michel Trivi <jmtrivi@google.com>2018-12-26 18:20:17 -0500
commit9edc5864fae850d6b7fe8f648bf34955bf36eae9 (patch)
tree43c66cfb00f69338cd9202e2d151f680d837ff4b /libAACdec/src/usacdec_lpd.cpp
parentf59fd73d4443b015b11a362c807f6b828658a799 (diff)
downloadfdk-aac-9edc5864fae850d6b7fe8f648bf34955bf36eae9.tar.gz
fdk-aac-9edc5864fae850d6b7fe8f648bf34955bf36eae9.tar.bz2
fdk-aac-9edc5864fae850d6b7fe8f648bf34955bf36eae9.zip
Signed Integer Overflow in E_UTIL_preemph()
Bug: 112661356 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ibc7120aba3d357bfb8d751d80d99a6e0f51473e4
Diffstat (limited to 'libAACdec/src/usacdec_lpd.cpp')
-rw-r--r--libAACdec/src/usacdec_lpd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libAACdec/src/usacdec_lpd.cpp b/libAACdec/src/usacdec_lpd.cpp
index fde34ef..2110172 100644
--- a/libAACdec/src/usacdec_lpd.cpp
+++ b/libAACdec/src/usacdec_lpd.cpp
@@ -418,6 +418,7 @@ void CLpd_AdaptLowFreqDeemph(FIXP_DBL x[], int lg, FIXP_DBL alfd_gains[],
FIXP_DBL tmp_pow2[32];
s = s * 2 + ALFDPOW2_SCALE;
+ s = fMin(31, s);
k = 8;
i_max = lg / 4; /* ALFD range = 1600Hz (lg = 6400Hz) */