diff options
author | Eric Laurent <elaurent@google.com> | 2015-05-14 09:10:40 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-05-14 16:22:54 +0000 |
commit | 11bb645de2de83cb48c94192d62f3828a36613b4 (patch) | |
tree | 5c7a39ad0f272e87326884c96ae96e1380d030b8 /arm-wt-22k/lib_src/eas_mdls.c | |
parent | 2dbbd3bac0f0e819d196a80cc7855054148ef8b6 (diff) | |
download | android_external_sonivox-11bb645de2de83cb48c94192d62f3828a36613b4.tar.gz android_external_sonivox-11bb645de2de83cb48c94192d62f3828a36613b4.tar.bz2 android_external_sonivox-11bb645de2de83cb48c94192d62f3828a36613b4.zip |
DLS parser: fix wave pool size check.
Bug: 21132860.
Change-Id: I8ae872ea2cc2e8fec5fa0b7815f0b6b31ce744ff
(cherry picked from commit 2d7f8e1be2241e48458f5d3cab5e90be2b07c699)
Diffstat (limited to 'arm-wt-22k/lib_src/eas_mdls.c')
-rw-r--r-- | arm-wt-22k/lib_src/eas_mdls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arm-wt-22k/lib_src/eas_mdls.c b/arm-wt-22k/lib_src/eas_mdls.c index e8dc463..51cce70 100644 --- a/arm-wt-22k/lib_src/eas_mdls.c +++ b/arm-wt-22k/lib_src/eas_mdls.c @@ -938,7 +938,7 @@ static EAS_RESULT Parse_wave (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_ } // limit to reasonable size - if (dataSize > MAX_DLS_WAVE_SIZE) + if (dataSize < 0 || dataSize > MAX_DLS_WAVE_SIZE) { return EAS_ERROR_SOUND_LIBRARY; } |