libpayload: cbgfx: Fix potential overflowing expression
commit255aeaa9a27bf9c2eab6db57a20153aa16947559
authorYu-Ping Wu <yupingso@google.com>
Wed, 19 Feb 2020 03:55:34 +0000 (19 11:55 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 24 Feb 2020 13:05:51 +0000 (24 13:05 +0000)
treec65f4281c77bf4a0c286e696f7ef82ee2c8fbf12
parent8d1b0f1dbd2736391d4011106527a1e5b286307d
libpayload: cbgfx: Fix potential overflowing expression

BRANCH=none
BUG=none
TEST=none

Change-Id: Icd37a6abc01d9fcbcf54525d47b15c9930a9b9fb
Signed-off-by: Yu-Ping Wu <yupingso@google.com>
Found-by: Coverity Scan #1419491
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38987
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
payloads/libpayload/drivers/video/graphics.c