summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2015-08-20 19:31:01 (GMT)
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-20 19:31:01 (GMT)
commit0a3e23a696b985a02d8f896f12a989e72c9b1cfe (patch)
tree5390c3ba39cbae4100968f1f8f56e01c2f02ed7e
parent23df8d0790fc432f16f18f72baecb89fafc13cf4 (diff)
parent5f5c79bd8f6af0145c732e5b57a12e6f8ea8159a (diff)
downloadandroid_external_sonivox-0a3e23a696b985a02d8f896f12a989e72c9b1cfe.zip
android_external_sonivox-0a3e23a696b985a02d8f896f12a989e72c9b1cfe.tar.gz
android_external_sonivox-0a3e23a696b985a02d8f896f12a989e72c9b1cfe.tar.bz2
am 5f5c79bd: am 8a9f53ee: Check segments and libs
* commit '5f5c79bd8f6af0145c732e5b57a12e6f8ea8159a': Check segments and libs
-rw-r--r--arm-wt-22k/lib_src/jet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arm-wt-22k/lib_src/jet.c b/arm-wt-22k/lib_src/jet.c
index 97672cf..2f1541f 100644
--- a/arm-wt-22k/lib_src/jet.c
+++ b/arm-wt-22k/lib_src/jet.c
@@ -282,10 +282,16 @@ static EAS_RESULT JetParseInfoChunk (EAS_DATA_HANDLE easHandle, EAS_I32 pos, EAS
switch (infoType)
{
case INFO_NUM_SMF_CHUNKS:
+ if (temp >= JET_MAX_SEGMENTS) {
+ return EAS_ERROR_INCOMPATIBLE_VERSION;
+ }
easHandle->jetHandle->numSegments = (EAS_U8) temp;
break;
case INFO_NUM_DLS_CHUNKS:
+ if (temp >= JET_MAX_DLS_COLLECTIONS) {
+ return EAS_ERROR_INCOMPATIBLE_VERSION;
+ }
easHandle->jetHandle->numLibraries = (EAS_U8) temp;
break;