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
bimgtool
bincfg
board_status
broadcom
cbfstool
cbmem
checklist
chromeos
crossgcc
docker
dtd_parser
ectool
exynos
futility
fuzz-tests
genbuild_h
genprof
gitconfig
hugo
ifdfake
ifdtool
intelmetool
inteltool
intelvbttool
ipqheader
k8resdump
kbc1126
kconfig
lint
marvell
me_cleaner
mma
msrtool
mtkheader
nvidia
nvramtool
optionlist
post
release
riscvtools
rockchip
romcc
sconfig
scripts
showdevicetree
spkmodem_recv
superiotool
testing
uio_usbdebug
vgabios
viatool
xcompile