CVE-2023-0614 ldb: Add function to filter message in place
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 3 Mar 2023 04:29:03 +0000 (17:29 +1300)
committerJule Anger <janger@samba.org>
Mon, 20 Mar 2023 09:03:50 +0000 (10:03 +0100)
commitfeb7ef495c85e724e0dafe66d6d63d8f19e7374b
tree74bfe347490bf41bb82e4ef7bdaf37df0acdceef
parentd2244ec1d3ee414d53d031fa4d846782b5ce9a1a
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/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