1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/ldb
Douglas Bagnall e075f52a75 pyldb: fork pyldb_Ldb_AsLdbContext macro to reflect unsafeness
In the Python/C API, conversion functions which check the types of their arguments
have names like:

double PyFloat_AsDouble(PyObject *pyfloat);

while conversion macros that don't check have names like:

PyFloat_AS_DOUBLE(pyfloat)

The pyldb_Ldb_AsLdbContext() macro looks like one of the checking functions
but it actually isn't. This has fooled us more than once. Here we fork
the macro into two -- one which performs checks and keeps the camel
case, and one with a shouty name that keeps the check-free behaviour.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-07-10 04:32:13 +00:00
..
ABI ldb: Release ldb 2.0.5 2019-07-04 10:02:23 +00:00
common ldb: do not allow adding a DN as a base to itself 2019-07-10 04:32:13 +00:00
docs
examples
include ldb: Add new internal helper function ldb_options_get() 2019-07-04 10:02:23 +00:00
ldb_key_value ldb: Rework index_transaction_cache_size to allow caller to specify a larger size 2019-07-04 10:02:23 +00:00
ldb_ldap ldb_ldap: use ldb_msg API to add elements 2019-05-10 01:15:18 +00:00
ldb_ldb ldb: Add MDB support to ldb:// 2018-05-23 02:27:12 +02:00
ldb_map ldb_map: check a return value (CID 241354) 2019-05-09 22:39:27 +00:00
ldb_mdb lib ldb ldb_mdb: Pass the lmdb map size as an ldb option 2019-07-02 02:23:09 +00:00
ldb_sqlite3 CVE-2018-1140 ldb: Check for ldb_dn_get_casefold() failure in ldb_sqlite 2018-08-14 13:57:15 +02:00
ldb_tdb lib ldb key value backends: Add nested txn support 2019-06-21 04:27:12 +00:00
man Spelling fixes s/overrided/overridden/ 2019-04-02 01:12:11 +00:00
modules ldb modules: paged_search checks control is not NULL (CID 241355) 2019-05-09 22:39:27 +00:00
nssldb
tests ldb ldb_key_value: test ldb batch 2019-07-04 10:02:23 +00:00
tools ldb: ldbdump key and pack format version comments 2019-05-22 05:58:17 +00:00
web
_ldb_text.py ldb/tests/_ldb_text: remove unused imports 2018-10-25 21:45:55 +02:00
configure build: Move python detection back into waf (instead of in configure and Makefile) 2018-12-14 14:40:19 +01:00
Doxyfile
examples.dox
ldb.pc.in
mainpage.dox
Makefile Search for location of waf script 2019-02-26 10:39:24 +01:00
pyldb_util.c pyldb: add pyldb_check_type() 2019-07-10 04:32:13 +00:00
pyldb-util.pc.in lib/ldb: Enable use of a python3 pyldb-util system library 2017-03-10 07:31:10 +01:00
pyldb.c pyldb: fork pyldb_Ldb_AsLdbContext macro to reflect unsafeness 2019-07-10 04:32:13 +00:00
pyldb.h pyldb: fork pyldb_Ldb_AsLdbContext macro to reflect unsafeness 2019-07-10 04:32:13 +00:00
README_gcov.txt
wscript ldb: Release ldb 2.0.5 2019-07-04 10:02:23 +00:00