flashrom.c: Allow unaligned erase blocks in select_erase_function()

Simply check if an erase block overlaps the given region.

Change-Id: I06f64dad2cbf7e710d4129aec55496518d7c452e
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72560
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
1 file changed