Android 8.1.0 Release 71 (5948682)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXeWeMwAKCRDorT+BmrEO
eJ1+AJ957nSoiIdwLQdpSiu7U+DaWah7SgCfbpfB64ZHZK4EJiDalgHWsh0d27g=
=Os6i
-----END PGP SIGNATURE-----
Fix OOB access in mpeg4/h263 decoder

The decoder does not support an increase in frame width, and
would exceed its buffer if the width increased mid-stream.
There was an existing check to prevent the total frame size
(width*height) from increasing, but in fact the decoder also
does not even support a width increase, even if the height
decreases correspondingly.

Bug: 136175447
Bug: 136173699
Test: manual
Change-Id: Ic2d28bb0503635dadeb69ba3be9412d58684e910
(cherry picked from commit ef4ce157000b2b5bcbf2bcb36a228ec604803547)
1 file changed