Check size limit in vpx_realloc_frame_buffer.
authorWan-Teh Chang <wtc@google.com>
Tue, 24 Jul 2018 19:14:54 +0000 (12:14 -0700)
committerWan-Teh Chang <wtc@google.com>
Tue, 24 Jul 2018 19:14:54 +0000 (12:14 -0700)
commit94a65e8fbaa3e50b686147b4dd75c79c2154c2d6
treea60b1fed614f3ee6f8a946cf91160f56d913f415
parentc934d9d65c95c6cc783e20b3289af4608213d03a
Check size limit in vpx_realloc_frame_buffer.

If CONFIG_SIZE_LIMIT is defined, vpx_realloc_frame_buffer should fail if
width or height is too big.

This carries over commit ebc2714d71a834fc32a19eef0a81f51fbc47db01 of
libaom: https://aomedia-review.googlesource.com/c/aom/+/65521

Change-Id: Id7645c5cefbe1847714695d41f506ff30ea985f6
vpx_scale/generic/yv12config.c