[automerger] Fix OOB access in mpeg4/h263 decoder am: ef4ce15700 am: 9832a2a3f4 am: 144ba69187 am: 6fa588c7b6 am: 88c0c4897c am: efd8f9e09a

am: e545f3c8d3

Change-Id: Ic82cb29ade87f3bdee2504792206c7ae2f03456c
gugelfrei
Marco Nelissen 5 years ago committed by android-build-merger
commit 6cf42dbae7

@ -1355,6 +1355,14 @@ PV_STATUS DecodeShortHeader(VideoDecData *video, Vop *currVop)
int tmpHeight = (tmpDisplayHeight + 15) & -16;
int tmpWidth = (tmpDisplayWidth + 15) & -16;
if (tmpWidth > video->width)
{
// while allowed by the spec, this decoder does not actually
// support an increase in size.
ALOGE("width increase not supported");
status = PV_FAIL;
goto return_point;
}
if (tmpHeight * tmpWidth > video->size)
{
// This is just possibly "b/37079296".

Loading…
Cancel
Save