coreboot-kgpe-d16/util
Richard Spiegel bff4545ccf util/amdfwtool/amdfwtool.c: Check for negative return
File open function <open()> will return -1 if there's any error. Check that
the return is greater or equal to 0 before using fstat(). Print error message
and exit if there's an error.

This fixes CIDs 1353018, 1353020, 1353027 and 1353028

BUG=b:72062481
TEST=Build no errors

Change-Id: I77d6973d1ad1eadb93922866e618038045be5937
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/23303
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-01-23 20:10:52 +00:00
..
abuild abuild: Allow building with any toolchain 2017-09-06 04:31:30 +00:00
acpi
amdfwtool util/amdfwtool/amdfwtool.c: Check for negative return 2018-01-23 20:10:52 +00:00
amdtools Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
archive
arm_boot_tools/mksunxiboot
autoport autoport: Add missing command to readme 2018-01-23 05:18:35 +00:00
bimgtool
bincfg util/bincfg: don't use fp shared variable 2018-01-23 05:21:48 +00:00
board_status board_status/towiki: Fix link to last report for "clone" boards 2017-10-20 02:22:23 +00:00
broadcom util/broadcom/secimage: Add OpenSSL 1.1 support 2018-01-14 23:11:40 +00:00
cbfstool drivers/mrc_cache: Always generate an FMAP region 2018-01-20 16:11:44 +00:00
cbmem util/cbmem: Print timestamp frequency in verbose mode 2017-12-12 22:27:05 +00:00
checklist
chromeos
crossgcc buildgcc: Add patch to work around Musl libc issue 2018-01-15 01:15:27 +00:00
docker util/docker: add support for crossgcc building params 2017-11-05 02:31:16 +00:00
dtd_parser
ectool
exynos
futility
fuzz-tests
genbuild_h util/genbuild_h: Add gitfile support 2018-01-23 05:33:02 +00:00
genprof
gitconfig util/gitconfig: Replace printf with heredoc 2018-01-23 05:22:40 +00:00
hugo util: change coreboot to lowercase 2017-06-27 18:26:01 +00:00
ifdfake
ifdtool util/ifdtool: Fix region limitation check 2017-10-22 01:51:17 +00:00
intelmetool util/intelmetool: Fix some platforms 2017-11-30 17:19:08 +00:00
inteltool inteltool: Dump Sunrise Point PCH-H GPIO groups 2018-01-15 01:18:36 +00:00
intelvbttool
ipqheader util/*: Fix final newlines in scripts 2018-01-23 05:17:44 +00:00
k8resdump util/*: don't strip executables 2017-10-29 08:48:56 +00:00
kbc1126 kbc1126_ec_dump: fix some errors 2017-08-18 15:32:08 +00:00
kconfig
lint util/lint: Unify checks for git worktree 2018-01-23 05:42:51 +00:00
marvell
me_cleaner util/*: Fix final newlines in scripts 2018-01-23 05:17:44 +00:00
mma
msrtool util/msrtool: Exit program after displaying the help message 2017-08-22 10:10:49 +00:00
mtkheader
nvidia
nvramtool nvramtool: Add dummy cmos-hw-unix accessor implementation for non-x86 2017-12-09 16:56:09 +00:00
optionlist util: change coreboot to lowercase 2017-06-27 18:26:01 +00:00
post
release util/release: Improve git worktree checks 2018-01-17 16:54:22 +00:00
riscvtools
rockchip
romcc smbus: Fix a typo ("Set the device I'm talking too") 2017-09-27 16:38:18 +00:00
sconfig
scripts util: Make TZ environment variable POSIX compatible 2017-10-14 11:28:14 +00:00
showdevicetree
spkmodem_recv
superiotool util/superiotool: dump VT1211 registers 2018-01-15 00:42:43 +00:00
testing util/testing: Don't keep tegra lp0 build results 2017-09-06 11:36:27 +00:00
uio_usbdebug
vgabios util/vgabios: Don't call redefined printk in printk 2017-07-21 15:45:41 +00:00
viatool Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
xcompile clang: Enable integrated assembler on clang builds 2017-09-02 15:21:35 +00:00