coreboot-kgpe-d16/util
Richard Spiegel 137484dee7 util/amdfwtool/amdfwtool.c: Verify it actually read bytes
The function read() returns the number of bytes actually read. Program is
assuming it actually read the required number of bytes without checking.
This is wrong.

This fixes CIDs 1353019 and 1353021

BUG=b:72062481
TEST=Build no errors

Change-Id: I22d41b3de4eac5369f512f78b1b31cc1a250f787
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/23304
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-01-24 16:24:29 +00:00
..
abuild
acpi
amdfwtool util/amdfwtool/amdfwtool.c: Verify it actually read bytes 2018-01-24 16:24:29 +00:00
amdtools
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
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
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
ifdfake
ifdtool
intelmetool
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
kbc1126
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
mtkheader
nvidia
nvramtool
optionlist
post
release util/release: Improve git worktree checks 2018-01-17 16:54:22 +00:00
riscvtools
rockchip
romcc
sconfig
scripts
showdevicetree
spkmodem_recv
superiotool util/superiotool: dump VT1211 registers 2018-01-15 00:42:43 +00:00
testing
uio_usbdebug
vgabios
viatool
xcompile