diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2024-09-11 02:00:56 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2024-09-11 02:00:56 -0700 |
commit | 456eccc7cf704d8943f6ddb5570365fd1456be87 (patch) | |
tree | 8c8c5c3c36df19fa4648d465a00f8a2e88126761 | |
parent | 53696dbbf6b8cc56413489900868826df767463c (diff) | |
parent | 85554ed1e091f4fa9b97f7452b09b727c18c3d2e (diff) |
Merge 85554ed1e091f4fa9b97f7452b09b727c18c3d2e on remote branchumineko
Change-Id: I0bb571ee0c77f794d6e7cbb7a58f2e6ac440ef87
-rw-r--r-- | media/libstagefright/omx/SoftVideoDecoderOMXComponent.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libstagefright/omx/SoftVideoDecoderOMXComponent.cpp b/media/libstagefright/omx/SoftVideoDecoderOMXComponent.cpp index 418302389d..4ab5d10609 100644 --- a/media/libstagefright/omx/SoftVideoDecoderOMXComponent.cpp +++ b/media/libstagefright/omx/SoftVideoDecoderOMXComponent.cpp @@ -619,6 +619,13 @@ OMX_ERRORTYPE SoftVideoDecoderOMXComponent::getConfig( if (!isValidOMXParam(outParams)) { return OMX_ErrorBadParameter; } + if (offsetof(DescribeHDR10PlusInfoParams, nValue) + outParams->nParamSize > + outParams->nSize) { + ALOGE("b/329641908: too large param size; nParamSize=%u nSize=%u", + outParams->nParamSize, outParams->nSize); + android_errorWriteLog(0x534e4554, "329641908"); + return OMX_ErrorBadParameter; + } outParams->nParamSizeUsed = info->size(); |