1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/lib/util
Volker Lendecke 70dfb51430 iconv: Use a static buffer in iconf not to spoil the talloc_pool
This is a buffer that is strictly used like a stack variable. This
patch makes it one and while there it fixes an error path memleak.
In the "pull_failed" case we did not talloc_free(cvtbuf). With
talloc_tos(), this does not really matter, but for code without
this it does.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-12-14 10:06:28 +01:00
..
charset iconv: Use a static buffer in iconf not to spoil the talloc_pool 2013-12-14 10:06:28 +01:00
tests lib/util: improve check_password_quality() to handle utf8 2013-02-04 17:14:22 +01:00
asn1.c asn1: fix use-after-free in asn1_write 2013-10-14 16:54:34 +02:00
asn1.h
attr.h
base64.c
become_daemon.c lib-util: Don't leak file descriptor on error. 2013-02-22 16:36:14 +01:00
binsearch.h
bitmap.c lib/util: Simplify bitmap.c a bit 2012-11-07 15:32:24 +01:00
bitmap.h lib/util: Make "struct bitmap" abstract 2012-11-07 15:32:24 +01:00
blocking.c
byteorder.h util: Remove 32bit macros breaking strict aliasing. 2013-11-14 23:16:45 +01:00
data_blob.c
data_blob.h
debug_s3.c loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *. 2012-07-18 15:07:23 +09:30
debug_s3.h
debug.c lib/util: add 'ldb' debug class 2013-07-09 15:18:53 +02:00
debug.h lib/util: add 'ldb' debug class 2013-07-09 15:18:53 +02:00
dlinklist.h
Doxyfile
dprintf.c
fault.c fault.c: Fix typo in comment. 2013-02-18 22:07:39 +11:00
fsusage.c build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more 2012-04-05 02:39:08 +02:00
genrand.c genrand: Slightly simplify do_reseed 2013-06-14 20:29:56 +02:00
getpass.c getpass: Don't fail if stdin is not a tty 2013-04-05 07:34:37 +02:00
idtree.c
mainpage.dox
memory.h
modules.c lib/util/modules.c: Remove #if SAMBA_BUILD_ == 3 now we only have the waf build 2013-05-28 12:17:12 +10:00
ms_fnmatch.c
params.c
parmlist.c
parmlist.h
pidfile.c util: Don't use the pid ret value uninitialized. 2012-12-12 09:42:33 +01:00
pidfile.h Add debugs to functions. Add pidfile_unlink(). 2012-07-19 16:08:16 -07:00
rbtree.c
rbtree.h
README
rfc1738.c
safe_string.h
samba_modules.h lib/util: Add smb_load_module that returns DEBUG(0) errors on failure 2012-04-03 14:25:12 +10:00
samba_util.h lib/util: use proper include for struct stat 2013-11-21 22:12:45 +01:00
samba-util.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
select.c lib/util: Remove sys_poll as it is no longer needed 2012-02-16 15:49:21 -08:00
select.h lib/util: Remove sys_poll as it is no longer needed 2012-02-16 15:49:21 -08:00
server_id.c lib/util: add server_id_set_disconnected() and server_id_is_disconnected() 2012-08-17 20:07:07 +02:00
setid.c build: Remove unused includes.h reference to avoid build-time talloc dep 2013-02-22 08:44:58 +01:00
setid.h Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. 2012-06-28 17:15:16 -07:00
signal.c
smb_threads_internal.h
smb_threads.c
smb_threads.h
string_wrappers.h lib/util: fix use of a non-existent word (existant) in a comment 2012-06-12 07:21:41 +02:00
substitute.c
system.c lib/util: Remove obsolete sys_getpid() and sys_fork(). 2012-03-24 21:55:40 +01:00
talloc_stack.c talloc_stack: abort in developer me if no stackframe on talloc_tos() 2012-07-18 15:07:27 +09:30
talloc_stack.h talloc_stack: abort in developer me if no stackframe on talloc_tos() 2012-07-18 15:07:27 +09:30
tevent_debug.c lib/util: add samba_tevent_set_debug() 2013-02-28 12:11:48 +01:00
tevent_ntstatus.c tevent: Add tevent_received to tevent_req_simple_recv_ntstatus 2013-08-12 13:59:53 -07:00
tevent_ntstatus.h lib/util: move tevent_req_poll_ntstatus() to tevent_ntstatus.c 2012-05-14 15:12:34 +02:00
tevent_unix.c
tevent_unix.h
tevent_werror.c lib: add tevent_req_poll_werror 2012-05-30 00:37:56 +02:00
tevent_werror.h lib: add tevent_req_poll_werror 2012-05-30 00:37:56 +02:00
time.c lib-util: add functions to get elapsed from given timespec structs 2013-12-12 12:50:21 -08:00
time.h lib-util: add functions to get elapsed from given timespec structs 2013-12-12 12:50:21 -08:00
tsort.h
unix_privs.c Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. 2012-06-28 17:15:16 -07:00
util_file.c CVE-2013-4476: lib-util: split out file_save_mode() from file_save() 2013-11-11 11:14:36 +01:00
util_id.c
util_ldb.c
util_ldb.h
util_net.c util: remove accidently committed hunk 2012-10-31 19:25:30 +01:00
util_net.h lib: Remove unused "client_name" 2013-08-12 17:25:49 +12:00
util_ntdb.c util: util_ntdb ntdb_fetch_int32/ntdb_store_int32 and ntdb_add_int32_atomic 2012-06-22 07:35:17 +02:00
util_ntdb.h util: util_ntdb ntdb_fetch_int32/ntdb_store_int32 and ntdb_add_int32_atomic 2012-06-22 07:35:17 +02:00
util_paths.c
util_process.c lib: Add prctl_set_comment to utils. 2013-03-05 23:29:46 +01:00
util_process.h lib: Add prctl_set_comment to utils. 2013-03-05 23:29:46 +01:00
util_pw.c lib/util: Remove dummy wrapper for getgrgid(). 2012-03-24 15:26:36 +01:00
util_pw.h lib/util: Remove dummy wrapper for getgrgid(). 2012-03-24 15:26:36 +01:00
util_runcmd.c util: Remove unused fde_stdin in samba_runcmd. 2012-12-12 23:14:44 +01:00
util_str_common.c
util_str.c lib/util: Remove unused str_format_nbt_domain() 2012-02-10 16:45:13 +11:00
util_strlist.c
util_tdb.c lib/util_tdb: factor out tdb_data_talloc_copy() 2013-02-19 12:10:24 +01:00
util_tdb.h lib/util_tdb: factor out tdb_data_talloc_copy() 2013-02-19 12:10:24 +01:00
util.c lib:util: fix a comment typo 2013-12-11 17:54:21 +01:00
wscript util: Add --disable-fault-handling. 2012-03-15 05:55:03 +01:00
wscript_build lib: Add prctl_set_comment to utils. 2013-03-05 23:29:46 +01:00
wscript_configure build: Rework BSD_STYLE_STATVFS check to match autoconf build 2013-05-27 11:56:48 +10:00
xfile.c
xfile.h

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).