diff options
author | Nico Huber <nico.h@gmx.de> | 2016-08-01 21:37:42 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-08-03 09:42:11 +0200 |
commit | 9ade7175712a6ebab3a1abd188208b07a2a3fd76 (patch) | |
tree | b2f5524ccc14b2d19600ef34427b77971cbf1e15 /util/cbfstool/fmd_parser.h_shipped | |
parent | f641a27b634f736553efe81a1aa7169e0dc0861b (diff) | |
download | coreboot-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/fmd_parser.h_shipped')
0 files changed, 0 insertions, 0 deletions