diff options
author | Marco Nelissen <marcone@google.com> | 2015-08-19 15:08:13 -0700 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2015-10-18 21:39:43 +0200 |
commit | f66c8344b837f85844fb439e986bfe953c97fd1e (patch) | |
tree | d8e377f84410c5b4908e2fb51e69152ef74d508e | |
parent | c49bc7029defc105948a76f22928cc6db4574bd8 (diff) | |
download | external_sonivox-master.zip external_sonivox-master.tar.gz external_sonivox-master.tar.bz2 |
Bug: 23286323
Change-Id: I95ee385d0fb1503a4ce5a96e30d034ac8b81170e
Tested-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r-- | arm-wt-22k/lib_src/jet.c | 6 |
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; |