summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-05-14 09:10:40 -0700
committerEric Laurent <elaurent@google.com>2015-05-14 09:10:40 -0700
commit2d7f8e1be2241e48458f5d3cab5e90be2b07c699 (patch)
tree0e7fc46622c7cb479da737a3462ade5d5c08c923
parent644265e741e4f055e815eb0af26f82abae4e0cfe (diff)
downloadandroid_external_sonivox-2d7f8e1be2241e48458f5d3cab5e90be2b07c699.tar.gz
android_external_sonivox-2d7f8e1be2241e48458f5d3cab5e90be2b07c699.tar.bz2
android_external_sonivox-2d7f8e1be2241e48458f5d3cab5e90be2b07c699.zip
DLS parser: fix wave pool size check.
Bug: 21132860. Change-Id: I8ae872ea2cc2e8fec5fa0b7815f0b6b31ce744ff
-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;
}