Merge cherrypicks of ['googleplex-android-review.googlesource.com/27847399'] into 24Q3-release.
Change-Id: I33f8f9a3c29d8dd3c74564c2df1963bc72756070
This commit is contained in:
commit
1863cb0ea5
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue