diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-01-13 23:57:41 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-01-13 23:57:41 +0000 |
commit | f5617cf2d5f8625f6a0999add83ac1718465b729 (patch) | |
tree | c4a463a495bb6d3d6445ce016ab2c61800d454c9 | |
parent | 45012444868cc6cb064e02cefebcfecb7580312b (diff) | |
parent | 985ee50f8496233f9cadee15b5253df7f3de99ad (diff) | |
download | sonivox-android11-mainline-conscrypt-release.tar.gz |
Snap for 7080740 from 985ee50f8496233f9cadee15b5253df7f3de99ad to mainline-conscrypt-releaseandroid-mainline-11.0.0_r31android-mainline-11.0.0_r20android11-mainline-conscrypt-release
Change-Id: Idc4f579cb458c2cfa99fab81f4d78ed5bb58a9d1
-rw-r--r-- | arm-wt-22k/lib_src/eas_mdls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arm-wt-22k/lib_src/eas_mdls.c b/arm-wt-22k/lib_src/eas_mdls.c index 876ce9b..fac6987 100644 --- a/arm-wt-22k/lib_src/eas_mdls.c +++ b/arm-wt-22k/lib_src/eas_mdls.c @@ -1372,6 +1372,10 @@ static EAS_RESULT Parse_data (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_ { return EAS_SUCCESS; } + if (sampleLen < sizeof(EAS_SAMPLE) + || (pWsmp->loopStart + pWsmp->loopLength) * sizeof(EAS_SAMPLE) > sampleLen - sizeof(EAS_SAMPLE)) { + return EAS_FAILURE; + } pSample[(pWsmp->loopStart + pWsmp->loopLength)>>1] = pSample[(pWsmp->loopStart)>>1]; } |