CVE-2020-10745: ndr_dns: move ndr_push_dns_string core into sharable function
commit601e8a3f690bbf5b9758cb148e9425df2993a2b0
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 24 Apr 2020 23:02:08 +0000 (25 11:02 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 2 Jul 2020 09:01:41 +0000 (2 09:01 +0000)
tree1ee7c6c7047fbae365648d5510e4dd32c2066a09
parentbc896d75295870c410709dc590364bd9916240cf
CVE-2020-10745: ndr_dns: move ndr_push_dns_string core into sharable function

This is because ndr_nbt.c does almost exactly the same thing with
almost exactly the same code, and they both do it wrong. Soon they
will both be using the better version that this will become. Though in
this patch we just move the code, not fix it.

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

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
librpc/ndr/ndr_dns.c
librpc/ndr/ndr_dns_utils.c [new file with mode: 0644]
librpc/ndr/ndr_dns_utils.h [new file with mode: 0644]
librpc/wscript_build