1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-02-16 19:30:34 +01:00

Unsigned Integer Overflow in transportDec_AdjustEndOfAccessUnit().

Bug: 112661348
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc
Change-Id: Ie4924460d30ea4ef76917704ded809d04db78993
This commit is contained in:
Fraunhofer IIS FDK 2018-06-08 18:16:29 +02:00 committed by Jean-Michel Trivi
parent c75797cfaa
commit 71602ad45c

View File

@ -736,9 +736,9 @@ static TRANSPORTDEC_ERROR transportDec_AdjustEndOfAccessUnit(
hTp->parser.latm.m_audioMuxLengthBytes > 0) {
int loasOffset;
loasOffset = (hTp->parser.latm.m_audioMuxLengthBytes * 8 +
FDKgetValidBits(hBs)) -
hTp->globalFramePos;
loasOffset = ((INT)hTp->parser.latm.m_audioMuxLengthBytes * 8 +
(INT)FDKgetValidBits(hBs)) -
(INT)hTp->globalFramePos;
if (loasOffset != 0) {
FDKpushBiDirectional(hBs, loasOffset);
/* For ELD and other payloads there is an unknown amount of padding,