diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2020-06-24 17:28:22 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-28 21:52:18 +0000 |
commit | 373ae2e7346b4bcba8837ed87a12741fd7d9c107 (patch) | |
tree | 47152fcfc150a38b86e4971aa4d160418da0817f /LICENSES/CC-BY-4.0.txt | |
parent | be1ff7eb724bc674eb0f501b4b42675a679adbab (diff) |
libpayload/cbgfx: Fix overflow in transform_vector()
Fix potential overflow when multiplying integers in transform_vector().
This issue is causing the absolute coordinate of the bottom right corner
of the box to be incorrectly calculated for draw_rounded_box(), which is
used in menu UI to clear the previous screen.
In addition, check the lower bound in within_box().
BRANCH=none
BUG=b:146399181, b:159772149
TEST=emerge-puff libpayload
TEST=Previous screen is cleared properly for menu UI
Change-Id: I57845f54e18e5bdbd0d774209ee9632cb860b0c2
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42770
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Shelley Chen <shchen@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'LICENSES/CC-BY-4.0.txt')
0 files changed, 0 insertions, 0 deletions