summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-05-14 09:10:40 -0700
committerAbhisek Devkota <ciwrl@cyanogenmod.com>2015-08-12 12:55:18 -0700
commit15a7e856f68effc9026b913aa1441da04c6af530 (patch)
tree4b5670bacdd9d1f7a98d6548709c05a7b9872eae
parentee2f2d2b265e9db9da24cd97be0864989f96f3f2 (diff)
downloadandroid_external_sonivox-stable/cm-11.0-XNG3C.tar.gz
android_external_sonivox-stable/cm-11.0-XNG3C.tar.bz2
android_external_sonivox-stable/cm-11.0-XNG3C.zip
DLS parser: fix wave pool size check.stable/cm-11.0-XNG3C
CYNGNOS-446 Bug: 21132860. Change-Id: I8ae872ea2cc2e8fec5fa0b7815f0b6b31ce744ff (cherry picked from commit 2d7f8e1be2241e48458f5d3cab5e90be2b07c699) (cherry picked from commit 2be0130878bd8a3fb6a8168d913cb659db201086)
-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 1ca359e..53d8882 100644
--- a/arm-wt-22k/lib_src/eas_mdls.c
+++ b/arm-wt-22k/lib_src/eas_mdls.c
@@ -944,7 +944,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;
}