diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-01-30 23:45:49 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-03 05:39:19 +0000 |
commit | 7ccd9ce48e761b7614d29ff95ef97d0a7dc1d599 (patch) | |
tree | d3c1a5f7285ecab2d13040ece2c55108b22a22ea /host | |
parent | 21aedee1ceab57dcbe8506d10a132dffd3a1917b (diff) | |
download | vboot-7ccd9ce48e761b7614d29ff95ef97d0a7dc1d599.tar.gz |
futility: handle truncated BIOS images without segfault
A truncated BIOS with an otherwise valid FMAP that now points way
off the end of the file shouldn't cause coredumps.
BUG=none
BRANCH=ToT
TEST=make runtests
Change-Id: Idf96e1e6a381bf0fe0b1cb2d16e3dad39ce7a0dc
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/245500
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/fmap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/host/lib/fmap.c b/host/lib/fmap.c index 845d28f2..c95338db 100644 --- a/host/lib/fmap.c +++ b/host/lib/fmap.c @@ -65,4 +65,3 @@ uint8_t *fmap_find_by_name(uint8_t *ptr, size_t size, FmapHeader *fmap, return NULL; } - |