diff options
author | Swen Schillig <swen@linux.ibm.com> | 2019-01-28 12:54:07 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-03-01 00:32:10 +0000 |
commit | c9f4b92a6131dedcaa38d6fe907d17a30a595f06 (patch) | |
tree | 58464a590db1ffce09885e24b5b3f16e43b3e3f1 /source3/groupdb/mapping_tdb.c | |
parent | cef18c2dfd60be372eee10cbcefd5849ae979d31 (diff) | |
download | samba-c9f4b92a6131dedcaa38d6fe907d17a30a595f06.tar.gz |
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>
Diffstat (limited to 'source3/groupdb/mapping_tdb.c')
0 files changed, 0 insertions, 0 deletions