CVE-2023-4154 python/samba/ndr: add ndr_deepcopy() helper
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Mar 2023 13:08:34 +0000 (14:08 +0100)
committerJule Anger <janger@samba.org>
Mon, 9 Oct 2023 20:16:08 +0000 (22:16 +0200)
commit92cf3328a00cacb07fe7c6b7abf5335dc8235e86
tree85e53bfe2500b4478f149de057bb39cdc0d32d05
parentebd421306e7b1ec37e7a477937d04a27de838cff
CVE-2023-4154 python/samba/ndr: add ndr_deepcopy() helper

This uses ndr_pack/unpack in order to create a deep copy
of the given object.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 4627997ddae44265ad35b3234232eb74458c6c34)
python/samba/ndr.py