1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/lib/ldb/common
Douglas Bagnall 2aace18f17 ldb_controls: control_to_string avoids crash
Otherwise a malformed control with unexpected NULL data will segfault
ldb_control_to_string(), though this is not very likely to affect
anyone in practice as converting controls to strings is rarely
necessary. If it happens at all in Samba it is in Python code.

Found by Honggfuzz using fuzz_ldb_parse_control.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Wed Jul 29 04:43:23 UTC 2020 on sn-devel-184
2020-07-29 04:43:23 +00:00
..
attrib_handlers.c schema_syntax: Add comments for our index format functions 2019-04-08 02:07:23 +00:00
ldb_attributes.c ldb_tdb: Read from @INDEXLIST or an override if we are using a GUID index 2017-09-22 21:20:23 +02:00
ldb_controls.c ldb_controls: control_to_string avoids crash 2020-07-29 04:43:23 +00:00
ldb_debug.c lib/ldb: Do not vasprintf() the tevent debug messages that will not be shown 2012-08-09 20:14:23 +10:00
ldb_dn.c ldb: Use ARRAY_DEL_ELEMENT() in ldb_dn_set_extended_component() 2020-03-26 14:43:32 +00:00
ldb_ldif.c ldb/ldb_ldif: add LDB_FLAG_FORCE_NO_BASE64_LDIF flag 2019-07-04 02:07:20 +00:00
ldb_match.c CVE-2019-3824 ldb: wildcard_match end of data check 2019-02-25 21:26:12 +01:00
ldb_modules.c Don't load LDB_MODULESDIR as a module file 2018-02-19 07:36:23 +01:00
ldb_msg.c ldb_msg: remove_element() checks element array bounds 2019-05-10 01:15:18 +00:00
ldb_options.c ldb: Add new internal helper function ldb_options_get() 2019-07-04 10:02:23 +00:00
ldb_pack.c ldb: Call TALLOC_FREE(filtered_msg->elements) on ldb_filter_attrs() failure 2019-08-27 01:16:33 +00:00
ldb_parse.c lib ldb: Limit depth of ldb_parse_tree 2020-05-10 23:21:08 +00:00
ldb_utf8.c ldb: make ldb a top level library for Samba 4.0 2011-07-05 17:24:47 +10:00
ldb.c CVE-2020-10730: lib ldb: Check if ldb_lock_backend_callback called twice 2020-07-02 09:01:41 +00:00
qsort.c ldb: Fix overflow checks 2018-04-03 20:20:10 +02:00