lib: Use wrapper for string to integer conversion
authorSwen Schillig <swen@linux.ibm.com>
Mon, 28 Jan 2019 11:54:07 +0000 (12:54 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 00:32:10 +0000 (00:32 +0000)
commitc9f4b92a6131dedcaa38d6fe907d17a30a595f06
tree58464a590db1ffce09885e24b5b3f16e43b3e3f1
parentcef18c2dfd60be372eee10cbcefd5849ae979d31
lib: Use wrapper for string to integer conversion

In order to detect an value overflow error during
the string to integer conversion with strtoul/strtoull,
the errno variable must be set to zero before the execution and
checked after the conversion is performed. This is achieved by
using the wrapper function strtoul_err and strtoull_err.

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Böhme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/interface.c
source3/lib/messages_dgm.c
source3/lib/namemap_cache.c
source3/lib/sysquotas.c
source3/lib/tldap_util.c
source3/lib/util_str.c
source3/wscript_build