summaryrefslogtreecommitdiff
path: root/util/cbfstool/linux_trampoline.h
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2016-08-01 21:37:42 +0200
committerPatrick Georgi <pgeorgi@google.com>2016-08-03 09:42:11 +0200
commit9ade7175712a6ebab3a1abd188208b07a2a3fd76 (patch)
treeb2f5524ccc14b2d19600ef34427b77971cbf1e15 /util/cbfstool/linux_trampoline.h
parentf641a27b634f736553efe81a1aa7169e0dc0861b (diff)
downloadcoreboot-9ade7175712a6ebab3a1abd188208b07a2a3fd76.tar.xz
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>
Diffstat (limited to 'util/cbfstool/linux_trampoline.h')
0 files changed, 0 insertions, 0 deletions