CVE-2022-32746 ldb: Add flag to mark message element values as shared
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 21 Feb 2022 03:10:32 +0000 (16:10 +1300)
committerJule Anger <janger@samba.org>
Wed, 27 Jul 2022 10:52:36 +0000 (10:52 +0000)
commit7efe8182c165fbf17d2f88c173527a7a554e214b
tree2782be199c89103c3c5f68608b48bf15d9a5f111
parent3e4439565b655135246491a2b43f69817bf20161
CVE-2022-32746 ldb: Add flag to mark message element values as shared

When making a shallow copy of an ldb message, mark the message elements
of the copy as sharing their values with the message elements in the
original message.

This flag value will be heeded in the next commit.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/ldb/common/ldb_msg.c
lib/ldb/include/ldb_module.h