1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/lib/util
Noel Power d759f4aa4b lib/util: clang: Fix 'Null pointer passed as an argument'
Fixes lib/util/iov_buf.c:50:4: warning: Null pointer passed as an argument to a 'nonnull' parameter <--[clang]
                        memcpy(p, iov[i].iov_base, thislen);
                        ^
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-07-08 09:30:09 +00:00
..
charset lib/util/charset: clang: Fix Value stored to 'reason' is never read warning 2019-06-11 12:10:17 +00:00
tests tests-util: Adding test to verify "allow no conversion" flag 2019-06-30 12:47:24 +00:00
access.c lib: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
access.h lib: util: Add allow_access_nolog(). 2016-11-16 12:41:09 +01:00
asn1.c lib: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
asn1.h ASN1: use a talloc context in read_contextSimple 2016-03-09 10:32:16 +01:00
attr.h util/attr.h: use HAVE___ATTRIBUTE__, not __GNUC__ comparisons 2016-03-24 15:13:15 +01:00
base64.c lib: Avoid includes.h in base64.c 2016-05-04 01:28:23 +02:00
base64.h lib: Give base64.c its own .h 2016-05-04 01:28:23 +02:00
become_daemon.c Send status to systemd on daemon start 2018-12-17 01:24:15 +01:00
become_daemon.h util: Add become_daemon.h 2017-08-17 08:00:23 +02:00
binsearch.h binsearch.h: Re-licence under LGPLv3 per agreement of the copyright holders 2017-09-22 21:20:23 +02:00
bitmap.c lib:util: Fix undefined behavior in bitmap.c 2018-11-22 22:13:27 +01:00
bitmap.h
blocking.c lib: Trim blocking.c 2015-07-01 17:12:48 +02:00
blocking.h lib/util: Add a generic definition for set_close_on_exec 2016-06-08 10:33:19 +02:00
byteorder.h lib:util: Move VWV macro to smb_constants.h 2019-05-17 19:33:25 +00:00
charset_compat.h lib/util: Use charset_compat.h if SAMBA_UTIL_CORE_ONLY 2014-10-04 00:11:21 +02:00
close_low_fd.c lib: Fix CID 1273073 Assign instead of compare 2015-03-03 17:34:39 +01:00
close_low_fd.h lib: Make close_low_fd() independently linkable 2014-08-01 22:11:46 +02:00
data_blob.c lib:util: Use memset_s() in data_blob_clear() 2018-12-20 16:11:02 +01:00
data_blob.h lib: Move data_blob_list_item to source4 2016-02-23 22:03:16 +01:00
debug_s3.c s3:debug: enable logging for early startup failures 2019-04-18 22:21:15 +00:00
debug_s3.h
debug.c lib/util: clang: Fix 'Null pointer passed as an argument...' warning 2019-06-11 12:10:17 +00:00
debug.h lib/util: set current_msg_{level,class} also during a DEBUGADD[C]() call 2019-05-28 07:16:25 +00:00
discard.h lib:util: Move discard_const(_p) to own header for libndr.h 2019-02-14 15:59:26 +01:00
dlinklist.h DLIST_REMOVE: clang: Fix dereference of a null pointer warning 2019-06-11 12:10:17 +00:00
Doxyfile
dprintf.c lib/util: Fix format-nonliteral warning 2016-08-24 01:33:50 +02:00
fault.c util: Fix signed/unsigned comparisons by declaring as size_t 2019-07-01 06:44:13 +00:00
fault.h lib/util: Move log_stack_trace() to common code 2018-04-11 01:06:39 +02:00
fsusage.c
genrand_util.c lib util: Add function to generate random uint64_t 2019-02-20 06:03:08 +01:00
genrand.c Rely on /dev/urandom 2015-10-13 04:25:38 +02:00
genrand.h Rely on /dev/urandom 2015-10-13 04:25:38 +02:00
getpass.c
gpfswrap.c gpfswrap: Remove unused gpfs_prealloc wrapper 2019-04-22 23:00:42 +00:00
gpfswrap.h gpfswrap: Remove unused gpfs_prealloc wrapper 2019-04-22 23:00:42 +00:00
idtree_random.c lib/util: Move idr_get_new_random() to new source file idtree_random.c 2014-09-19 18:11:11 +02:00
idtree_random.h lib/util: Move idr_get_new_random() to new source file idtree_random.c 2014-09-19 18:11:11 +02:00
idtree.c lib:util: Fix undefined behavior in idtree 2018-11-22 22:13:27 +01:00
idtree.h lib/util: Move idr_get_new_random() to new source file idtree_random.c 2014-09-19 18:11:11 +02:00
iov_buf.c lib/util: clang: Fix 'Null pointer passed as an argument' 2019-07-08 09:30:09 +00:00
iov_buf.h lib/util: add and use iov_concat 2017-04-18 22:54:15 +02:00
mainpage.dox
memcache.c memcache: Properly track the size of talloc objects 2019-04-06 05:12:21 +00:00
memcache.h memcache: Add new cache type for dfree information 2018-05-25 22:52:12 +02:00
memory.h lib:util: Sync memory.h with replace.h 2019-04-30 23:18:26 +00:00
mkdir_p.c lib:util: Fix string check in mkdir_p() 2018-05-17 17:30:09 +02:00
mkdir_p.h gpo: move mkdir_p to lib/util 2017-11-20 21:41:14 +01:00
modules.c lib: Give util_paths.c its own header 2017-06-24 01:21:10 +02:00
ms_fnmatch.c lib/util: clang: Fix a dereference of a null pointer warning(s) 2019-06-11 12:10:17 +00:00
msghdr.c util: Fix signed/unsigned comparisons by casting 2019-07-01 08:00:29 +00:00
msghdr.h lib: Move msghdr to lib/util/ 2016-06-07 14:34:10 +02:00
params.c lib/util: add pm_process_with_flags to allow parsing ini files with empty values 2017-01-06 12:28:19 +01:00
pidfile.c util: Fix signed/unsigned comparisons by casting 2019-07-01 08:00:29 +00:00
pidfile.h util: Add documentation for PID file handling 2017-08-17 19:45:32 +02:00
rbtree.c lib/util: clang: Fix dereference of a null pointer warning 2019-06-11 12:10:17 +00:00
rbtree.h
README
rfc1738.c util/rfc1738: update preamble 2018-02-22 06:13:49 +01:00
safe_string.h
samba_modules.h lib:util: Make probing of modules more secure 2017-06-06 18:36:07 +02:00
samba_util.h lib: util: Remove file_pload() 2019-05-24 19:00:05 +00:00
samba-util.pc.in
select.c lib: Avoid an includes.h 2017-03-20 12:20:08 +01:00
select.h
server_id_db.c lib: Fix return of server_id_db_prune_name() 2019-07-03 10:51:32 +00:00
server_id_db.h lib: Add server_id_db_pid() 2015-07-07 23:51:23 +02:00
server_id.c lib: Avoid an includes.h 2017-01-22 18:30:11 +01:00
server_id.h lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
setid.c lib:util: Always include unistd.h for setgroups 2018-11-22 22:13:27 +01:00
setid.h
signal.c lib/util: Clean up includes for signal.c 2014-10-04 00:11:21 +02:00
signal.h lib/util: Clean up includes for signal.c 2014-10-04 00:11:21 +02:00
smb_threads_internal.h
smb_threads.c
smb_threads.h lib: smb_threads: fix access before init bug 2018-07-04 21:07:09 +02:00
string_wrappers.h s3: smbd: Change the function signature of srvstr_push() from returning a length to returning an NTSTATUS with a length param. 2014-09-16 01:56:54 +02:00
strv_util.c util: Fix include file order 2018-11-30 08:12:31 +01:00
strv_util.h lib/util: Add strv_util.[ch] containing new function strv_split() 2016-03-01 05:43:19 +01:00
strv.c lib: Allow parsing a strv from a non-talloc const buf 2017-11-29 16:59:16 +01:00
strv.h lib: Allow parsing a strv from a non-talloc const buf 2017-11-29 16:59:16 +01:00
substitute.c util: Fix off-by-one error in message about overflow 2019-07-05 02:24:52 +00:00
substitute.h lib/util: Clean up includes for substitute.c 2014-10-04 00:11:21 +02:00
sys_popen.c lib: Fix CID 1445648 Null pointer dereferences 2019-05-28 20:27:14 +00:00
sys_popen.h lib: util: Finally remove possibilities of using sys_popen() unsafely. 2019-05-24 19:00:06 +00:00
sys_rw_data.c util: Fix signed/unsigned comparisons by casting 2019-07-01 08:00:29 +00:00
sys_rw_data.h lib: Move sys_rw* to lib/util 2015-10-13 01:23:07 +02:00
sys_rw.c lib: add sys_write_v - void variant of sys_write 2016-05-13 00:16:15 +02:00
sys_rw.h lib: add sys_write_v - void variant of sys_write 2016-05-13 00:16:15 +02:00
system.c
talloc_keep_secret.c lib:util: Add support to keep talloc chunks secret 2019-04-03 06:48:21 +00:00
talloc_keep_secret.h lib:util: Add support to keep talloc chunks secret 2019-04-03 06:48:21 +00:00
talloc_report.c util: Fix signed/unsigned comparisons by casting 2019-07-01 08:00:29 +00:00
talloc_report.h lib: Add talloc_report_str() 2015-02-13 23:32:07 +01:00
talloc_stack.c talloc_stack: Call talloc destructors while frame is still around 2018-06-23 04:56:44 +02:00
talloc_stack.h util: Update GPL header of talloc_stack.h 2016-02-12 09:01:14 +01:00
tevent_debug.c tevent: add and use debug class for tevent 2015-07-01 23:04:00 +02:00
tevent_ntstatus.c
tevent_ntstatus.h
tevent_req_profile.c lib: Avoid the use of open_memstream in tevent_req_profile_string 2018-10-08 22:17:11 +02:00
tevent_req_profile.h lib: Avoid the use of open_memstream in tevent_req_profile_string 2018-10-08 22:17:11 +02:00
tevent_unix.c lib: Add tevent_req_poll_unix 2015-07-07 23:51:23 +02:00
tevent_unix.h lib: Add tevent_req_poll_unix 2015-07-07 23:51:23 +02:00
tevent_werror.c werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in lib/util/tevent_werror.c 2016-09-28 00:04:18 +02:00
tevent_werror.h
tfork.c lib/util: Fix Value stored to 'ret' is never read warning 2019-07-01 13:34:10 +00:00
tfork.h lib/util: only close the event_fd in tfork if the caller didn't call tfork_event_fd() 2017-09-16 19:53:23 +02:00
tftw.c lib:util: Add GPL header to tftw.c 2019-02-14 15:59:25 +01:00
tftw.h util: Add file tree walk interface 2019-01-28 15:44:18 +01:00
time_basic.c time_basic.h: Remove unnecessary dependency on replace.h 2016-01-13 04:43:23 +01:00
time_basic.h time_basic.h: Remove unnecessary dependency on replace.h 2016-01-13 04:43:23 +01:00
time.c Add substitutions %t, %j, and %J as path-safe variants of %T, %i, and %I. 2018-01-08 03:34:17 +01:00
time.h lib: remove unused function nttime_from_string() 2019-01-12 03:13:31 +01:00
tini.c lib/util: add pm_process_with_flags to allow parsing ini files with empty values 2017-01-06 12:28:19 +01:00
tini.h lib/util: add pm_process_with_flags to allow parsing ini files with empty values 2017-01-06 12:28:19 +01:00
tiniparser.c lib/util: add pm_process_with_flags to allow parsing ini files with empty values 2017-01-06 12:28:19 +01:00
tiniparser.h Add tiniparser - tiny version of iniparser that only implements what Samba uses. 2014-08-14 21:27:13 +02:00
tsort.h
unix_match.c lib/util: Move unix_wild_match() from source3/lib/util to lib/util/ 2016-11-16 12:41:09 +01:00
unix_match.h lib/util: Move unix_wild_match() from source3/lib/util to lib/util/ 2016-11-16 12:41:09 +01:00
unix_privs.c lib: Add missing include for unistd.h in unix_privs. 2014-04-17 14:56:06 +02:00
util_file.c util: Fix signed/unsigned comparisons by casting 2019-07-01 08:00:29 +00:00
util_id.c Fix signed/unsigned comparisons 2014-12-07 00:12:07 +01:00
util_ldb.c
util_ldb.h
util_net.c Fix spelling s/unitialized/uninitialized/ 2018-05-12 02:09:27 +02:00
util_net.h lib/util_net: add support for .ipv6-literal.net 2016-03-10 06:52:26 +01:00
util_paths.c lib: Give util_paths.c its own header 2017-06-24 01:21:10 +02:00
util_paths.h lib: Give util_paths.c its own header 2017-06-24 01:21:10 +02:00
util_process.c lib: Fix prctl detection for prctl_set_comment 2015-09-24 08:00:16 +02:00
util_process.h
util_pw.c lib: Avoid an includes.h 2017-03-28 17:45:19 +02:00
util_pw.h
util_runcmd.c lib/util: inline lib/util/util_runcmd.h again 2019-02-08 02:54:20 +01:00
util_str_common.c Add a comment regarding strwicmp only being an ASCII string compare 2014-05-07 19:49:17 +02:00
util_str_escape.c lib/util: Add functions to escape log lines but not break all non-ascii 2017-03-29 02:37:26 +02:00
util_str_escape.h lib/util: Add functions to escape log lines but not break all non-ascii 2017-03-29 02:37:26 +02:00
util_str_hex.c util_str_hex: use array syntax in guid functions to document usage 2018-05-31 01:57:16 +02:00
util_str_hex.h util_str_hex: use array syntax in guid functions to document usage 2018-05-31 01:57:16 +02:00
util_str.c lib: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
util_strlist_v3.c param: Fix str_list_v3 to accept ; again 2016-02-11 19:19:55 +01:00
util_strlist.c util: Fix signed/unsigned comparisons by declaring as size_t 2019-07-01 06:44:13 +00:00
util_strlist.h util: Make util_strlist.c standalone with its own header file 2016-02-05 09:00:20 +01:00
util_tdb.c lib/util: clang: Fix Value stored during its initialization is never read 2019-06-26 10:30:23 +00:00
util_tdb.h util_tdb: Make a few functions static 2017-11-13 23:54:46 +01:00
util.c lib: Add capability to enable standard glibc behaviour for string to int conversion 2019-06-30 11:32:18 +00:00
util.h util: cleanup API change for strtoul(l) wrappers 2019-06-30 11:32:18 +00:00
wscript lib: Use gpfs.h from third_party on Linux 2019-01-18 17:21:02 +01:00
wscript_build lib:util: Add a test for byteorder.h 2019-05-17 20:44:36 +00:00
wscript_configure lib: Use gpfs.h from third_party on Linux 2019-01-18 17:21:02 +01:00

This directory contains libutil (until we can think of a better name)

The idea is that this library contains simple but useful data structures 
and support functions that are generally useful; not just for Samba but for 
other projects as well. Functions here should not depend on any external 
libraries, just on libc (perhaps partially provided by libreplace).