coreboot/util
Nico Huber 9ade717571 cbfstool: Check arguments to strtoul() where appropriate
The interface to strtoul() is a weird mess. It may or may not set errno
if no conversion is done. So check for empty strings and trailing
characters.

Change-Id: I82373d2a0102fc89144bd12376b5ea3b10c70153
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/16012
Tested-by: build bot (Jenkins)
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2016-08-03 09:42:11 +02:00
..
abuild
acpi
amdfwtool
amdtools
archive
arm_boot_tools/mksunxiboot
autoport autoport: Add prompt for enabling unsafe inteltool glx option 2016-06-12 12:27:57 +02:00
bimgtool
board_status board_status: Abort early if the coreboot image doesn't exist 2016-05-18 00:17:18 +02:00
broadcom Add newlines at the end of all coreboot files 2016-08-01 21:43:56 +02:00
cbfstool cbfstool: Check arguments to strtoul() where appropriate 2016-08-03 09:42:11 +02:00
cbmem util/cbmem: Initialize variable 2016-07-31 19:15:34 +02:00
checklist util/checklist: Add bootblock support 2016-06-09 23:10:40 +02:00
chromeos util/chromeos: Make scripts executable 2016-07-30 19:34:20 +02:00
crossgcc buildgcc: Apply patches with -p1 2016-07-31 17:37:41 +02:00
dtd_parser
ectool ectool: fix NetBSD compilation 2016-01-27 17:15:56 +01:00
exynos
futility Rename VB_SOURCE to VBOOT_SOURCE for increased clarity 2016-07-27 17:26:05 +02:00
fuzz-tests
genbuild_h
genprof
gitconfig rebase.sh: Update to current cros branch 2016-06-29 16:48:18 +02:00
ifdfake
ifdtool
intelmetool intelmetool: Add the X99 ISA Bridge device id 2016-06-04 23:41:22 +02:00
inteltool Remove non-ascii & unprintable characters 2016-08-01 21:44:45 +02:00
intelvbttool intelvbttool: cope with errors in open() 2016-07-31 19:23:29 +02:00
ipqheader
k8resdump
kconfig Remove non-ascii & unprintable characters 2016-08-01 21:44:45 +02:00
lint util/lint: Add a lint tool to find non-ascii & unprintable chars 2016-08-02 18:56:14 +02:00
marvell
mma util/mma: changing BOOT_STUB to COREBOOT region and few more things 2016-05-10 22:59:36 +02:00
msrtool util/msrtool: update register for Pentium4_later 2016-07-28 01:09:02 +02:00
mtkheader
nvidia
nvramtool nvramtool: Don't consider reserved regions to be "out of range" 2016-07-31 19:07:43 +02:00
optionlist
post
release
riscvtools util/riscvtools: Provide a tohost/fromhost symbols so Spike doesn't hang 2016-07-14 18:23:05 +02:00
rockchip
romcc
sconfig sconfig: Add a new generic device type 2016-05-16 19:49:59 +02:00
scripts
showdevicetree
spkmodem_recv
superiotool superiotool: Add Nuvoton NCT6791D 2016-07-31 18:35:59 +02:00
uio_usbdebug tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vgabios Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00
viatool viatool/quirks: Add newline to end of file 2016-07-28 20:18:10 +02:00
xcompile