summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-05-14 19:11:16 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-05-14 19:11:16 +0000
commit5588a6d6c1ce5e69fc0762fedaf24464c37585c2 (patch)
tree556282b6bcab23207fe0cb8dad2f10a1e77c3c9c
parentc0723d864b10fbd6c5cbbfa65e886c5e9eb3aafd (diff)
parent11bb645de2de83cb48c94192d62f3828a36613b4 (diff)
downloadandroid_external_sonivox-5588a6d6c1ce5e69fc0762fedaf24464c37585c2.tar.gz
android_external_sonivox-5588a6d6c1ce5e69fc0762fedaf24464c37585c2.tar.bz2
android_external_sonivox-5588a6d6c1ce5e69fc0762fedaf24464c37585c2.zip
am 11bb645d: DLS parser: fix wave pool size check.
* commit '11bb645de2de83cb48c94192d62f3828a36613b4': DLS parser: fix wave pool size check.
-rw-r--r--arm-wt-22k/lib_src/eas_mdls.c2
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;
}