Add bounds checking to handle_romentries()

This adds some sanity checks to print a useful error message instead
of segfaulting in case the user provides a layout file with obviously
incorrect ranges.

BUG=none
BRANCH=none
TEST=attempted using layout file with invalid boundaries and start > end

Change-Id: Id3b3f30fac2ac3d812f7387bdff70c3333667e00
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/320165
Reviewed-by: Shawn N <shawnn@chromium.org>
1 file changed