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:54:54 -0700
commita895b477793fbf352a77e5532a8d6ea831539087 (patch)
tree7bd37da79882b3a88d62dca9334f9efc36ca620e
parentc9668ea85f992ae6dd231b26bce7f1d00e596037 (diff)
downloadandroid_external_sonivox-a895b477793fbf352a77e5532a8d6ea831539087.tar.gz
android_external_sonivox-a895b477793fbf352a77e5532a8d6ea831539087.tar.bz2
android_external_sonivox-a895b477793fbf352a77e5532a8d6ea831539087.zip
DLS parser: fix wave pool size check.
CYNGNOS-446 Bug: 21132860. Change-Id: I8ae872ea2cc2e8fec5fa0b7815f0b6b31ce744ff (cherry picked from commit 2d7f8e1be2241e48458f5d3cab5e90be2b07c699) (cherry picked from commit 8e8b6f0eb30960a9ecb22d3fcd054497c8f4d598)
-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;
}