]> granicus.if.org Git - libvpx/commit
fail early on oversize frames
authorJohann <johannkoenig@google.com>
Fri, 3 Nov 2017 16:49:13 +0000 (09:49 -0700)
committerJohann <johannkoenig@google.com>
Fri, 3 Nov 2017 16:49:13 +0000 (09:49 -0700)
commit5fe82459ec5c1566a2532e51550fb15b380f80de
tree94026b64bc366364c33e50b7bd8000f564cc80c9
parent3ba9a2c8b2341430b001ed531f1eedf7c9b0384f
fail early on oversize frames

Even though frame_size is calculated in uint64_t, it winds up in an int
size value.

This was exposed with the msan test because the memset is called with
(int)frame_size, leading to a segfault.

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