1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/lib/ldb-samba
Douglas Bagnall 9844ac289b ldb-samba: ldif_read_objectSid avoids VLA
I don't think this variable length array is any trouble, but people
complain about them (e.g. https://nullprogram.com/blog/2019/10/27/)
because they make things more complex at run-time, and this is a
somewhat performance sensitive path.

DOM_SID_STR_BUFLEN + 1 is 191 -- if that stack allocation is going to
cause trouble, then so was the VLA <= that.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May  8 00:26:42 UTC 2024 on atb-devel-224
2024-05-08 00:26:42 +00:00
..
tests CVE-2023-0614 lib/ldb-samba: Add test for SAMBA_LDAP_MATCH_RULE_TRANSITIVE_EVAL / LDAP_MATCHING_RULE_IN_CHAIN with and ACL hidden attributes 2023-04-05 02:10:35 +00:00
ldb_ildap.c ldb_ildap: require ldb_get_opaque(ldb, "loadparm") to be valid 2024-04-23 23:50:33 +00:00
ldb_matching_rules.c ldb-samba: matching rules: notify of search failure in transitive filter 2024-03-22 05:03:35 +00:00
ldb_matching_rules.h dns: custom match rule for DNS records to be tombstoned 2018-07-12 04:31:54 +02:00
ldb_wrap.c ldb-samba:ldb_wrap: don't crash if "ldb_url" opaque is unset 2024-03-20 23:42:34 +00:00
ldb_wrap.h
ldif_handlers.c ldb-samba: ldif_read_objectSid avoids VLA 2024-05-08 00:26:42 +00:00
ldif_handlers.h dsdb: Introduce LDB_SYNTAX_SAMBA_OCTET_STRING 2016-03-09 10:32:16 +01:00
pyldb.c pyldb: Consolidate PyErr_SetLdbError() using the pyldb version 2024-03-28 01:50:41 +00:00
README
samba_extensions.c lib:ldb-samba: Migrate samba extensions to new cmdline option parser 2021-06-16 01:25:28 +00:00
wscript_build lib:ldb-samba: Migrate samba extensions to new cmdline option parser 2021-06-16 01:25:28 +00:00

This directory contains Samba specific extensions to ldb. It also
serves as example code on how to extend ldb for your own application.

The main extension Samba uses is to provide ldif encode/decode
routines for specific attributes, so users can get nice pretty
printing of attributes in ldbedit, while the attributes are stored in
the standard NDR format in the database.