Check for addition overflows in vpx_img_set_rect()
authorWan-Teh Chang <wtc@google.com>
Thu, 8 Jul 2021 22:17:48 +0000 (15:17 -0700)
committerJames Zern <jzern@google.com>
Fri, 9 Jul 2021 19:48:00 +0000 (12:48 -0700)
commit69fc604636f740a57482f3898c2527d29663ee6d
treefe5e5c17a6aa16023ce68b69e8ef2152cecfadd0
parentdf7dc31cdfaa81e20fd0f4aed4c5eff037f484c4
Check for addition overflows in vpx_img_set_rect()

Check for x + w and y + h overflows in vpx_img_set_rect().

Move the declaration of the local variable 'data' to the block it is
used in.

Change-Id: I6bda875e1853c03135ec6ce29015bcc78bb8b7ba
vpx/src/vpx_image.c