selfboot: fix bug in valid_area()
authorStefan Reinauer <reinauer@chromium.org>
Mon, 7 Nov 2011 20:56:12 +0000 (12:56 -0800)
committerPatrick Georgi <patrick@georgi-clan.de>
Tue, 8 Nov 2011 20:19:22 +0000 (21:19 +0100)
commitc6b8b7dcc4cc1c3e4b142d3b5d460b1550ea8a73
treecd23becce82d9f7de6b4e7cff1ec4298745d4328
parent2e2b84e42063c2947adbba3781c03c5ec44cc68e
selfboot: fix bug in valid_area()

valid_area will accept a region as valid for the payload if only a part
of coreboot fits in that region. This means if a payload reaches into a
neighboring RESERVED region, coreboot would not care and happily
overwrite that region, as long as the payload also writes to some RAM.

Change-Id: Ie263f83be18009b01a31c71e7285c998747d097f
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/425
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/boot/selfboot.c