coreboot/src/commonlib
Julius Werner 20f5dcec63 cbfs: mcache: Fix end-of-cache check
After the mcache is copied into CBMEM, it has *just* the right size to
fit the final tag with no room to spare. That means the test to check if
we walked over the end must be `current + sizeof(tag) <= end`, not
`current + sizeof(tag) < end`.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I25a0d774fb3294bb4d15f31f432940bfccc84af0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48277
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2020-12-03 21:21:11 +00:00
..
bsd cbfs: mcache: Fix end-of-cache check 2020-12-03 21:21:11 +00:00
include/commonlib cbfs: Add verification for RO CBFS metadata hash 2020-12-03 00:11:08 +00:00
storage src/commonlib: Drop unneeded empty lines 2020-09-21 15:53:25 +00:00
cbfs.c cbfstool: Use cbfs_serialized.h and standard vboot helpers 2020-12-03 00:00:33 +00:00
fsp_relocate.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
iobuf.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Makefile.inc cbfs: Add metadata cache 2020-11-21 10:43:53 +00:00
mem_pool.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
region.c src/commonlib: Drop unneeded empty lines 2020-09-21 15:53:25 +00:00
sort.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00