coreboot-kgpe-d16/src/commonlib
Julius Werner 5c82c444fb commonlib/region: Fix up overflow check in region_is_subregion()
region_is_subregion() checks whether the size of the inner region is
larger than the size of the outer region... which isn't really necessary
because we're already checking the starts and ends of both regions.
Maybe this was added to ensure the inner region doesn't overflow? But
it's not guaranteed to catch that in all cases. Replace it with a proper
overflow check.

Change-Id: I9e442053584a479a323c1fa1c0591934ff83eb10
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34892
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2019-08-19 21:12:31 +00:00
..
include/commonlib lib/edid: Add suport for display rotation 2019-08-08 03:18:35 +00:00
storage commonlib/storage: use ALIGN_UP instead of ALIGN for better readability 2019-06-21 12:49:43 +00:00
Makefile.inc commonlib: Add Bubble sort algorithm 2019-02-26 11:14:41 +00:00
cbfs.c vboot: include vb2_sha.h when required 2019-05-09 06:32:44 +00:00
fsp_relocate.c src/{commonlib,drivers/intel/fslp1_1/include}: Fix typo 2018-11-27 08:47:08 +00:00
iobuf.c commonlib: add input and output buffer helpers 2017-04-24 19:06:50 +02:00
lz4.c.inc
lz4_wrapper.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
mem_pool.c
region.c commonlib/region: Fix up overflow check in region_is_subregion() 2019-08-19 21:12:31 +00:00
sort.c commonlib/bubblesort: Do not try to sort less than two entries 2019-03-14 07:48:06 +00:00