CVE-2023-0614 ldb: Add function to filter message in place
commit131d4176044e54e0e5a94b9c57491bb1594d202c
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 3 Mar 2023 04:29:03 +0000 (3 17:29 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Apr 2023 02:10:35 +0000 (5 02:10 +0000)
treedb7eca160a263f249ebad465553f155991df9b60
parent784a342785f2aca5bc01e61d210bb6bc103499ff
CVE-2023-0614 ldb: Add function to filter message in place

At present this function is an exact duplicate of ldb_filter_attrs(),
but in the next commit we shall modify it to work in place, without the
need for the allocation of a second message.

The test is a near duplicate of the existing test for
ldb_filter_attrs().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15270

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ABI/ldb-2.8.0.sigs
lib/ldb/common/ldb_pack.c
lib/ldb/include/ldb_module.h
lib/ldb/tests/ldb_filter_attrs_in_place_test.c [new file with mode: 0644]
lib/ldb/wscript