coreboot-kgpe-d16/util/romcc
Patrick Georgi b6239b81aa romcc: properly check out-of-range unsigned longs
Testing if an unsigned long is greater than ULONG_T_MAX isn't very
useful. The second half of the test checked for too small values
(ie. <= -ULONG_T_MAX).

In both cases errno is set to ERANGE, so just check for that.

Change-Id: I92bad9d1715673531bef5d5d5756feddeb7674b4
Found-by: Coverity Scan
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/6568
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2014-08-10 08:19:44 +02:00
..
results Undoing all HDAMA commits from LNXI from r2005->2003 2005-08-10 15:16:44 +00:00
tests Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
COPYING GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
Makefile Enable -Werror for romcc 2012-03-31 12:07:10 +02:00
do_tests.sh Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
romcc.1 Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
romcc.c romcc: properly check out-of-range unsigned longs 2014-08-10 08:19:44 +02:00
tests.sh Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00