CVE-2022-32745 s4/dsdb/util: Correctly copy values into message element
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 3 Jun 2022 04:16:31 +0000 (16:16 +1200)
committerJule Anger <janger@samba.org>
Sun, 24 Jul 2022 09:41:53 +0000 (11:41 +0200)
commit65d96369fa4f915f01e203cfc8b15e48c5b4b440
treee83ada6aa5645f61bcb4e2e6670abf46bfff1237
parent4d2d30c21b16a53d5547cb803efe49cb6304ce37
CVE-2022-32745 s4/dsdb/util: Correctly copy values into message element

To use memcpy(), we need to specify the number of bytes to copy, rather
than the number of ldb_val structures.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/util.c