coreboot/util/cbfstool
Aaron Durbin b521867ee2 cbfstool: check potential microcode update earlier
The update-fit command takes in a parameter for number of slots
in the FIT table. It then processes the microcobe blob in cbfs
adding those entries to the FIT table. However, the tracking of
the number of mircocode updates was incremented before validating
the update. Therefore, move the sanity checking before an increment
of the number of updates.

BUG=chrome-os-partner:19035
BRANCH=none
TEST=emerge-fox_wtm2 chromeos-coreboot-fox and inspected microcode
     FIT entries.

Change-Id: Ie8290f53316b251e500b88829fdcf9b5735c1b0e
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50319
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
2013-05-07 14:58:30 -07:00
..
lzma cbfstool: completely initialize input and output streams 2013-04-08 21:36:37 +02:00
cbfs-mkpayload.c cbfstool: Fix compile warnings caused by incorrect data types. 2013-02-18 12:28:43 +01:00
cbfs-mkstage.c cbfstool: Use cbfs_image API for "add-*" (add-payload, add-stage, ...) commands. 2013-02-05 22:27:20 +01:00
cbfs.h cbfstool: Use cbfs_image API for "print" command. 2013-02-05 22:25:13 +01:00
cbfs_image.c cbfstool: Fix cbfs_image.c 2013-03-27 01:24:48 +01:00
cbfs_image.h cbfstool locate: Implement alignment switch --align/-a 2013-03-20 05:47:32 +01:00
cbfstool.c cbfstool: fix --machine 2013-04-02 20:27:10 +02:00
coff.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
common.c cbfstool: Add buffer management API. 2013-02-05 22:24:45 +01:00
common.h cbfstool: support parsing UEFI firmware volumes 2013-02-05 22:43:23 +01:00
compress.c cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
elf.h fix some wrong versions of the FSF's address (trivial) 2009-09-23 21:52:45 +00:00
EXAMPLE cbfstool: Update example file. 2013-02-04 11:12:15 +01:00
fit.c cbfstool: check potential microcode update earlier 2013-05-07 14:58:30 -07:00
fit.h cbfstool: Add update-fit command 2013-03-27 01:25:12 +01:00
fv.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
Makefile cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
Makefile.inc cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
swab.h Various fixes to cbfstool. 2011-10-24 20:29:29 +02:00