summaryrefslogtreecommitdiffstats
path: root/arm-wt-22k
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-05-14 09:10:40 -0700
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-17 22:28:46 +0200
commit6f63eda39d22020567543bf07ee74c60b8e697f8 (patch)
treeb7f90badc3a2b3b21a05c6421d39ad6d1806617e /arm-wt-22k
parent4a213147dbe60416aa26ebdba0f3c631b2e2b013 (diff)
downloadexternal_sonivox-6f63eda39d22020567543bf07ee74c60b8e697f8.zip
external_sonivox-6f63eda39d22020567543bf07ee74c60b8e697f8.tar.gz
external_sonivox-6f63eda39d22020567543bf07ee74c60b8e697f8.tar.bz2
DLS parser: fix wave pool size check.
Bug: 21132860. Change-Id: I8ae872ea2cc2e8fec5fa0b7815f0b6b31ce744ff (cherry picked from commit 2d7f8e1be2241e48458f5d3cab5e90be2b07c699)
Diffstat (limited to 'arm-wt-22k')
-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;
}