coreboot-kgpe-d16/payloads/libpayload/drivers/video
Yu-Ping Wu 373ae2e734 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>
2020-06-28 21:52:18 +00:00
..
bitmap.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
corebootfb.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
font.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
font.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
font8x16.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
font8x16.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
geodelx.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
graphics.c libpayload/cbgfx: Fix overflow in transform_vector() 2020-06-28 21:52:18 +00:00
vga.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
video.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00