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>
Sun, 24 Jul 2022 09:41:53 +0000 (11:41 +0200)
commitfaa61ab3053d077ac9d0aa67e955217e85b660f4
treeb8d5a1b1132f1d5e6fbe76a55c422c22662f1525
parent49dd9042f4ee380fa1dafcebcb54d0e1f0852463
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