summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-05-14 21:51:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-05-14 21:51:35 +0000
commit23df8d0790fc432f16f18f72baecb89fafc13cf4 (patch)
tree0e7fc46622c7cb479da737a3462ade5d5c08c923
parent88ee045ad1220ba0accecffd41f0afb9a33a9383 (diff)
parent5588a6d6c1ce5e69fc0762fedaf24464c37585c2 (diff)
downloadandroid_external_sonivox-23df8d0790fc432f16f18f72baecb89fafc13cf4.tar.gz
android_external_sonivox-23df8d0790fc432f16f18f72baecb89fafc13cf4.tar.bz2
android_external_sonivox-23df8d0790fc432f16f18f72baecb89fafc13cf4.zip
am 5588a6d6: am 11bb645d: DLS parser: fix wave pool size check.
* commit '5588a6d6c1ce5e69fc0762fedaf24464c37585c2': 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;
}