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:41 -0700
commit2686e587c74122dc5635378a977780d2a0d408ad (patch)
tree7bd37da79882b3a88d62dca9334f9efc36ca620e
parentc9668ea85f992ae6dd231b26bce7f1d00e596037 (diff)
downloadandroid_external_sonivox-stable/cm-12.0-YNG4N.tar.gz
android_external_sonivox-stable/cm-12.0-YNG4N.tar.bz2
android_external_sonivox-stable/cm-12.0-YNG4N.zip
DLS parser: fix wave pool size check.stable/cm-12.0-YNG4N
CYNGNOS-446 Bug: 21132860. Change-Id: I8ae872ea2cc2e8fec5fa0b7815f0b6b31ce744ff (cherry picked from commit 2d7f8e1be2241e48458f5d3cab5e90be2b07c699) (cherry picked from commit 446fac5eec49cdbf2dd0b71281c8c4a8591f7004)
-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;
}