utils: Use wrapper for string to integer conversion
authorSwen Schillig <swen@linux.ibm.com>
Mon, 28 Jan 2019 12:36:45 +0000 (13:36 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 00:32:10 +0000 (00:32 +0000)
commite82228f2e09d66807d0bce150bb1db9731bbd4d4
treedcc2fc9cebf864634b1290ef92e99528e5a49295
parentfef2a7ca0a87dc3de25480b8070f8090d5f1cb09
utils: 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/utils/net_idmap.c
source3/utils/net_registry.c
source3/utils/net_rpc_registry.c
source3/utils/net_sam.c
source3/utils/pdbedit.c
source3/utils/regedit_dialog.c